bugDatabase-driven manual pager suite - Bugs: bug #37663, man gives the error about locale

 
 

bug #37663: man gives the error about locale

Submitter:  None
Submitted:  Sat 03 Nov 2012 04:33:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 17 Sep 2014 12:32:11 AM UTC, comment #1: 

You shouldn't need to set LC_ALL, no.  Could you please run "strace man" in the offending locale environment and post the output?  That should be enough to work out what's going on here.

Sorry for the rather delayed response.

Colin Watson <cjwatson>
Group administrator
Sat 03 Nov 2012 04:33:22 PM UTC, original submission:  

I have

    $ locale
    LANG=en_GB.UTF-8
    LC_CTYPE=ru_RU.UTF-8
    LC_NUMERIC=en_GB.UTF-8
    LC_TIME=en_GB.UTF-8
    LC_COLLATE=ru_RU.UTF-8
    LC_MONETARY=ru_RU.UTF-8
    LC_MESSAGES=en_GB.UTF-8
    LC_PAPER=ru_RU.UTF-8
    LC_NAME=ru_RU.UTF-8
    LC_ADDRESS=ru_RU.UTF-8
    LC_TELEPHONE=ru_RU.UTF-8
    LC_MEASUREMENT=ru_RU.UTF-8
    LC_IDENTIFICATION="en_GB.UTF-8"
    LC_ALL=

    $ locale -a
    C
    en_GB.utf8
    POSIX
    ru_RU.utf8

But 'man' gives the error:

    $ man
    man: can't set the locale; make sure $LC_* and $LANG are correct
    What manual page do you want?

I set all LC_* to 'en_GB.UTF-8', but the error doesn't disappear. If I set the LC_ALL, the error disappears:

    $ LC_ALL=en_GB.UTF-8 man
    What manual page do you want?

Does 'man' really need to mandatory LC_ALL set? (If so, this is stupid behavior because many people have different locales in different LC_* variables and they can't use LC_ALL.)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-17 cjwatson StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code