mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
tell stdout if setlocale(2) fails
This commit is contained in:
parent
eda909067b
commit
ad2af5123d
1 changed files with 3 additions and 1 deletions
|
|
@ -315,7 +315,9 @@ int main (int argc, char *argv[])
|
|||
#if ENABLE_NLS
|
||||
/* initialize C locale to user preference */
|
||||
if (ARDOUR::translations_are_enabled ()) {
|
||||
setlocale (LC_ALL, "");
|
||||
if (!setlocale (LC_ALL, "")) {
|
||||
std::cerr << "localization call failed, " << PROGRAM_NAME << " will not be translated\n";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue