mirror of https://github.com/mpv-player/mpv
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:
parent
bc7ac29966
commit
244cc1f018
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue