man and UTF-8 locales

Anonymous swell.k at gmail.com
Mon Aug 24 16:59:53 UTC 2009


Boris Samorodov <bsam at ipt.ru> writes:

> Hi!
>
> Manual pages are still broken for UTF-8 locale. Here is a part
> of bzip2(1):
> ftp://ftp.ipt.ru/pub/images/man_bzip2.gif

 `-' (0x2D, HYPHEN-MINUS) renders as `‐' (U+2010, HYPHEN).

See r192561 and this *workaround*

%%%
Index: contrib/groff/font/devutf8/R.proto
===================================================================
--- contrib/groff/font/devutf8/R.proto	(revision 196511)
+++ contrib/groff/font/devutf8/R.proto	(working copy)
@@ -667,7 +667,7 @@
 u050D	24	0	0x050D
 u050E	24	0	0x050E
 u050F	24	0	0x050F
--	24	0	0x2010
+-	24	0	0x002D
 hy	"
 en	24	0	0x2013
 em	24	0	0x2014
%%%

Or better fix man page so it uses \- for command-line options.

>
> The system:
> -----
> % uname -srm
> FreeBSD 8.0-BETA3 i386
> % locale
> LANG=ru_RU.UTF-8
> LC_CTYPE="ru_RU.UTF-8"
> LC_COLLATE="ru_RU.UTF-8"
> LC_TIME="ru_RU.UTF-8"
> LC_NUMERIC="ru_RU.UTF-8"
> LC_MONETARY="ru_RU.UTF-8"
> LC_MESSAGES="ru_RU.UTF-8"
> LC_ALL=
> -----
>
> Are there any plans to fix it? Thanks!


More information about the freebsd-current mailing list