-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misaligned register output for Unicode journal using mintty #961
Comments
#708 is not related. The problem described by OP happens when I use #536 related I think. With my above example in
doesn't work (although I ran this a few minutes before starting to write my post ... and it worked ... or at least it seemed to work, but now it doesn't :sad:). But it does work in I've skimmed through the issue and basically it boils down to either it works under Cygwin or Windows, right? Not both? :D Not a big deal. Weird. One solution is to use different binaries in different terminals, maybe? I won't go down that route tho', it's not a blocking problem. Easier to rename accounts not use accented letters. |
Thanks for the testing of this and the other windows issues. I'll update those pages also, but here's a summary of my current understanding of windows non-ascii issues:
Back to #961: the
|
Or as a quick test: what do you get from |
I did the following in both I did not fully comprehend this part:
I'm okay to do this, but break it down for me a bit :D Do I need to modify the source and recompile to do this? Or can I use |
Certainly! That is shorthand for a typical debugging workflow. It involves modifying the source a little bit and running it (in interpreted mode) from the ghci prompt. |
I cloned the repo (at this commit: c8b0c9a) and did
Not sure about this. I don't have I've checked that I have a recent-ish I didn't have time to dive into this more than this (maybe next week), but I'm still here and listening if you have any input, I'll help get to the bottom of this. |
The sed code was showing an error message, not too precise. Pandoc's lua filters to the rescue! [ci skip]
Thanks @kohanyirobert, this testing from the windows side is very useful. I've replaced sed with a more portable solution in latest master. The Roi.hs error is odd. I guess This
|
Oh, I replaced a different use of sed. Well I think that sed error is harmless, but hopefully we'll find a portable way of silencing it in due course.. |
Pulled latest master. Same old, same old. I ran Someone in the linked issue (or maybe somewhere else) mentioned that the macro header gets generated on the first run of Edit:
But! The macro header file got created in the meantime :) So Changed line 87 in
the output of running |
@kohanyirobert sorry I lost track of this. It seems GHC 8.6.3 had a known bug on windows, hanging with packages like shakespeare. I'm currently updating hledger's stack.yaml to nightly-2019-03-09 & GHC 8.6.4, which should fix that. Your debug output above shows |
Yes, it seems. :( Thanks for the effort tho'! |
Thanks. I've updated the download page and http://hledger.org/hledger.html#unicode-characters . |
I'm using
msys2
on Windows 10 withmintty 2.9.0 (x86_64-pc-msys)
and I if I have a journal like thisand I do
hledger -f a.journal r
this is the outputThe same thing in
cmd.exe
setting the default codepage to Unicode withchcp 65001
works, the output look likes this(which is the expected).
I've built
hledger
using these steps.If I just
cat
the journal file onmintty
it looks okay, as the second output. Same withtype
(cat
equivalent) incmd.exe
.In
mintty
I use Lucida Console as my font (tried changing it, but it doesn't matter, shouldn't matter), locale isen_US
character set isUTF-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 throughmintty
.Any idea on changing/fixing this?
I mainly use
mintty
and this 1 character misalignment throws me off completely sometimes :DThe text was updated successfully, but these errors were encountered: