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

Harald van Dijk via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 03:55:16 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,
----------------
hvdijk wrote:

I considered that, but bytes that do not form characters also terminate the current sequence. We could make it "or any other character or byte", but I'm not sure that's clearer. What do you think?

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


More information about the llvm-commits mailing list