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

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

 



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@xxxxxxxxxxx>
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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]