don't abort if setlocale() fails

This commit is contained in:
Guido Günther 2009-01-29 11:49:33 +00:00
parent 94d6177982
commit a99e5ccba4
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Jan 29 12:44:15 CET 2009 Guido Günther <agx@sigxcpu.org>
* src/virsh.c (main): don't abort when setlocale() fails
Wed Jan 28 22:05:11 GMT 2009 Daniel P.Berrange <berrange@redhat.com>
* src/remote_internal.c: Fix typo, and tweak variable decl

View File

@ -7001,7 +7001,7 @@ main(int argc, char **argv)
if (!setlocale(LC_ALL, "")) {
perror("setlocale");
return -1;
/* failure to setup locale is not fatal */
}
if (!bindtextdomain(GETTEXT_PACKAGE, LOCALEBASEDIR)) {
perror("bindtextdomain");