diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-11-08 06:35:04 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-08 06:35:04 +0700 |
commit | d4b19d8d830342bcb1812082ac623d81fa8305bc (patch) | |
tree | b493e50764368fec08e5a88aa283b8898bb34565 | |
parent | 1bf132f53d3f491522d32f5cbd27737472854f57 (diff) | |
parent | d5b7df852358cfc80169d7db8752ca006c44cc99 (diff) |
Merge pull request #12730 from mhilbrunner/unicode
Use UTF-8 for locale names. Fixes #12462.
-rw-r--r-- | core/translation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/translation.cpp b/core/translation.cpp index 058db956e5..7e4d4feb89 100644 --- a/core/translation.cpp +++ b/core/translation.cpp @@ -966,7 +966,7 @@ Vector<String> TranslationServer::get_all_locale_names() { const char **ptr = locale_names; while (*ptr) { - locales.push_back(*ptr); + locales.push_back(String::utf8(*ptr)); ptr++; } @@ -1168,6 +1168,6 @@ TranslationServer::TranslationServer() 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])); } } |