Re: man and UTF-8 locales

From: Gleb Kozyrev <gkozyrev_at_gmail.com>
Date: Wed, 26 Aug 2009 16:36:34 +0300
On Wed, Aug 26, 2009 at 2:22 AM, Rick C.
Petty<rick-freebsd2008_at_kiwi-computer.com> wrote:
> On Wed, Aug 26, 2009 at 02:06:33AM +0400, Boris Samorodov wrote:
>> On Tue, 25 Aug 2009 16:07:19 -0500 Rick C. Petty wrote:
>> > On Tue, Aug 25, 2009 at 03:03:41PM +0400, Boris Samorodov wrote:
>> > > On Mon, 24 Aug 2009 20:59:12 +0400 Anonymous wrote:
>> > > > Boris Samorodov <bsam_at_ipt.ru> writes:
>> > >
>> > > > > 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
>>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^       [1]
>>
>> > It was already fixed on 2009-05-21 and MFC'd to 7-stable.
>>
>> This screen [1] was taken from 8-BETA3.
[...]
> % grep -C 3 sum contrib/groff/font/devutf8/R.proto
> st      24      0       0x220B
> product 24      0       0x220F
> coproduct       24      0       0x2210
> sum     24      0       0x2211
> \-      24      0       0x002D
> mi      "
> -+      24      0       0x2213

Do all system manpages need converting to '\-'? It would take a lot of work.
The bzip2 one still has many plain '-'-s.

>.B \-L --license -V --version
>Display the software version, license terms and conditions.

Looking at manpages from ports...
smartctl(8) has all dashes replaced with '\-'.

>\fBsmartctl\fP controls the Self\-Monitoring, Analysis and Reporting
>Technology (SMART) system built into many ATA\-3 and later ATA, IDE and
>SCSI\-3 hard drives.

What's the point of manually replacing one character with another everywhere?

perl(1) has only some dashes replaced but plain '-'-s still aren't mangled
somehow, so this actually looks fine:

>.IP "\(bu" 4
>roll-your-own magic variables (including multiple simultaneous \s-1DBM\s0
>implementations)

Can anyone comment on this?

>From contrib/groff/font/devutf8/R.proto:
>-       24      0       0x2010

Please note that Windows fonts seem to lack the 0x2010 character so this issue
may raise many questions in the future.

-- 
With best regards, Gleb Kozyrev.
Received on Wed Aug 26 2009 - 11:58:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:54 UTC