-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
3.1b1 Unicode wide char issue when built with Nix #6584
Comments
So the underlying issue here seems to be that your locale is not unicode capable, which is broken if you want to use non-ascii characters. Fix that, and you'll get the actual output as opposed to it failing to display at all. The commit you highlighted just added an error message. Which seems excessive (and we've removed such errors previously), so I'm dropping it down to a debug message, which we can then direct people to turn on if we suspect it's an issue.
I think we can boil this down to just |
Made fish unusable if the locale was C and non-ascii chars were in the prompt. See fish-shell#6584.
Super annoying in a C locale if the prompt contains non-ascii chars. See #6584
Definitely less annoying, now. Thanks for the fact action! I was more confused about why this wasn't a problem for anything prior to that specific commit. Looks like I'll have to go back to the totally-uncool As I suspected, it's an odd issue due to using Nix but not NixOS (locales are a bit touchy; see: NixOS/nixpkgs#6878 and nix-community/home-manager#354). |
When building the 3.1b1 "release" with Nix, the resulting binary displays the following warning when the prompt contains a unicode character such as
λ
or❯
**:Bisecting the issue, this problem appears to have been introduced with 5134949. 9715db9 (the previous commit) doesn't display this problem.
Something to note is that this issue does not occur when building outside of a Nix environment (aka as detailed in the README) -- the specified characters fail to display at all. It is entirely possible this is a problem with my system due to the fact that it is not pure NixOS and instead Nix + Arch, but I figured the people who would know best are you.
**Note: I tested both Starship and Pure prompts, and both exhibited this behavior.(any Unicode character exhibits this problem)STR
default.nix
to be built withnix-build
)sh -c 'env HOME=$(mktemp -d) ./result/bin/fish'
function fish_prompt; echo λ; end
<W> fish: Tried to print invalid wide character string
For what it's worth, the message on master (6682f0e) is:
The text was updated successfully, but these errors were encountered: