* morituri/common/encode.py:

Handle utf-8 properly.
This commit is contained in:
Thomas Vander Stichele
2010-02-28 19:02:57 +00:00
parent 1788470dcf
commit a9097bad73
2 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
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:

View File

@@ -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')