[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH]: don't fail on missing locale



Hi,
attached patch lets virsh work with missing locales. This is:
 http://bugs.debian.org/512721
Cheers,
 -- Guido
>From cb456e15dba480640508df4c4250234f30172083 Mon Sep 17 00:00:00 2001
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

---
 src/virsh.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/virsh.c b/src/virsh.c
index fd23e9f..d174fbd 100644
--- a/src/virsh.c
+++ b/src/virsh.c
@@ -7001,7 +7001,6 @@ main(int argc, char **argv)
 
     if (!setlocale(LC_ALL, "")) {
         perror("setlocale");
-        return -1;
     }
     if (!bindtextdomain(GETTEXT_PACKAGE, LOCALEBASEDIR)) {
         perror("bindtextdomain");
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]