Manpath can't set locale

Hello,
I’m getting this error in my vscode terminal manpath: can't set the locale; make sure $LC_* and $LANG are correct, I was unable to find a fix for it under vscode forum and Github. :frowning:
Before getting the error, the last thing I know is I installed nodeJs from nvm and I restarted my Visual Studio Code.

locale
$ locale
LANG=en_IN
LC_CTYPE="en_IN"
LC_NUMERIC=en_IN
LC_TIME=en_IN
LC_COLLATE="en_IN"
LC_MONETARY=en_IN
LC_MESSAGES="en_IN"
LC_PAPER=en_IN
LC_NAME=en_IN
LC_ADDRESS=en_IN
LC_TELEPHONE=en_IN
LC_MEASUREMENT=en_IN
LC_IDENTIFICATION=en_IN
LC_ALL=en_IN

$ locale -a
C
POSIX
en_DE.utf8
en_IN
en_IN.utf8
en_US.utf8
1 Like

You have to generate the correct locales first.

  1. Edit /etc/locale.gen and uncomment all the locales you want to use by removing the “#” in front of the pertinent lines.

  2. Then, generate the locales… :arrow_down:

sudo locale-gen

More information can be found on the old forum… :arrow_down:

1 Like

Done this and other commands from the other post still I’m getting the error :frowning:

Have you rebooted?

I restarted my session and then reboot my system.

This two are not correct locales entries.

1 Like

Found the solution at ArchLinuxWiki locale(apparently I’m not allowed to post link ) and after deleting this ~/.config/plasma-localerc file and restarting the session(kill -9 -1).
Its fixed!! :smiley:

4 Likes

Exactly ! That’s the way to do it :wink:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.