Parcourir la source

Fixed language detection on iOS

On iOS you might see traditional Chinese on a US phone as: "zh-Hans_US"
Sam Lantinga il y a 3 mois
Parent
commit
156b3b4a8c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/locale/SDL_locale.c

+ 1 - 1
src/locale/SDL_locale.c

@@ -73,7 +73,7 @@ static SDL_Locale **build_locales_from_csv_string(char *csv, int *count)
         loc->language = ptr++;
         while (true) {
             const char ch = *ptr;
-            if (ch == '_' || ch == '-') {
+            if (ch == '_') {
                 *(ptr++) = '\0';
                 loc->country = ptr;
             } else if (SDL_isspace(ch)) {