-
-
Notifications
You must be signed in to change notification settings - Fork 352
Description
I'm using msys2 on Windows 10 with mintty 2.9.0 (x86_64-pc-msys) and I if I have a journal like this
1/1 a
ábc 123
abc
and I do hledger -f a.journal r this is the output
2019/01/01 a ábc 123 123
abc -123 0
The same thing in cmd.exe setting the default codepage to Unicode with chcp 65001 works, the output look likes this
2019/01/01 a ábc 123 123
abc -123 0
(which is the expected).
I've built hledger using these steps.
C:\Users\rkohanyi>hledger --version
hledger 1.12
If I just cat the journal file on mintty it looks okay, as the second output. Same with type (cat equivalent) in cmd.exe.
In mintty I use Lucida Console as my font (tried changing it, but it doesn't matter, shouldn't matter), locale is en_US character set is UTF-8 (Unicode).
The file itself is encoded with UTF-8 (verified in vim).
It seems to me that this behaviour is displayed when hledger executes through mintty.
Any idea on changing/fixing this?
I mainly use mintty and this 1 character misalignment throws me off completely sometimes :D