Skip to content

Commit a9433de

Browse files
committed
- Only set locale for messages so we do not screw up numbers git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12417 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent b19c0e4 commit a9433de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/runtime/systemimpl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ void SystemImpl__gettextInit(const char *locale)
17631763
const char *omhome = SettingsImpl__getInstallationDirectoryPath();
17641764
char *localedir;
17651765
int omlen;
1766-
if (!setlocale(LC_ALL, locale)) {
1766+
if (!setlocale(LC_MESSAGES, locale)) {
17671767
const char *c_tokens[1]={locale};
17681768
c_add_message(85, /* ERROR_OPENING_FILE */
17691769
ErrorType_scripting,

0 commit comments

Comments
 (0)