Issue 5964, UTF16reader returned str, shoul be unicode.

svn: r20200
This commit is contained in:
Peter Landgren 2012-08-11 08:40:44 +00:00
parent cd72244232
commit 653ce7c2fc

View File

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