Hi, thank you, when i use this on windows, it does not work like normal, may be a bug
OS: windows 7
OS default coding: koi8-r
test file: test.log, this log just have two words, and no line breaks
content: test result
expect: test result
but result is: test resul
after read the source code, i found this is a bug when it work on windows

When i update this line
data = self.fp.read(end_pos - self.fp.tell() - 1)
to
data = self.fp.read(end_pos - self.fp.tell())
it works like expect