nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.16k stars 65 forks source link

setlocale warning #216

Open Gerschtli opened 1 year ago

Gerschtli commented 1 year ago

When I set environment.sessionVariables.LC_COLLATE = "en_US.UTF-8" in nix-on-droid.nix, I get (with set -x in session-init.sh)

++ export LC_COLLATE=en_US.UTF-8
++ LC_COLLATE=en_US.UTF-8
/data/data/com.termux.nix/files/home/.nix-profile/etc/profile.d/nix-on-droid-session-init.sh: line 24: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory

The strange thing is that running export LC_COLLATE="en_US.UTF-8" as the first command does not produce this warning. It also does not show this warning when the environment variable is not set in session-init.sh but set as first command.

I don't know what causes this issue, do you have an idea?