Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Aug 2009 20:59:12 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: man and UTF-8 locales
Message-ID:  <86ab1pf8rj.fsf@gmail.com>
In-Reply-To: <01895862@bb.ipt.ru> (Boris Samorodov's message of "Mon, 24 Aug 2009 19:30:01 %2B0400")
References:  <01895862@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Boris Samorodov <bsam@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 `=E2=80=90' (U+2010, HYPHEN).

See r192561 and this *workaround*

%%%
Index: contrib/groff/font/devutf8/R.proto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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=3Dru_RU.UTF-8
> LC_CTYPE=3D"ru_RU.UTF-8"
> LC_COLLATE=3D"ru_RU.UTF-8"
> LC_TIME=3D"ru_RU.UTF-8"
> LC_NUMERIC=3D"ru_RU.UTF-8"
> LC_MONETARY=3D"ru_RU.UTF-8"
> LC_MESSAGES=3D"ru_RU.UTF-8"
> LC_ALL=3D
> -----
>
> Are there any plans to fix it? Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ab1pf8rj.fsf>