aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-02-10 18:43:22 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-02-10 18:43:22 +0100
commit72af4d63cc60a0415f54f8184e18097d7b9d3276 (patch)
treea4f499f6b30a66b79f2384e225d3f4504798178d /src
parenta3018bf0c12a206d290293062f9ad2f673068ce6 (diff)
downloadnet_monitor-72af4d63cc60a0415f54f8184e18097d7b9d3276.tar
net_monitor-72af4d63cc60a0415f54f8184e18097d7b9d3276.tar.gz
net_monitor-72af4d63cc60a0415f54f8184e18097d7b9d3276.tar.bz2
net_monitor-72af4d63cc60a0415f54f8184e18097d7b9d3276.tar.xz
net_monitor-72af4d63cc60a0415f54f8184e18097d7b9d3276.zip
fix treating UTF-8 strings as ascii (mga#12047)
bug present since commit 94d93f98fa69fcca2b9743bdf43429f22b528a70 gtk+ only handle Unicode strings (since gtk+2)
Diffstat (limited to 'src')
-rw-r--r--src/monitor.py2
-rwxr-xr-xsrc/net_monitor2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py
index 7cb9192..7c2ab8e 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -16,7 +16,7 @@ import _native
# localization
import gettext
try:
- gettext.install("net_monitor")
+ gettext.install("net_monitor", unicode=1)
except IOError:
_ = str
diff --git a/src/net_monitor b/src/net_monitor
index b8903a1..1b123d3 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -28,7 +28,7 @@ import textwrap
# localization
import gettext
try:
- gettext.install("net_monitor")
+ gettext.install("net_monitor", unicode=1)
except IOError:
_ = str