parent
0108de71ab
commit
067f35edfc
|
@ -596,8 +596,9 @@ class FileBuffer(Buffer):
|
||||||
data = ''
|
data = ''
|
||||||
|
|
||||||
if data.startswith('\xEF\xBB\xBF'):
|
if data.startswith('\xEF\xBB\xBF'):
|
||||||
self.bytemark = data[:2]
|
# utf-8
|
||||||
data = data[2:]
|
self.bytemark = data[:3]
|
||||||
|
data = data[3:]
|
||||||
|
|
||||||
self.nl = self._detect_nl_type(data)
|
self.nl = self._detect_nl_type(data)
|
||||||
data = self.read_filter(data)
|
data = self.read_filter(data)
|
||||||
|
|
Loading…
Reference in New Issue