diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2014-04-03 12:38:02 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2014-04-03 12:38:02 +0100 |
commit | c611b3c99e5c71c9f34ca2a1063f92afbe430d2d (patch) | |
tree | e89a35d15ac2c2ef258db33127b7cd8306578e91 /alot/settings/manager.py | |
parent | b054d0de87801c681627ca2ff95c1ce143ba7bc1 (diff) |
work around new configobj behaviour
regarding utf8 chars in the config being read as str, not unicode
in python v2.7. This pathc introduces an additional
`alot.helper.string_decode` around the translated tagname read from the
config, and fixes issue #693. In the long run, we expect configobj
to be fully backweards compatible.
Diffstat (limited to 'alot/settings/manager.py')
-rw-r--r-- | alot/settings/manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index 70389413..eb95db61 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -288,6 +288,7 @@ class SettingsManager(object): fallback_focus) translated = cfg['tags'][sec]['translated'] + translated = string_decode(translated, 'UTF-8') if translated is None: translated = tag translation = cfg['tags'][sec]['translation'] |