llvm-project
19e8a82a - [llvm-strings] Add --unicode option (#242890)

Commit
17 hours ago
[llvm-strings] Add --unicode option (#242890) This commit adds the --unicode option from GNU strings to llvm-strings. The options from GNU strings are supported, plus an additional option value --unicode=utf8 to explicitly request UTF-8 output, similar to how we also add an --encoding=utf8 option value to explicitly specify the input is UTF-8. This makes a slight change from what was previously proposed: it adds `--unicode=utf8` as an option value, and rather than `--unicode=default` specifying UTF-8 output, it is equivalent to leaving out the option. This makes a difference only in one corner case: this makes `--encoding=S` and `--encoding=S --unicode=default` behave the same, as the option implies.
Author
Parents
Loading