diff -r e24348a560a6 -r b72c6db6890b util/local_database/qlocalexml2cpp.py --- a/util/local_database/qlocalexml2cpp.py Fri Jun 11 14:24:45 2010 +0300 +++ b/util/local_database/qlocalexml2cpp.py Wed Jun 23 19:07:03 2010 +0300 @@ -545,7 +545,10 @@ # 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 ";"