command line – Unknown locale, assuming C – Error message in terminal

[ad_1]

Notice: The query will not be about tips on how to change the locale, or what’s the locale. The query is about why is there a locale-based error in man in 10.3, however no error in 12.6, regardless that the locales are similar in each circumstances.


After working man, studying a guide entry and shutting it, I obtain the next error

$ man curl                     # The guide opens, I learn it, then shut
Unknown locale, assuming C
$ man zsh                      # The guide opens, I learn it, then shut
Unknown locale, assuming C

The guide pages work appropriately, and may be browsed, however I do not know the place the error comes from, and it’s quite annoying.

That is what I receive when working locale

$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

I am utilizing Ventura 13.0. The identical error doesn’t occur in 12.6 regardless that the locale is similar (see beneath), so I don’t suppose that it is a matter with locale, however quite a problem with man.

Notice that locale says

   LANG         Used as an alternative to any unset LC_* variable.     
If LANG is unset, it should act as if set to "C".  If any of LANG or    
LC_* are set to invalid values, locale acts as if they're all unset.

so there ought to be no error, LANG ought to be mechanically set to C.

EDIT:

Some new perception. I ran the identical instructions on two computer systems.

Laptop 1 runs 13.0 outputs the error.
This laptop has man for MacOS 13.0 from January 9 2021.

Laptop 2 runs 12.6 and outputs no error.
This laptop has man model 1.6g from September 19 2005.

The output of the locale command is totally similar on each computer systems, specifically they each have LC_CTYPE="UTF-8".

Might or not it’s a man bug?

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *