Skip to content

Commit 7a6225e

Browse files
committed
- Fall back on en_US locale since it is rather common
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12465 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent e2a86e4 commit 7a6225e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Compiler/runtime/systemimpl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,8 @@ void SystemImpl__gettextInit(const char *locale)
17611761
else if (!(strstr(clocale, "UTF-8") || strstr(clocale, "UTF8") ||
17621762
strstr(clocale, "utf-8") || strstr(clocale, "utf8")) &&
17631763
!(setlocale(LC_CTYPE, "C.UTF-8") ||
1764-
setlocale(LC_CTYPE, ".UTF-8") ||
1764+
setlocale(LC_CTYPE, "en_US.UTF-8") ||
1765+
setlocale(LC_CTYPE, "en_GB.UTF-8") ||
17651766
setlocale(LC_CTYPE, "UTF-8"))) {
17661767
fprintf(stderr, gettext("Warning: Failed to set LC_CTYPE to UTF-8 using the chosen locale and C.UTF-8. OpenModelica assumes all input and output it makes is in UTF-8 so you might have some issues.\n"));
17671768
}

0 commit comments

Comments
 (0)