Bug 88313 - man does'nt display accented characters
man does'nt display accented characters
Product: Red Hat Linux
Classification: Retired
Component: man (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Eido Inoue
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2003-04-08 16:27 EDT by Jacques Rodary
Modified: 2007-04-18 12:52 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-09-02 15:03:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jacques Rodary 2003-04-08 16:27:09 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Description of problem:
man  does'nt display accented characters of french manpages. Is there still
something like MANCHARSET or LESSCHARSET to set? If ye, what are the admissibles

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.upgrade from rh7.3 to rh9
2.run man -a <manpage>

Actual Results:  � � � etc... show as ?.

Expected Results:  correct display as before

Additional info:
Comment 1 Jacques Rodary 2003-04-08 17:58:14 EDT
Reading my mail, I feel bugzilla  has the same problem; LoL -:)
Comment 2 Jacques Rodary 2003-04-26 09:51:52 EDT
Is there anybody out there (Pink Floyd, the Wall)?
Comment 3 Eido Inoue 2003-04-28 12:44:46 EDT
what locale are you using? (type "locale" at the command line)
Comment 4 Jacques Rodary 2003-05-06 20:27:01 EDT
Comment 5 Jacques Rodary 2003-06-10 17:06:27 EDT
Still hoping for an answer. Thanks
Comment 6 Eido Inoue 2003-06-10 17:20:12 EDT

LANG=fr_FR.UTF-8@euro man ls

not just 

Comment 7 Jacques Rodary 2003-06-11 09:52:07 EDT
I tried LANG=fr_FR.UTF-8@euro: it qgaves things like répertoires instead of
répertoire. But LANG=fr_FR works, I am sure it didn't with RH7.3), and I still
have the euro sign €. I don't understand, but thanks anyway.
Comment 8 Eido Inoue 2003-06-11 12:49:16 EDT
Is your terminal set to display UTF-8? If it isn't you're receive gargage.

The reason fr_FR works and fr_FR@euro doesn't is because they use different
character sets: fr_FR uses iso-8859-1 (aka Latin-1) and fr_FR@euro uses
iso-8859-15 (aka Latin-9 or Latin-0)

The default character encoding for Red Hat Linux 8 and beyond (for European
language-- other languages (esp CJK) will be migrated to UTF-8 in later
versions) is UTF-8, which is different from 7.3.
Comment 9 Jacques Rodary 2003-06-18 19:09:49 EDT
I have been trying (very hard) to tell you that UTF8 does'nt work at all with
any west european locale (and possibly others). Please try them. For your
information,  my last comment said ini works, but I have to use kde konsole (in
gnome !!!).Gnome terminal won't accept  fr_FR locale. 
Comment 10 Jungshik Shin 2003-09-01 03:37:57 EDT
> Is your terminal set to display UTF-8? 
> If it isn't you're receive gargage.

  reporter, you didn't answer this question. However, I confirmed 
that 'man' doesn't work the way it should. There are two problems. 
One of them is not the fault of man but that of less (see bug 88868).
To see that, you can do the following:

  1. $ env LC_ALL=fr_FR.UTF-8 xterm &
  2. In a new xterm window, 

     $ env LANG=fr_FR.UTF-8 man man -P more

     You'll see that letters with diacritic marks are
     rendered correctly

  3. In the same xterm,
      $ env LANG=fr_FR.UTF-8 man man 
     would not work.

  Because the default pager for 'man' is 'less -isr', 
  this is a clear indication that 'less' is to blame.

Now, what's the problem of 'man' I wrote about above?
That is, it's not compliant to the POSIX-specified locale 
resolution-order. When LC_ALL is specified, it should have
the highest priority, but it still selects the man page based 
on LANG. I'll file it as a separate bug.

Comment 11 Jungshik Shin 2003-09-01 12:05:32 EDT
sorry. the first part of my comment #10 is wrong. I didn't relaize that
JLESSCHARSET was set to 'ko'. With that unset, 

LANG=fr_FR.UTF-8 /usr/bin/man man

works fine in a UTF-8 terminal.

So, this bug as reported should be closed.

On the other hand, I have a trouble with fr_FR (fr_FR@euro) in a ISO-8859-1 or
ISO-8859-15 terminal. Letters with diacritic marks come up as question
marks.Using '-P more' didn't change this.

When I use fr_FR.ISO-8859-1 or fr_FR.ISO-8859-15, they come up correctly. 

Because '-P more' change didn't make any difference, I suspect that either man
or groff is to blame for not using nl_langinfo(CODESET) but relying on parsing
the value of LANG to determine the codeset.
Comment 12 Eido Inoue 2003-09-02 15:03:59 EDT
as per comment #11, closing

Note You need to log in before you can comment on or make changes to this bug.