Skip to content
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

beam.packages.erlangR20.elixir warning: latin1 encoding vs. utf8 #30047

Closed
hauntedhost opened this issue Oct 3, 2017 · 5 comments
Closed

beam.packages.erlangR20.elixir warning: latin1 encoding vs. utf8 #30047

hauntedhost opened this issue Oct 3, 2017 · 5 comments

Comments

@hauntedhost
Copy link

Issue description

When installing latest Elixir with Erlang 20 via beam.packages.erlangR20.elixir, several of these warnings are emitted through the build process:

warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)

Steps to reproduce

I'm installing through environment.systemPackages with this configuration.nix (on Vultr FWIW). Though I believe nix-env -i beam.packages.erlangR20.elixir on a new system may be enough to reproduce.

The only way I've gotten the warnings to subside if by specifying this pkgs.lib.overrideDerivation.

Technical details

  • System: minimal-18.03pre116572.9824ca6975-x86_64-linux
  • Nix version: 1.11.15
  • Nixpkgs version: 18.03pre116572.9824ca6975
  • Sandboxing enabled: false
@hauntedhost
Copy link
Author

/cc: @gleber (by request from /r/NixOS)

@ankhers
Copy link
Contributor

ankhers commented Oct 3, 2017

I will look into this.

@gleber
Copy link
Contributor

gleber commented Oct 3, 2017

I see that you have dropped the override. Is this because of these are just harmless warnings?

I've switched to the same nixpkgs and could not reproduce the warnings on Ubuntu:

$ git checkout 9824ca6975
HEAD is now at 9824ca6... caffe: Make 'bin' the first output

$ nix-build -A beam.packages.erlangR20.elixir .
[snip]
/nix/store/05ncr9vibjin9kshwws52ysyyhhz5dgw-elixir-1.5.1

Output is here:
https://pastebin.com/nL7GdDLv

I'll try to reproduce this on NixOS machine now.

@gleber
Copy link
Contributor

gleber commented Oct 3, 2017

I was able to reproduce this on NixOS machine: http://ix.io/AHh

gleber added a commit to gleber/nixpkgs that referenced this issue Oct 4, 2017
It looks like Erlang/OTP requires access to LOCALE_ARCHIVE for locales to correctly work. Elixir depends on this here:
https://github.com/elixir-lang/elixir/blob/7a556b8f26f42f6b7510dc1d2351564d91ab746c/lib/elixir/src/elixir.erl#L76

Fixes NixOS#30047
@hauntedhost
Copy link
Author

Thanks @gleber 🎉

srhb pushed a commit to srhb/nixpkgs that referenced this issue Oct 11, 2017
It looks like Erlang/OTP requires access to LOCALE_ARCHIVE for locales to correctly work. Elixir depends on this here:
https://github.com/elixir-lang/elixir/blob/7a556b8f26f42f6b7510dc1d2351564d91ab746c/lib/elixir/src/elixir.erl#L76

Fixes NixOS#30047
fpletz pushed a commit that referenced this issue Oct 14, 2017
It looks like Erlang/OTP requires access to LOCALE_ARCHIVE for locales to correctly work. Elixir depends on this here:
https://github.com/elixir-lang/elixir/blob/7a556b8f26f42f6b7510dc1d2351564d91ab746c/lib/elixir/src/elixir.erl#L76

Fixes #30047

(cherry picked from commit 558db53)
@LnL7 LnL7 mentioned this issue Jun 22, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants