[SCM] morituri/master: * morituri/rip/image.py: Fix problem to encode from files with unicode chars.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:17 UTC 2014


The following commit has been merged in the master branch:
commit b1155ed183f3aaa411fd6c63479d3084395384d5
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Thu Apr 8 21:07:25 2010 +0000

    	* morituri/rip/image.py:
    	  Fix problem to encode from files with unicode chars.

diff --git a/ChangeLog b/ChangeLog
index b7a22e4..59aca0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-04-08  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/rip/image.py:
+	  Fix problem to encode from files with unicode chars.
+
+2010-04-08  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/program/cdparanoia.py:
 	  Add some debug.
 	* morituri/common/encode.py:
diff --git a/morituri/rip/image.py b/morituri/rip/image.py
index 18d7f79..0ff3732 100644
--- a/morituri/rip/image.py
+++ b/morituri/rip/image.py
@@ -62,7 +62,7 @@ class Encode(logcommand.LogCommand):
         runner = task.SyncRunner()
 
         for arg in args:
-            arg = unicode(arg)
+            arg = arg.decode('utf-8')
             indir = os.path.dirname(arg)
             cueImage = image.Image(arg)
             cueImage.setup(runner)

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list