client: Allow "C.UTF-8" as LC_NUMERIC locale

This is required on newer Android NDKs, as setting LC_NUMERIC
to "C" will still return "C.UTF-8" if you query it.
This commit is contained in:
sfan5 2017-11-30 19:01:39 +01:00 committed by Jan Ekström
parent bc7ac29966
commit 244cc1f018
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ static void *core_thread(void *tag)
static bool check_locale(void) static bool check_locale(void)
{ {
char *name = setlocale(LC_NUMERIC, NULL); char *name = setlocale(LC_NUMERIC, NULL);
return !name || strcmp(name, "C") == 0; return !name || strcmp(name, "C") == 0 || strcmp(name, "C.UTF-8") == 0;
} }
mpv_handle *mpv_create(void) mpv_handle *mpv_create(void)