]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
don't abort if setlocale() fails
authorGuido Günther <agx@sigxcpu.org>
Thu, 29 Jan 2009 11:49:33 +0000 (11:49 +0000)
committerGuido Günther <agx@sigxcpu.org>
Thu, 29 Jan 2009 11:49:33 +0000 (11:49 +0000)
ChangeLog
src/virsh.c

index 00301c2262e236b800e39dbf631b60382b9b67ae..03ff2677b5ab0a5119f9c49a2108e85d9dd9b3d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index fd23e9ff8e6fe787ad86dea0b7b76fb92bed4e05..e24a154a162b824ed4656ef882965e912873f7a3 100644 (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");