[PATCH 3/4] strings: Cleanup print_unicode_buffer
Alice Carlotti
alice.carlotti@arm.com
Thu Sep 25 18:08:23 GMT 2025
diff --git a/binutils/strings.c b/binutils/strings.c
index b39001711cd9747571c20cef3ede6a50a4a294de..4244911bc6528208d98290e108d1d8e70fd94928 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -829,7 +829,7 @@ print_unicode_buffer (const char * filename,
if (c > 126)
{
- if (c < 0xc0)
+ if (unicode_display == unicode_invalid)
{
num_found = 0;
continue;
@@ -841,13 +841,6 @@ print_unicode_buffer (const char * filename,
num_found = 0;
continue;
}
-
- if (unicode_display == unicode_invalid)
- {
- /* We have found a valid UTF-8 character, but we treat it as non-graphic. */
- num_found = 0;
- continue;
- }
}
if (num_found == 0)
More information about the Binutils
mailing list