-
Notifications
You must be signed in to change notification settings - Fork 309
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
LANG variable is blank by default in Butterfly #141
Comments
This means butterfly failed to get your browser environment and therefore has no LANG defined. |
Sorry, I forgot to mention the OS. I'm running with Windows 8.1 x64 as a
host to virtual Ubuntu trusty64. Butterfly is being started from Ubuntu and
accessed via Chrome on Windows. For that I use a private network between
host and guest, and that is configured using Vagrant/Chef.
…On Fri., 24 Mar. 2017, 20:24 Mounier Florian, ***@***.***> wrote:
This means butterfly failed to get your browser environment and therefore
has no LOCALE defined.
What's your setup? (os, ...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#141 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEmfyHHUN4PXzIIbn9qNz9g12qTAd0oQks5ro5nLgaJpZM4MmVSA>
.
|
Solved it temporarily using
|
It seems to work with --login because it uses su and su does some initialisations but it should also work without it as the shell is run with interactive and login arguments. What's your shell? |
I think I've got your point. I'm using zsh. When I run the command you asked about I get the output below, which is missing a ton of stuff compared to what
This is what I get if I run the same command for zsh instead of bash (which is also missing a lot, notably LANG and LC_ALL)
I'm running the following commands as part of a #!/usr/bin/env bash #Configure locale for bash This is the content of
I'm running the same commands again with zsh's shebang (#!/usr/bin/env zsh) after zsh is provisioned, but I don't think that makes any difference. |
I was trying to run a python script, but it was failing with
It turns out the problem was that the LANG variable is blank in Butterfly server. So are LANGUAGE and LC_ALL. All the other LC variables are set to POSIX.
I'm opening Butterfly in Chrome, running it from a Ubuntu Trusty64 machine set up with Vagrant and Chef, using Virtual Box.
This is what I see when I run
locale
from Butterfflyvagrant@<my_user>~ % locale LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
And this is what I see when I run locale from the Ubuntu virtual machine from where I start Butterfly server.
vagrant@<my_user>~ % locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
Does Butterfly support anything else than POSIX? How to set up the default language variables for Butterfly?
The text was updated successfully, but these errors were encountered: