Merge pull request #12730 from mhilbrunner/unicode
Use UTF-8 for locale names. Fixes #12462.
This commit is contained in:
commit
d4b19d8d83
|
@ -966,7 +966,7 @@ Vector<String> TranslationServer::get_all_locale_names() {
|
||||||
const char **ptr = locale_names;
|
const char **ptr = locale_names;
|
||||||
|
|
||||||
while (*ptr) {
|
while (*ptr) {
|
||||||
locales.push_back(*ptr);
|
locales.push_back(String::utf8(*ptr));
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1168,6 +1168,6 @@ TranslationServer::TranslationServer()
|
||||||
|
|
||||||
for (int i = 0; locale_list[i]; ++i) {
|
for (int i = 0; locale_list[i]; ++i) {
|
||||||
|
|
||||||
locale_name_map.insert(locale_list[i], locale_names[i]);
|
locale_name_map.insert(locale_list[i], String::utf8(locale_names[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue