tell stdout if setlocale(2) fails
This commit is contained in:
parent
eda909067b
commit
ad2af5123d
@ -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…
Reference in New Issue
Block a user