mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
hotfix C++ locale (OSX, windows)
This commit is contained in:
parent
8c3551341c
commit
93ffece465
1 changed files with 5 additions and 1 deletions
|
|
@ -298,7 +298,11 @@ int main (int argc, char *argv[])
|
|||
#ifdef ENABLE_NLS
|
||||
/* initialize C and C++ locales to user preference */
|
||||
setlocale (LC_ALL, "");
|
||||
std::locale::global (std::locale (setlocale (LC_ALL, 0)));
|
||||
try {
|
||||
std::locale::global (std::locale (setlocale (LC_ALL, 0)));
|
||||
} catch (...) {
|
||||
std::cerr << "Cannot set C++ locale\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
console_madness_begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue