Bug 439314

Summary: man ignores LC_MESSAGES
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: manAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-21 11:06:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lennart Poettering 2008-03-28 00:07:00 UTC
In my locale settings LANG is de_DE@euro and LC_MESSAGES is C. However, man
always greets me in german language with UTF-8 characters. Which is broken in
two ways:

If LC_MESSAGES is C I expect english language program messages and man page
contents.

If LC_MESSAGES is C and LANG is de_DE@euro then I don't expect UTF8 output on my
screen.

Comment 1 Ivana Varekova 2008-04-01 12:07:49 UTC
mn should show Germany version of man page because of the language which is
chosen depends on LANG variable (LC_MESSAGES set the messages language) and the
encoding of the output is defined in /etc/sysconfig/i18n so this is not a bug.

Comment 2 Lennart Poettering 2008-04-01 13:53:51 UTC
Sorry, this is a bug.

The encoding should be chosen depending on the locale settings of the session,
not based on some global config option. All gettext() based applications handle
this correctly. man doesn't. It's a bug in man.

Yes, I did choose german language messages. That's why I expect german language
man page texts too. It is wrong to depend on the setting of $LANG. man should
check setlocale(LC_MESSAGES, NULL) for the locale to show man pages in. That's
how the locale system works.

BTW. man-db handles this correctly.

Comment 3 Lennart Poettering 2008-04-01 13:54:54 UTC
Ouch i must have been drunk. Let's try this again:

Yes, I did choose *english* language messages. That's why I expect *english*
language man page texts too. It is wrong to depend on the setting of $LANG. man
should check setlocale(LC_MESSAGES, NULL) for the locale to show man pages in.
That's how the locale system works.


Comment 4 Bug Zapper 2008-05-14 08:21:26 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Ivana Varekova 2008-05-15 12:19:39 UTC
Fixed in man-1.6f-6.fc10.

Comment 6 Lennart Poettering 2008-06-14 00:21:10 UTC
This bug still exists in man-1.6f-8.fc10. My locale settings are unchanged, and
I still get the german man pages.

Comment 7 Ivana Varekova 2008-11-21 11:06:35 UTC
Thanks. Fixed in man-1.6f-14.fc11.