mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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>
|
Wed Jan 28 22:05:11 GMT 2009 Daniel P.Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/remote_internal.c: Fix typo, and tweak variable decl
|
* src/remote_internal.c: Fix typo, and tweak variable decl
|
||||||
|
@ -7001,7 +7001,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
if (!setlocale(LC_ALL, "")) {
|
if (!setlocale(LC_ALL, "")) {
|
||||||
perror("setlocale");
|
perror("setlocale");
|
||||||
return -1;
|
/* failure to setup locale is not fatal */
|
||||||
}
|
}
|
||||||
if (!bindtextdomain(GETTEXT_PACKAGE, LOCALEBASEDIR)) {
|
if (!bindtextdomain(GETTEXT_PACKAGE, LOCALEBASEDIR)) {
|
||||||
perror("bindtextdomain");
|
perror("bindtextdomain");
|
||||||
|
Loading…
Reference in New Issue
Block a user