https://sourceware.org/bugzilla/show_bug.cgi?id=27551

--- Comment #5 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Vincent Lefèvre from comment #2)

> "-e S" does not work with UTF-8, where I get a lot of binary data.

Strange - it worked for me.

> I think that the correct solution is to use isprint(), which automatically
> honors the current locale if

I tried changing the STRING_ISGRAPHIC macro definition in strings.c to:

  #define STRING_ISGRAPHIC(c) \
   (iswspace (c) ? include_all_whitespace : iswprint (c))

But this fails to work in my test environment.  I have no idea why though.

Do you have a suggested patch which would fix the problem ?

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to