hGetContents: invalid argument (invalid byte sequence)

Hi folks, I hope to reach you well.

I’m a hledger user and I’m facing the problem above when I ran hledger commands against certain *.timeclock files.

I’m not able to differentiate the files where the commands are running successfully since they are huge, but I guarantee no “weirdo” characters such as": НǏ𝙅ƘԸⲘ𝙉০Ρ𝗤Ɍ𝓢ȚЦ𝒱Ѡ𝓧ƳȤѧᖯć𝗱ễ𝑓𝙜Ⴙ𝞲𝑗].

More info:



hledger -f all.timeclock  bal -3 -p  "from 2020/04/01"  --monthly 
hledger: /home/drawbridge/ba/freepla/hours/build/all.timeclock: hGetContents: invalid argument (invalid byte sequence)



locale

LANG=pt_BR.UTF-8
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=


I would appreciate your thoughts on this.

Hi
Sounds like this issue?
https://github.com/simonmichael/hledger/issues/691