Permalink
Browse files

MythVideo: Backport JAMU unicode fix to .24-fixes.

  • Loading branch information...
1 parent de60515 commit 5aa7665c6b0a3d7018d5ad530e347686fb21aaae Robert McNamara committed Dec 16, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythplugins/mythvideo/mythvideo/scripts/jamu.py
@@ -306,6 +306,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 @@ def setUseroptions(self, useroptions):
)
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:]

0 comments on commit 5aa7665

Please sign in to comment.