diff options
Diffstat (limited to 'src/common-lib/utilities.cpp')
-rw-r--r-- | src/common-lib/utilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common-lib/utilities.cpp b/src/common-lib/utilities.cpp index 601be271..ff8dde1c 100644 --- a/src/common-lib/utilities.cpp +++ b/src/common-lib/utilities.cpp @@ -129,7 +129,7 @@ bool ensureCorrectLocale() return true; // now the time-consuming part: trying to switch to a well-known UTF-8 locale - const char *locales[] = { "C.UTF-8", "en_US.UTF-8" }; + const char *locales[] = { "C.UTF-8", "en_US.UTF-8", nullptr }; for (const char **loc = locales; *loc; ++loc) { if (const char *old = setlocale(LC_CTYPE, *loc)) { if (checkUtf()) { |