beancount / beangulp

Importers framework for Beancount
GNU General Public License v2.0
59 stars 23 forks source link

cache: Fix FileMemo.head() unicode decoding #74

Closed dnicolodi closed 3 years ago

dnicolodi commented 3 years ago

Fix file head byte data decoding when the byte string read from the file terminates in the middle of an unicode character represented by more than one byte. This is likely to occur for vaiable width encodings such as utf8 with languages that uses characters beyond the ascii set.

FileMemo is deprecated, but it should work correcly as long as it exists.

Fixes #7.