Issue 5964, UTF16reader returned str, shoul be unicode.
svn: r20200
This commit is contained in:
1 parent
cd72244232
commit
653ce7c2fc
1 file changed
+3
-3
@@ -1219,11 +1219,11 @@ class UTF16Reader(BaseReader):
|
||||
self.reset()
|
||||
|
||||
def readline(self):
|
||||
l = self.ifile.readline()
|
||||
l = unicode(self.ifile.readline())
|
||||
if l.strip():
|
||||
return l
|
||||
return l.translate(STRIP_DICT)
|
||||
else:
|
||||
return self.ifile.readline()
|
||||
return unicode(self.ifile.readline()).translate(STRIP_DICT)
|
||||
|
||||
class AnsiReader(BaseReader):
|
||||
|
||||
|
||||
Reference in new issue
Block a user