Need to set the locale to current locale

Without this call the audit2allow -b command was failing in certain countries.
This commit is contained in:
Dan Walsh 2013-10-09 17:12:12 -04:00 committed by Stephen Smalley
parent f8a46ac9b3
commit 69129b4983

View File

@ -29,6 +29,8 @@ import sepolgen.defaults as defaults
import sepolgen.module as module import sepolgen.module as module
from sepolgen.sepolgeni18n import _ from sepolgen.sepolgeni18n import _
import selinux.audit2why as audit2why import selinux.audit2why as audit2why
import locale
locale.setlocale(locale.LC_ALL, '')
class AuditToPolicy: class AuditToPolicy:
VERSION = "%prog .1" VERSION = "%prog .1"