diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 12:28:52 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-05-01 12:28:52 -0600 |
commit | ad2af5123d57553da336bea75502b8ccb80abefb (patch) | |
tree | 840bffd7e785a4c4dc2f1da40988d410c0bd918f /gtk2_ardour | |
parent | eda909067bd1ab3276a28be31ff4cef22bd51330 (diff) |
tell stdout if setlocale(2) fails
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index e1d3ec0fe6..9c010eca09 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -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 |