You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my system, I have de_AT.UTF-8 set as my locale. Whenever I start a devshell, I get the following warnings:
bash: warning: setlocale: LC_CTYPE: cannot change locale (de_AT.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (de_AT.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (de_AT.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (de_AT.UTF-8): No such file or directory
bash: warning: setlocale: LC_CTYPE: cannot change locale (de_AT.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (de_AT.UTF-8): No such file or directory
To get rid of these warnings, I need to set LOCALE_ARCHIVE to "${pkgs.glibcLocales}/lib/locale/locale-archive".
This works just fine in pkgs.mkShell using:
The reason is that LOCALE_ARCHIVE is set too late, after which the warnings have already been printed.
When I export LOCALE_ARCHIVE to the correct path before invoking the devshell, the warnings are resolved.
To Reproduce
Steps to reproduce the behavior:
Set your locale to de_AT.UTF-8.
Expected behavior
No warnings should be printed.
System information
Linux
system: "x86_64-linux"
host os: Linux 6.12.95+deb13-amd64, Debian GNU/Linux, 13 (trixie), nobuild
Activity