[llvm] [llvm-strings] Add --encoding={s,S,utf8} option (PR #221794)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 01:25:01 PDT 2026


================
@@ -12,8 +12,8 @@
 {program}`llvm-strings` is a tool intended as a drop-in replacement for GNU's
 {program}`strings`, which looks for printable strings in files and writes them
 to the standard output stream. A printable string is any sequence of four (by
-default) or more printable ASCII characters. The end of the file, or any other
-byte, terminates the current sequence.
+default) or more printable characters. The end of the file, or any other byte,
----------------
jh7370 wrote:

How about "any other unprintable byte sequence"? this would cover invalid as well as valid characters, while also not implying that characters are always single bytes.

https://github.com/llvm/llvm-project/pull/221794


More information about the llvm-commits mailing list