[PATCH 28/74] Need to set the locale to current locale

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Python requires code to set the locale variable.

   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJpKqoACgkQrlYvE4MpobNGyQCfaIAVs8121uD9Y0y4OwMtk0kO
+EQAn2rI4fJBD52IL5fWrC3HijUMXh1h
=o1Fh
-----END PGP SIGNATURE-----
>From 545b02053f73650d2ff5c4b58cde8dee801edf07 Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Wed, 9 Oct 2013 17:12:12 -0400
Subject: [PATCH 28/74] Need to set the locale to current locale

Without this call the audit2allow -b command was failing in certain countries.
---
 policycoreutils/audit2allow/audit2allow | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/policycoreutils/audit2allow/audit2allow b/policycoreutils/audit2allow/audit2allow
index b18cef7..4d03c0f 100644
--- a/policycoreutils/audit2allow/audit2allow
+++ b/policycoreutils/audit2allow/audit2allow
@@ -29,6 +29,8 @@ import sepolgen.defaults as defaults
 import sepolgen.module as module
 from sepolgen.sepolgeni18n import _
 import selinux.audit2why as audit2why
+import locale
+locale.setlocale(locale.LC_ALL, '')
 
 class AuditToPolicy:
     VERSION = "%prog .1"
-- 
1.8.3.1


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux