trivial: Workaround Windows setting the codepage to 1252

This commit is contained in:
Richard Hughes 2022-05-11 15:43:29 +01:00 committed by Mario Limonciello
parent 0604ef4324
commit e138da23b7

View File

@ -4008,6 +4008,11 @@ main(int argc, char *argv[])
NULL},
{NULL}};
#ifdef _WIN32
/* workaround Windows setting the codepage to 1252 */
(void)g_setenv("LANG", "C.UTF-8", FALSE);
#endif
setlocale(LC_ALL, "");
bindtextdomain(GETTEXT_PACKAGE, FWUPD_LOCALEDIR);