summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert McNamara <rmcnamara@mythtv.org>2010-12-16 17:09:45 (GMT)
committer Robert McNamara <rmcnamara@mythtv.org>2010-12-16 17:09:45 (GMT)
commit5aa7665c6b0a3d7018d5ad530e347686fb21aaae (patch)
treec4b999b9e893b9058ed9762fa1a4f5175d66144b
parentde60515e4c972fef9a0ee3c53c103a573d9d902d (diff)
MythVideo: Backport JAMU unicode fix to .24-fixes.
-rwxr-xr-xmythplugins/mythvideo/mythvideo/scripts/jamu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mythplugins/mythvideo/mythvideo/scripts/jamu.py b/mythplugins/mythvideo/mythvideo/scripts/jamu.py
index 0ac03a8..b8dbd65 100755
--- a/mythplugins/mythvideo/mythvideo/scripts/jamu.py
+++ b/mythplugins/mythvideo/mythvideo/scripts/jamu.py
@@ -306,6 +306,7 @@ __version__=u"v0.7.7"
# 0.7.5 Added the TMDB MovieRating as videometadata table "rating" field
# 0.7.6 Modifications to support MythTV python bindings changes
# 0.7.7 Pull hostname from python bindings instead of socket libraries
+ # Added support of unicode characters within a jamu.conf file
usage_txt=u'''
@@ -1246,7 +1247,7 @@ class Configuration(object):
)
sys.exit(1)
cfg = ConfigParser.SafeConfigParser()
- cfg.read(useroptions)
+ cfg.readfp(codecs.open(useroptions, "r", "utf8"))
for section in cfg.sections():
if section[:5] == 'File ':
self.config['config_file'] = section[5:]