[lxc-users] LXC ubuntu locales

술욱 nbensa+lxcusers at gmail.com
Sat Apr 2 03:57:53 UTC 2016


2016-04-02 0:46 GMT-03:00 Andrey Repin <anrdaemon at yandex.ru>:
> Greetings, 술욱!
>
>>>> Have you tried:
>>>
>>>> LC_ALL=C sudo lxc-create... ?
>>>
>>>> or LC_ALL=en_US.utf-8 sudo lxc-create ...
>>>
>>> Neither will work. For obvious reasons.
>>>
>>> `man sudo' for the details.
>
>> Not so obvious to me.
>
> No? "sudo" resets most (if not all) of user's environment

$ sudo -i
[sudo] password for zoolook:
root at venkman:~# export | grep LANG
declare -x LANG="es_ES.UTF-8"
declare -x LANGUAGE="es_ES:en_US:en"

$ LANG="C" sudo -i
root at venkman:~# export | grep LANG
declare -x LANG="C"
declare -x LANGUAGE="es_ES:en_US:en"

So no. It was no so obvious to me. And no, I have no special sudoers.
In fact, this is default Ubuntu 15.10 install.

As this is off-topic, this is my last message on sudo on this list.
Let's talk about LXC please.

Regards,
Norberto


More information about the lxc-users mailing list