================
@@ -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",
----------------
hubert-reinterpretcast wrote:

> I'd happily add other alternative names for the same locales to the test if 
> you can confirm that it passes.

Without modifications, the test passes on AIX with the following "skipping 
test" messages:
```
echo en_US.US-ASCII locale not supported, skipping test
# executed command: echo en_US.US-ASCII locale not supported, skipping test
# | en_US.US-ASCII locale not supported, skipping test
echo ja_JP.SJIS locale not supported, skipping test
# executed command: echo ja_JP.SJIS locale not supported, skipping test
# | ja_JP.SJIS locale not supported, skipping test
echo ja_JP.ISO2022-JP locale not supported, skipping test
# executed command: echo ja_JP.ISO2022-JP locale not supported, skipping test
# | ja_JP.ISO2022-JP locale not supported, skipping test
```

If I modify `ja_JP.SJIS` to `Ja_JP.IBM-943`, the test passes on AIX with the 
following instead:
```
echo en_US.US-ASCII locale not supported, skipping test
# executed command: echo en_US.US-ASCII locale not supported, skipping test
# | en_US.US-ASCII locale not supported, skipping test
echo ja_JP.ISO2022-JP locale not supported, skipping test
# executed command: echo ja_JP.ISO2022-JP locale not supported, skipping test
# | ja_JP.ISO2022-JP locale not supported, skipping test
```

I don't have a mapping for the two locales that are left.

https://github.com/llvm/llvm-project/pull/221794
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to