summaryrefslogtreecommitdiffstats
path: root/util/local_database/qlocalexml2cpp.py
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-05-20 13:24:30 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-05-20 13:24:30 (GMT)
commitba2cc78943678173d21a4339839e63d16fe774a9 (patch)
tree691ac2916d5daf948cdac07bc4ef19d08f36cabd /util/local_database/qlocalexml2cpp.py
parent8f47373e3795d7ec50387d5f1a771a59567bdaea (diff)
parentef8cd7f2e68d6d34d70c3a12e82a67ed16b92b72 (diff)
downloadQt-ba2cc78943678173d21a4339839e63d16fe774a9.zip
Qt-ba2cc78943678173d21a4339839e63d16fe774a9.tar.gz
Qt-ba2cc78943678173d21a4339839e63d16fe774a9.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'util/local_database/qlocalexml2cpp.py')
-rwxr-xr-xutil/local_database/qlocalexml2cpp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py
index da2da32..b6523af 100755
--- a/util/local_database/qlocalexml2cpp.py
+++ b/util/local_database/qlocalexml2cpp.py
@@ -549,7 +549,10 @@ def main():
# Country code list
print "static const unsigned char country_code_list[] ="
for key in country_map.keys():
- print "\"%2s\" // %s" % (country_map[key][1], country_map[key][0])
+ code = country_map[key][1]
+ if len(code) == 2:
+ code += "\\0"
+ print "\"%2s\" // %s" % (code, country_map[key][0])
print ";"