[SCM] morituri/master: * morituri/common/encode.py: Handle utf-8 properly.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:14 UTC 2014
The following commit has been merged in the master branch:
commit a9097bad73bbbe0dbeb8f49479ece347e4355b9c
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sun Feb 28 19:02:57 2010 +0000
* morituri/common/encode.py:
Handle utf-8 properly.
diff --git a/ChangeLog b/ChangeLog
index e1f1298..cd0c448 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-02-28 Thomas Vander Stichele <thomas at apestaart dot org>
+ * morituri/common/encode.py:
+ Handle utf-8 properly.
+
+2010-02-28 Thomas Vander Stichele <thomas at apestaart dot org>
+
* morituri/common/program.py:
Fix a problem with Arid's new album of not having an id.
diff --git a/morituri/common/encode.py b/morituri/common/encode.py
index f380325..1842834 100644
--- a/morituri/common/encode.py
+++ b/morituri/common/encode.py
@@ -129,6 +129,10 @@ class EncodeTask(task.Task):
@param profile: encoding profile
@type profile: L{Profile}
"""
+ assert type(inpath) is unicode, "inpath %r is not unicode" % inpath
+ assert type(outpath) is unicode, \
+ "outpath %r is not unicode" % outpath
+
self._inpath = inpath
self._outpath = outpath
self._taglist = taglist
@@ -147,8 +151,10 @@ class EncodeTask(task.Task):
audio/x-raw-int,width=16,depth=16,channels=2 !
level name=level !
%s !
- filesink location="%s" name=sink''' % (self._inpath,
- self._profile.pipeline, self._outpath))
+ filesink location="%s" name=sink''' % (
+ self._inpath.encode('utf-8'),
+ self._profile.pipeline,
+ self._outpath.encode('utf-8')))
tagger = self._pipeline.get_by_name('tagger')
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list