From: Arvin Schnell Date: Tue, 2 Jun 2015 12:56:40 +0000 (+0200) Subject: - added error message for invalid locale setting (see bsc#933241) X-Git-Tag: v0.2.8~8^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2ab3c3f155f35d5dfcda739b98324ca7635f2d2c;p=thirdparty%2Fsnapper.git - added error message for invalid locale setting (see bsc#933241) --- diff --git a/client/snapper.cc b/client/snapper.cc index ebff0be7..50c1c55b 100644 --- a/client/snapper.cc +++ b/client/snapper.cc @@ -1587,7 +1587,15 @@ help(const list& 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); diff --git a/package/snapper.changes b/package/snapper.changes index 7743b745..6db6db7a 100644 --- a/package/snapper.changes +++ b/package/snapper.changes @@ -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