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()
|
||||
|
||||
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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user