mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
don't abort if setlocale() fails
This commit is contained in:
parent
94d6177982
commit
a99e5ccba4
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user