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

Harald van Dijk via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 04:49:21 PST 2026


================
@@ -0,0 +1,16 @@
+import locale
+
+saved = locale.setlocale(locale.LC_ALL)
+for l in (
+    "en_US.US-ASCII",
+    "en_US.ISO8859-1",
+    "en_US.UTF-8",
+    "ja_JP.SJIS",
+    "ja_JP.ISO2022-JP",
----------------
hvdijk wrote:

Sure, that makes sense, done.

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


More information about the cfe-commits mailing list