-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Unicode support for neuron CLI #381
Comments
Re-occurence of #273 ? |
Probably something to do with your terminal encoding? If so, perhaps we can document the environment fix in neuron guide. |
Locale seems to be correct and other CLI tools seem to pick up on the unicode characters. Edit: Right, it seems that #273 describes the same issue. |
Just discovered that I don't have this problem when running |
Alright, I figured it out, problem is with Interactive sessions work because This probably means that my locale-archive is not correctly generated, or that binary build with nix glibc locale archive is not compatible with my locale archive. I'm not sure, I don't understand the role of the locale-archive. |
Just discovered that setting Again, don't know enough about locale mechanism to tell if this is a viable solution, or just a temporary one. Ideally I wouldn't want to change my system-wide locale just for one application. |
@maralorn Is this something that can be addressed in Nix? |
Researching for some more shows that Arch Linux does not support |
Perhaps we need to add |
I'm facing this issue. I'm on Archlinux. Setting |
Is this even a neuron issue? |
I have no idea. It only occurs in Neuron. Maybe it is a nix issue? |
Here's my observations (on Ubuntu 16.04.7)
AFAIK, there's no way to make /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/locale/locale-archive to contain more locale data, that would violate the principle of Nix. So I believe the only way to fix this issue is directing According to nix dev mailing list and setup hook of glibcLocales, we could set And it does work! Running {
"query": [
"ZettelQuery_ZettelsByTag",
[
[],
"OrdinaryConnection",
{
"zettelsViewGroupByTag": false,
"zettelsViewLinkView": "LinkView_Default"
}
]
],
"result": [
{
"zettelContent": [],
"zettelDate": [
"2020-10-07",
"12:45:00"
],
"zettelError": {
"Right": []
},
"zettelFormat": "markdown",
"zettelID": "71462dd7",
"zettelPath": "71462dd7.md",
"zettelQueries": [],
"zettelTags": [],
"zettelTitle": "一些中文",
"zettelTitleInBody": true,
"zettelUnlisted": false
}
],
"skipped": {}
} So I think there's nothing could be improved on the neuron side, this kinds of setting could only happens in the user's running environment. Maybe there's more convenience way on NixOS though, consider there's a |
I think we can automate this by creating a wrapper neuron script that uses this environment variable. It can be done in For the corresponding docker change, see cbdaeee |
Neuron currently does not accept unicode characters in it's CLI.
For example,
neuron new Piemērs
results in a note with titlePiem��rs
. Same applies to other commands, such asneuron query -t piemērs
.This problem only exists when using neuron CLI. If notes have unicode characters, they get correctly rendered in the static website.
The text was updated successfully, but these errors were encountered: