[tools] testbot/SetWinLocale: Add and correct some country codes.
Francois Gouget
fgouget at codeweavers.com
Tue Jan 11 12:21:28 CST 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/bin/SetWinLocale | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index c62d663335..e776e4a802 100755
--- a/testbot/bin/SetWinLocale
+++ b/testbot/bin/SetWinLocale
@@ -98,12 +98,18 @@ sub FatalError(@)
# Country and keyboard tables
#
+# Map the two-letter country identifier to the Windows country code used in
+# the registry. Note that this does not match the CTRY_XXX codes!
my %Countries = (
+ "AD" => 8, # Andorra
+ "AE" => 224, # United Arab Emirates
"AF" => 3, # Afganistan
"AL" => 6, # Albania
+ "DZ" => 4, # Algeria
"AM" => 7, # Armenia
"AR" => 11, # Argentina
"AT" => 14, # Austria
+ "AU" => 12, # Australia
"AZ" => 5, # Azerbaijan
"BA" => 25, # Bosnia and Herzegovina
"BE" => 21, # Belgium
@@ -114,7 +120,7 @@ my %Countries = (
"CA" => 39, # Canada
"CH" => 223, # Switzerland
"CN" => 45, # China
- "CX" => 12, # Australia
+ "CX" => 309, # Christmas Island
"CZ" => 75, # Czech Republic
"DE" => 94, # Germany
"DK" => 61, # Denmark
--
2.30.2
More information about the wine-devel
mailing list