Bug 148472 - umlauts in german X11 man pages
Summary: umlauts in german X11 man pages
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Beta 2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Mads Martin Joergensen
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-06 18:43 UTC by Harald Koenig
Modified: 2006-02-28 17:16 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koenig 2006-02-06 18:43:04 UTC
umlauts in german man pages don't show up using LANG=de_DE.UTF-8
with german installation there only some (very) few german man pages,
and I managed to slip over one of them:

        man ifconfig | grep unterst

shows "unterstutzten" instead of "unterstützten" many times (with and without grep:)
                                         ^
Comment 1 Dr. Werner Fink 2006-02-07 15:51:34 UTC
The manual page but not man is broken.
Comment 2 Thorsten Kukuk 2006-02-07 15:53:27 UTC
Don't know why you put me in CC.
Comment 3 Hendrik Vogelsang 2006-02-28 12:37:24 UTC
its also not the man page but the pager. xman for instance works. there is afair no easy way to workaround this.
Comment 4 Stefan Dirsch 2006-02-28 13:52:12 UTC
Mike might know where is the problem here.
Comment 5 Mike Fabian 2006-02-28 16:34:57 UTC
From the source of the man-page:

    .SH Adressfamilien
    Wird das erste Argument hinter dem Schnittstellennamen als der Name einer
    unterst\(:utzten Adressfamilie erkannt, so wird diese Adressfamilie dazu
    benutzt um alle Protokolladressen zu dekodieren und darzustellen.  Zur
    Zeit werden u.A. folgende Adressfamilien unterst\(:utzt.
    .B inet

What's this "\(:u"? Is this supposed to work in groff?
Comment 6 Stefan Dirsch 2006-02-28 16:48:55 UTC
xman uses this command line:

"| pic | eqn | tbl -Tlatin1 | GROFF_NO_SGR= groff -Tlatin1 -mandoc"

see xc/programs/xman/vendor.h.
Comment 7 Hendrik Vogelsang 2006-02-28 16:50:15 UTC
"\(:u" is ü in groff yes (well as far as i can tell from the documentation)
Comment 8 Mike Fabian 2006-02-28 16:52:11 UTC
With this command line, you can also get the Umlauts using less:

mfabian@magellan:~$ zcat /usr/share/man/de_DE/man8/ifconfig.8.gz | pic |eqn|tbl -Tlat
in1|GROFF_NO_SGR= groff -Tlatin1 -mandoc | less
mfabian@magellan:~$

Comment 9 Mike Fabian 2006-02-28 16:56:14 UTC
This commandline works:

mfabian@magellan:~$ zcat /usr/share/man/de_DE/man8/ifconfig.8.gz | groff -Tutf8 -mand
oc | less
mfabian@magellan:~$

This one doesn't:

mfabian@magellan:~$ zcat /usr/share/man/de_DE/man8/ifconfig.8.gz | nroff -Tutf8 -mand
oc | less
mfabian@magellan:~$


Comment 10 Hendrik Vogelsang 2006-02-28 16:57:46 UTC
hm so its no problem of the man-page right werner?. Could we somehow use this command for german man pages? Or is there something else wrong? 
Comment 11 Mike Fabian 2006-02-28 17:09:24 UTC
mfabian@magellan:/tmp$ zcat /usr/share/man/de_DE/man8/ifconfig.8.gz | groff -Tascii8
-mandoc | less
<standard input>:1: warning: can't find special character `:u'
<standard input>:66: warning: can't find special character `:a'
<standard input>:81: warning: can't find special character `:o'
<standard input>:81: warning: can't find special character `ss'
mfabian@magellan:/tmp$

The problem seems to be the -Tascii8.
Comment 12 Mike Fabian 2006-02-28 17:11:00 UTC
mfabian@magellan:/$ diff -u /usr/bin/nroff /usr/bin/nroff.new
--- /usr/bin/nroff      2006-02-28 18:08:57.000000000 +0100
+++ /usr/bin/nroff.new  2006-02-28 18:08:04.000000000 +0100
@@ -114,7 +114,7 @@
         ;;
         # make 'man iso-8859-15' display correctly in UTF-8 locales using Euro
         ca_ES*|de_AT*|de_BE*|de_DE*|de_LU*|en_BE*|en_IE*|es_ES*|eu_ES*|fi_FI*|fr_BE*|fr_FR*|fr_LU*|ga_IE*|gl_ES*|it_IT*|nl_BE*|nl_NL*|pt_PT*|sv_FI*|wa_BE*)
-        T=-Tascii8
+        T=-Tlatin1
         export LC_ALL=de_DE@euro
         ICONV="iconv -f ISO-8859-15 -t UTF-8"
         ;;
mfabian@magellan:/$
Comment 13 Mike Fabian 2006-02-28 17:16:14 UTC
Fixed groff package submitted to STABLE.

Closing as FIXED.