You are not logged in.

#1 2026-04-06 05:40:58

rebornKidz
Member
From: Jakarta
Registered: 2015-07-09
Posts: 67
Website

[Solved] manpath: can't set the locale

السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
"May the peace, mercy, and blessings of Allah be upon you".


Here is what terminal yield:

manpath: can't set the locale; make sure $LC_* and $LANG are correct

I am sure that I already do `locale-gen` and try reopen terminal, and see does the warning goes away or not.

/etc/locale.conf

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_COLLATE=en_US.UTF-8

/etc/locale.gen

en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
C.UTF-8 UTF-8

localectl

System Locale: LANG=en_US.UTF-8
    VC Keymap: (unset)         
   X11 Layout: (unset) 

locale -a

C
C.utf8
en_US.utf8
ja_JP.utf8
POSIX

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-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=


The additional info
`grep -r 'C.UTF-8' /etc/`

/etc/profile.d/locale.sh:# define default LANG to C.UTF-8 if not already defined
/etc/profile.d/locale.sh:LANG=${LANG:-C.UTF-8}
/etc/locale.gen.pacnew:#en_SC.UTF-8 UTF-8  
/etc/locale.gen.pacnew:#es_EC.UTF-8 UTF-8  
/etc/locale.gen:C.UTF-8 UTF-8

side question, what is LC_CTYPE, when it used?

Last edited by rebornKidz (2026-04-06 18:16:47)


Stay true, dont forget to smile.

Offline

#2 2026-04-06 08:16:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,253

Re: [Solved] manpath: can't set the locale

"en_US.UTF-8", not "en-US.UTF-8", but it's correct in your /etc/locale.conf
https://wiki.archlinux.org/title/KDE#Pl … e_settings ?
Otherwise your shell rc or ~/.profile?
https://wiki.archlinux.org/title/Environment_variables

https://man.archlinux.org/man/locale.7.en#LC_CTYPE

Online

#3 2026-04-06 14:35:39

rebornKidz
Member
From: Jakarta
Registered: 2015-07-09
Posts: 67
Website

Re: [Solved] manpath: can't set the locale

  • Do you mean i should use ` . I do `localectl set-locale LANG=en_US.UTF-8`, but `locale` still yield en-US.UTF-8. (no terminal reset).
    مَاشَآءَاللّهُ تَبَارَكَ اللهُ, your judgement is correct sire, `env LANG=en_US.UTF-8 kitty` cleanse the error. Nonetheless, i cannot form the remedy.

  • While trying to inspect ~/.config/plasma-localerc, do launch `systemsettings`. I got:

    Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
    Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
    If this causes problems, reconfigure your locale. See the locale(1) manual
    for more information.

    (I think it might be useful to note, no intent to over complicate the problem).
    Here is the .config/plasma-localerc

    [Formats]
    LANG=en-US.UTF-8

    I already changed to en_US.UTF-8, respawn the terminal, but still same.

  • My .bashrc just contain hook to aliases and init-nvm, and I dont have any ~/.profile

Another side question, if you don't mind sire. In a good, robust and maintained arch system, should LC_ALL be configured? or the other way, that's the pandora box.

Last edited by rebornKidz (2026-04-06 14:37:56)


Stay true, dont forget to smile.

Offline

#4 2026-04-06 14:37:33

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,253

Re: [Solved] manpath: can't set the locale

Here is the .config/plasma-localerc

Yeah, that's where the bogus locale is coming from.
Fix or remove it.

Online

#5 2026-04-06 14:44:30

rebornKidz
Member
From: Jakarta
Registered: 2015-07-09
Posts: 67
Website

Re: [Solved] manpath: can't set the locale

I do small edit, then you replied yikes .
Already removed sire, as you and our cook book said.
Closing this soon when it goes away when I do re-login the user.

Thank you very much.


Stay true, dont forget to smile.

Offline

Board footer

Powered by FluxBB