Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 2333:6677cdbfbafd
fix default locale for Windows
author | jodogne |
---|---|
date | Sat, 15 Jul 2017 11:06:59 +0200 |
parents | 9c7a80c87ae9 |
children | dd26536454a0 |
comparison
equal
deleted
inserted
replaced
2332:9ccd7f926c5b | 2333:6677cdbfbafd |
---|---|
1259 void Toolbox::InitializeGlobalLocale(const char* locale) | 1259 void Toolbox::InitializeGlobalLocale(const char* locale) |
1260 { | 1260 { |
1261 // Make Orthanc use English, United States locale | 1261 // Make Orthanc use English, United States locale |
1262 | 1262 |
1263 #if defined(_WIN32) | 1263 #if defined(_WIN32) |
1264 // For Windows: use default locale (one might use "en-US" instead) | 1264 // For Windows: use default locale (one might use "en_US" instead) |
1265 static const char* DEFAULT_LOCALE = NULL; | 1265 static const char* DEFAULT_LOCALE = ""; |
1266 #else | 1266 #else |
1267 // For Linux & cie | 1267 // For Linux & cie |
1268 static const char* DEFAULT_LOCALE = "en_US.UTF-8"; | 1268 static const char* DEFAULT_LOCALE = "en_US.UTF-8"; |
1269 #endif | 1269 #endif |
1270 | 1270 |