13
0

tell stdout if setlocale(2) fails

This commit is contained in:
Paul Davis 2020-05-01 12:28:52 -06:00
parent eda909067b
commit ad2af5123d

View File

@ -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