-
Notifications
You must be signed in to change notification settings - Fork 94
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
locale-related errors: Cannot set LC_ALL to default locale: No such file or directory #7
Comments
I fixed that by |
Yup totally agree but I want to balance the size of the box too. I have been a bit careless in this regard. Going forward I think a "safe to delete" list would be better than a "blindly deleting anything not related to en_US". Thanks for the report! |
In addition to Some related discussion here: https://bugzilla.redhat.com/show_bug.cgi?id=156477 |
Without deleting any of the locales I get this output on a freshly installed system:
en_DK didn't appear for the LC_TIME. Is there something specific to your setup perhaps? |
Hmm. I'm not sure how I ended up with such settings. One diff I can see is that I ran |
Yeah I thought about that after but got the same result. Peculiar! |
I can't reproduce this at the moment. Are there any steps I can follow to replicate? |
On my host OS I have |
I managed to reproduce the issue - it's indeed about the locales on the host OS. Seems locale settings are replicated when doing [host]$ export LC_TIME=en_DK.UTF-8
[host]$ vagrant ssh
Last login: Sat Dec 28 21:23:18 2013 from 10.0.2.2
[vagrant@vagrant-centos65 ~]$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_DK.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=
[vagrant@vagrant-centos65 ~]$ exit
logout
Connection to 127.0.0.1 closed.
[host] $ export LC_TIME=en_US.UTF-8
[host] $ vagrant ssh
Last login: Sat Dec 28 21:23:42 2013 from 10.0.2.2
[vagrant@vagrant-centos65 ~]$ locale
LANG=en_US.UTF-8
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= Same happens even if I connect through the redirected port: Then I checked # Send locale-related environment variables
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
SendEnv XMODIFIERS So that replicating of some env variables appears to be a standard feature of ssh. |
Maybe would be enough to put a note in |
There is a small note already. I would like to resolve this issue as much as possible by hopefully not sacrificing the size of the box too much and for the common case. I haven't forgotten about it! :) I was experimenting with deleting |
I think I'm happy with the solution above. Could you give it a go and see how it works out for you? I've uploaded a box that's been built with it. |
Hmm, for some reason that db-link doesn't work for me. I mean - error 404. |
Must just work for me because I am signed in. Shame! I've uploaded it over here instead: http://www.2creatives.com/assets/centos65-x86_64-locale-test.box |
That last one link says: "Forbidden You don't have permission to access /assets/ on this server." |
Check again? |
It's OK now. |
Great! |
Just tested it. Seems working for me at first glimpse 👍 I'm testing some other things now. |
Well I think my plan is to leave it until the weekend and do a release then if everything is working okay. This was the last thing I was hoping to tie up before that would happen. |
OK. I tested what I had in mind - for me it's working fine. |
Awesome. Thanks for testing this out! |
LC_TIME is actually still useful for local time zone information. GH-7
@javornikolov .Thanks very much .It working for me on my centos images |
yum reinstall glibc-common |
I'm getting some locale-related errors (from vagrant OS account) like
locale: Cannot set LC_ALL to default locale: No such file or directory
. Perhaps that's due to the manual cleanup during the setup.e.g.:
The text was updated successfully, but these errors were encountered: