[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:56:00 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.
+:::
+
+:::{option} --encoding=<encoding>, -e
+Specifies the encoding of the input file. Valid arguments are:
+- s (ASCII characters)
+- S (characters in the system's or user's selected character set)
+- u (UTF-8 characters)
----------------
hvdijk wrote:

That sounds fine to me, will change.

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


More information about the llvm-commits mailing list