Francois Gouget : testbot/SetWinLocale: Add and correct some country codes.

Alexandre Julliard julliard at winehq.org
Tue Jan 11 15:42:54 CST 2022


Module: tools
Branch: master
Commit: 49ec8c22eb9438bbe03656efd6bbd89c71c1cf06
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=49ec8c22eb9438bbe03656efd6bbd89c71c1cf06

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jan 11 19:21:28 2022 +0100

testbot/SetWinLocale: Add and correct some country codes.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/SetWinLocale | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index c8f681a..0c7bbc4 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




More information about the wine-cvs mailing list