aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-02-10 18:54:15 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-02-10 19:03:03 +0100
commit36cc58a9f05473bb5633e9a2f1436d9b749b8160 (patch)
treed425076daf05f18efa642d5684ae5125f44ecc95 /src
parent1d92ec18daf95697312b5f0c2db8b70cab3a177c (diff)
downloadmsec-36cc58a9f05473bb5633e9a2f1436d9b749b8160.tar
msec-36cc58a9f05473bb5633e9a2f1436d9b749b8160.tar.gz
msec-36cc58a9f05473bb5633e9a2f1436d9b749b8160.tar.bz2
msec-36cc58a9f05473bb5633e9a2f1436d9b749b8160.tar.xz
msec-36cc58a9f05473bb5633e9a2f1436d9b749b8160.zip
fix treating UTF-8 strings as ascii
same issue as in mga#12047 for net_monitor...
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/config.py2
-rwxr-xr-xsrc/msec/help_draksec.py4
-rwxr-xr-xsrc/msec/libmsec.py2
-rwxr-xr-xsrc/msec/msec.py2
-rwxr-xr-xsrc/msec/msecgui.py2
-rwxr-xr-xsrc/msec/msecperms.py2
-rwxr-xr-xsrc/msec/plugins/audit.py2
-rwxr-xr-xsrc/msec/plugins/log.py2
-rwxr-xr-xsrc/msec/plugins/msec.py2
-rwxr-xr-xsrc/msec/plugins/network.py2
-rwxr-xr-xsrc/msec/plugins/pam.py2
-rwxr-xr-xsrc/msec/plugins/sectool.py2
-rwxr-xr-xsrc/msec/plugins/sudo.py2
-rwxr-xr-xsrc/msec/tools.py2
14 files changed, 15 insertions, 15 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index a136439..c8e87f6 100755
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -38,7 +38,7 @@ SECURITYLOG = '/var/log/msec.log'
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py
index 1497fc6..3eb4a6d 100755
--- a/src/msec/help_draksec.py
+++ b/src/msec/help_draksec.py
@@ -31,7 +31,7 @@ import gettext
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
@@ -53,7 +53,7 @@ import gettext
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index d803f79..d456eab 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -56,7 +56,7 @@ import config
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/msec.py b/src/msec/msec.py
index 556a082..472d1ac 100755
--- a/src/msec/msec.py
+++ b/src/msec/msec.py
@@ -28,7 +28,7 @@ import logging
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 6becfdf..ddc8170 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -49,7 +49,7 @@ import logging
# localization
import gettext
try:
- gettext.install("msec")
+ gettext.install("msec", unicode=1)
except IOError:
_ = str
diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py
index 2d49495..dcd86b2 100755
--- a/src/msec/msecperms.py
+++ b/src/msec/msecperms.py
@@ -18,7 +18,7 @@ import getopt
import gettext
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py
index 7741cdf..2a68aa2 100755
--- a/src/msec/plugins/audit.py
+++ b/src/msec/plugins/audit.py
@@ -10,7 +10,7 @@ import config
import gettext
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/log.py b/src/msec/plugins/log.py
index 2749263..b7465c7 100755
--- a/src/msec/plugins/log.py
+++ b/src/msec/plugins/log.py
@@ -12,7 +12,7 @@ import config
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py
index 453a233..16deef2 100755
--- a/src/msec/plugins/msec.py
+++ b/src/msec/plugins/msec.py
@@ -17,7 +17,7 @@ import config
import gettext
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/network.py b/src/msec/plugins/network.py
index d9b62f9..cbee32d 100755
--- a/src/msec/plugins/network.py
+++ b/src/msec/plugins/network.py
@@ -17,7 +17,7 @@ import config
import gettext
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/pam.py b/src/msec/plugins/pam.py
index a9f2bf4..353fa2a 100755
--- a/src/msec/plugins/pam.py
+++ b/src/msec/plugins/pam.py
@@ -14,7 +14,7 @@ import config
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/sectool.py b/src/msec/plugins/sectool.py
index f5c6637..392c5c3 100755
--- a/src/msec/plugins/sectool.py
+++ b/src/msec/plugins/sectool.py
@@ -14,7 +14,7 @@ import config
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/plugins/sudo.py b/src/msec/plugins/sudo.py
index f90cf5b..b61a078 100755
--- a/src/msec/plugins/sudo.py
+++ b/src/msec/plugins/sudo.py
@@ -14,7 +14,7 @@ import config
# localization
try:
- gettext.install('msec')
+ gettext.install('msec', unicode=1)
except IOError:
_ = str
diff --git a/src/msec/tools.py b/src/msec/tools.py
index 69b60ba..3a079cd 100755
--- a/src/msec/tools.py
+++ b/src/msec/tools.py
@@ -12,7 +12,7 @@ import locale
# localization
import gettext
try:
- gettext.install("msec")
+ gettext.install("msec", unicode=1)
except IOError:
_ = str