Terminal locale not UTF-8, but UTF-8 locale is being forced



  • Hello Kopano Forum,

    today I see all services from kopano start with a warning:

    Warning: Terminal locale not UTF-8, but UTF-8 locale is being forced.
    

    Then I check my locale

    [root@vmserver ~]# locale
    LANG=de_DE.UTF-8
    LC_CTYPE="de_DE.UTF-8"
    LC_NUMERIC="de_DE.UTF-8"
    LC_TIME="de_DE.UTF-8"
    LC_COLLATE="de_DE.UTF-8"
    LC_MONETARY="de_DE.UTF-8"
    LC_MESSAGES="de_DE.UTF-8"
    LC_PAPER="de_DE.UTF-8"
    LC_NAME="de_DE.UTF-8"
    LC_ADDRESS="de_DE.UTF-8"
    LC_TELEPHONE="de_DE.UTF-8"
    LC_MEASUREMENT="de_DE.UTF-8"
    LC_IDENTIFICATION="de_DE.UTF-8"
    LC_ALL=
    

    What is my problem?

    Kopano 8.7.7.0 Supported



  • The system locale is not necessarily the same as the shell’s locale.
    Curiously enough, I just found myself in that position that /etc/locale.conf has LC_CTYPE=nb_NO.UTF-8 while my shell reports en_US.UTF-8 (which I seem to be getting through /etc/profile).



  • dpkg-reconfigure -plow locales

    select what you need.
    set the default to de_DE.UTF-8

    run locales again.
    you now should see also :
    LANGUAGE=de_DE:de

    reboot the server and check again.

    ps. on debian see also : /etc/default/locale


Log in to reply