Skip to content
Snippets Groups Projects
Commit d4a69d1f authored by Guido Günther's avatar Guido Günther
Browse files

don't fail on missing locales

Closes: #512721
parent 00e0e44d
No related branches found
No related tags found
No related merge requests found
From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 23 Jan 2009 16:25:33 +0100
Subject: [PATCH] don't fail on missing locales
Closes: #512721
---
src/virsh.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/virsh.c b/src/virsh.c
index 2b05793..5e39b48 100644
--- a/src/virsh.c
+++ b/src/virsh.c
@@ -7078,7 +7078,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");
--
......@@ -4,3 +4,4 @@
0004-Open-qemu-monitor-log-O_APPEND-instead-of-O_TRUNC.patch
0005-qemu-fix-parallel-serial-mode-tcp-and-unix.patch
0006-Fix-missing-read-only-access-checks-CVE-2008-5086.patch
0007-don-t-fail-on-missing-locales.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment