-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
glibc-using-nix-installed or guix-installed hledger won't handle non-ascii data, even with LANG set #1033
Comments
@peti, any idea what might be the cause ? |
The Nix
that needs to be set at run-time. Alternatively, that variable can also point to the locale archive of the native host OS:
This separation exists so that Nix users can choose a custom set of locales they'd like to install without affecting |
Wow, good info, thanks. What do you think is the best approach for reliable install commands that take this into account ? This worked on Linux:
but not on Mac:
|
Also, I'm curious why it doesn't require this extra step on Mac. |
Nix doesn't use |
just wanted to chime in and say this fixed my issue on Ubuntu 18.04! thank you 😁 |
I just ran into this issue. It would be good if the file line (and character position) would be displayed so at least users can check what hledger doesn't like about the file. |
Same on Guix, although it's easily resolved by:
And adding
somewhere to |
This is really a nix issue, rather than a hledger issue. Perhaps we can close this? |
This is not a Nix issue. I experienced it on Debian. I think it happens when the locales are not installed. While it needs to be fixed by the user, I suggested something that hledger can do:
Also something about installing locales could be put into the hledger docs. |
There are multiple issues (or a multi-headed issue), including:
|
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…th utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed.
…ith utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed. This should hopefully avoid encoding issues, but since it fundamentally alters how encoding is dealt with it may lead to unexpected outcomes. Widespread testing on a number of different platforms would be useful.
…ith utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed. This aims to solve all problems where misconfigured locales lead to parsers failing on utf8-encoded data. This should hopefully avoid encoding issues, but since it fundamentally alters how encoding is dealt with it may lead to unexpected outcomes. Widespread testing on a number of different platforms would be useful.
…ith utf8 encoding. (simonmichael#1619) May also fix simonmichael#1154, simonmichael#1033, simonmichael#708, simonmichael#536, simonmichael#73: testing is needed. This aims to solve all problems where misconfigured locales lead to parsers failing on utf8-encoded data. This should hopefully avoid encoding issues, but since it fundamentally alters how encoding is dealt with it may lead to unexpected outcomes. Widespread testing on a number of different platforms would be useful.
Hello @SqrtMinusOne .. do you know of a one-line GUIX install command suitable for our Install page ? Would |
@simonmichael Well, Guix is meant to be configured declaratively, so there isn't a one liner that installs the package the Guix way :-) But yeah, in principle
will do the job. Users will have to adapt it to their setup. |
Thanks, perhaps I'll leave GUIX off the page in that case. |
See also #2089. |
Reported by @vifon: hledger installed via the nix command on the download page fails if the journal contains non-ascii characters. Reproduced on Gentoo and Ubuntu GNU/Linux; does not happen on mac.
Eg:
The text was updated successfully, but these errors were encountered: