[lxc-users] LXC ubuntu locales

술욱 nbensa+lxcusers at gmail.com
Sat Apr 2 01:37:04 UTC 2016


2016-04-01 17:45 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. It "should" work, but the template tries to
"guess" from the packages installed in the host.

    langpacks="language-pack-en"

    if which dpkg >/dev/null 2>&1; then
        langpacks=`(echo $langpacks &&
                    dpkg -l | grep -E "^ii  language-pack-[a-z]* " |
                        cut -d ' ' -f3) | sort -u`
    fi


So yes, what I proposed won't work, but not because of sudo.

Regards,
Norberto


More information about the lxc-users mailing list