From e138da23b74ebc4a1173e4af58dc959b3c706855 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 11 May 2022 15:43:29 +0100 Subject: [PATCH] trivial: Workaround Windows setting the codepage to 1252 --- src/fu-util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fu-util.c b/src/fu-util.c index eb7802144..466411f57 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -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);