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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 01:14:38 PDT 2026


================
@@ -40,8 +40,15 @@ Silently ignored. Present for GNU {program}`strings` compatibility.
 :::
 
 :::{option} --bytes=<length>, -n
-Set the minimum number of printable ASCII characters required for a sequence of
-bytes to be considered a string. The default value is 4.
+Set the minimum number of printable characters required for a sequence to be
+considered a string. The default value is 4.
----------------
jh7370 wrote:

It's probably worth specifically calling out that the "bytes" values refers to characters and NOT bytes, e.g. by adding an NB at the end: "NB: for multi-byte character sequences, this length is the number of characters and not the number of bytes." (Phrasing could be improved, but you should get the idea).

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


More information about the llvm-commits mailing list