[Bug 745965] New: man: UTF8 manpages garbled iff in %_mandir
https://bugzilla.novell.com/show_bug.cgi?id=745965 https://bugzilla.novell.com/show_bug.cgi?id=745965#c0 Summary: man: UTF8 manpages garbled iff in %_mandir Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- A manual page with verbatim UTF-8 characters (in this example, U+201C and U+201D are used) is shown garbled, but only when the page is located within /usr/share/man. --- 01:26 seven:../man/man1 > locale LANG=en_US.UTF-8 LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=POSIX LC_TIME=POSIX LC_COLLATE=POSIX LC_MONETARY=POSIX LC_MESSAGES=nb_NO.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= 01:26 seven:../man/man1 > cat vd.1 TH VARNISHD 1 "2010-05-31" "1.0" "" PP Listen for client requests... name (“localhost”),... 01:26 seven:../man/man1 > man -l vd.1 VARNISHD(1) VARNISHD(1) Listen for client requests... name (âlocalhostâ ),... 1.0 2010-05-31 VARNISHD(1) 01:27 seven:../man/man1 > cp vd.1 /dev/shm 01:27 seven:../man/man1 > man -l /dev/shm/vd.1 VARNISHD(1) VARNISHD(1) Listen for client requests... name (“localhost”),... 1.0 2010-05-31 VARNISHD(1) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c1
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c2
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c3
--- Comment #3 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c6
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c7
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c8
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c9
Michal Vyskocil
This is the varnishd.1 manpage from the varnishd package (bspkg server:http/varnish, maintainer seems to be me).
varnish-2.x from openSUSE_12.1 uses .Pq Dq loclhost
while varnish-3.x (see develprj) uses verbatim UTF-8 encoded text (“localhost”)
I can no see the (“localhost”) i any manual page of varnish-3.0.2 $ grep 'localhost' varnish-3.0.2/man/* varnish-3.0.2/man/varnish-cli.7:critter phk> telnet localhost 1234 varnish-3.0.2/man/varnish-cli.7:Connected to localhost. varnish-3.0.2/man/vcl.7: "localhost"; // myself varnish-3.0.2/man/vcl.7: "localhost"; However it seems, that man behaves differently when opening local files and those installed in /usr/share/man/. I've simply copied the file into mandir and check the output of man -d $ cmp varnish-3.0.2/man/vcl.7 /usr/share/man/man7/vcl.7 ; echo $? 0 file varnish-3.0.2/man/vcl.7 /usr/share/man/man7/vcl.7 varnish-3.0.2/man/vcl.7: troff or preprocessor input, UTF-8 Unicode text /usr/share/man/man7/vcl.7: troff or preprocessor input, UTF-8 Unicode text $ man -d varnish-3.0.2/man/vcl.7 chdir varnish-3.0.2/man Starting pipeline: [input: {0, vcl.7}, output: {-1, NULL}] pre-processors `t' from default page_encoding = UTF-8 source_encoding = ISO-8859-1 cat_charset = UTF-8 locale_charset = UTF-8 roff_device (locale) = utf8 roff_encoding = ISO-8859-1 output_encoding = UTF-8 less_charset = utf-8 format: 1, save_cat: 0, found: 1 Setting LESS to -ix8RmPm Manual page vcl\.7 ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%..$PM Manual page vcl\.7 ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%..$-M -I -R Setting MAN_PN to vcl\.7 ++priv_drop_count = 2 Starting pipeline: /usr/bin/zsoelim | preconv -e UTF-8 | tbl | nroff -mandoc -Tutf8 [input: {-1, NULL}, output: {-1, NULL}] $ man -d vcl Starting pipeline: [input: {0, /usr/share/man/man7/vcl.7}, output: {-1, NULL}] pre-processors `t' from default page_encoding = ISO-8859-1 source_encoding = ISO-8859-1 cat_charset = ANSI_X3.4-1968 locale_charset = UTF-8 roff_device (locale) = utf8 roff_encoding = ISO-8859-1 output_encoding = UTF-8 less_charset = utf-8 format: 1, save_cat: 0, found: 1 Setting LESS to -ix8RmPm Manual page vcl(7) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%..$PM Manual page vcl(7) ?ltline %lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%..$-M -I -R Setting MAN_PN to vcl(7) ++priv_drop_count = 1 Starting pipeline: /usr/bin/zsoelim | /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t ISO-8859-1//IGNORE | preconv -e ISO-8859-1 | tbl | nroff -mandoc -Tutf8 [input: {-1, NULL}, output: {-1, NULL}] So this is not an error in groff. Encoding gets garbled by manconv, thus in man $ cat /usr/share/man/man7/vcl.7 | /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t ISO-8859-1//IGNORE > f1 $ cat /usr/share/man/man7/vcl.7 | /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t ISO-8859-1//IGNORE | | preconv -e ISO-8859-1 > f2 $ file f1 f2 f1: troff or preprocessor input, UTF-8 Unicode text f2: troff or preprocessor input, ASCII text and ad preconv -e ISO-8859-1 expects it's called on ISO-8859-1 text. I don't know what's the //IGNORE in -t argument, but running pipe without it I cannot see any problem in the output. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=745965
https://bugzilla.novell.com/show_bug.cgi?id=745965#c11
Michal Vyskocil
Please fix your manual page.
It's not mine page ;-) Jan, as you are already a maintainer, please fix the manpages as Werner have suggested. I close this bug as INVALID. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com