[Nix#8642] Nix uses UTF-8 even when terminal has no support #134

Open
opened 2024-03-16 06:45:06 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#8642

Describe the bug

Nix error messages contain UTF-8 even when $LANG is set to a non-UTF-8 variant.

Steps To Reproduce

  1. Use non-UTF-8-capable terminal
  2. Run nix-shell with non-existent variable name
  3. See mojibake (« instead of «)

Expected behavior

Not mojibake (either just <, or «)

nix-env --version output
nix-env (Nix) 2.13.3

Additional context

Picture of the offending terminal

(i'm also unsure how many terminal emulators properly let you select using «» as boundaries; alacritty doesn't do so OOTB, which is kinda painful when trying to copy e.g. drv paths from the repl.)

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/8642 **Describe the bug** Nix error messages contain UTF-8 even when `$LANG` is set to a non-UTF-8 variant. **Steps To Reproduce** 1. Use non-UTF-8-capable terminal 2. Run `nix-shell` with non-existent variable name 3. See mojibake (`«` instead of `«`) **Expected behavior** Not mojibake (either just `<`, or `«`) **`nix-env --version` output** nix-env (Nix) 2.13.3 **Additional context** <details> <summary>Picture of the offending terminal</summary> ![](https://puck.moe/up/pohuh-fivov.jpg) </details> (i'm also unsure how many terminal emulators properly let you select using «» as boundaries; alacritty doesn't do so OOTB, which is kinda painful when trying to copy e.g. drv paths from the repl.) **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:45:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#134
No description provided.