]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- added error message for invalid locale setting (see bsc#933241)
authorArvin Schnell <aschnell@suse.de>
Tue, 2 Jun 2015 12:56:40 +0000 (14:56 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 2 Jun 2015 12:56:40 +0000 (14:56 +0200)
client/snapper.cc
package/snapper.changes

index ebff0be7696100ee22769d98f17b52340436d76e..50c1c55be3c4bd8545b37d4aa02bac1cc141b8b0 100644 (file)
@@ -1587,7 +1587,15 @@ help(const list<Cmd>& cmds)
 int
 main(int argc, char** argv)
 {
-    locale::global(locale(""));
+    try
+    {
+       locale::global(locale(""));
+    }
+    catch (const runtime_error& e)
+    {
+       cerr << "Failed to set locale. Fix you system." << endl;
+       exit (EXIT_FAILURE);
+    }
 
     setLogDo(&log_do);
     setLogQuery(&log_query);
index 7743b7453c0fd9616fde432a4c8166ee0ca2aae5..6db6db7a52bdb49c56e6fc1e47e92d6e5d0fc2ba 100644 (file)
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Jun 02 14:55:07 CEST 2015 - aschnell@suse.de
+
+- added error message for invalid locale setting (see bsc#933241)
+
 -------------------------------------------------------------------
 Mon May 25 11:41:59 UTC 2015 - jreidinger@suse.com