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