[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] devutf8 on Windows

From: Jeff Conrad
Subject: Re: [groff] devutf8 on Windows
Date: Tue, 26 Feb 2019 02:31:19 +0000

On Monday, February 25, 2019 7:51 AM, Ralph Corderoy wrote:

Hi Ralph,

> > Would it then make sense to include a devcp1252
> I don't have any valid input to that, but to wonder if there's an
> recode(1) or iconv(1) available to you for translating to CP 1252 or
> transliterating to UCS-2BE with the idea that the latter especially
> works for all Windows versions?

The MKS version of iconv(1) doesn’t support UTF-8; the GnuWin version at does.
I get

printf '%s\n' '.pl 1' '\(oqquote\(cq minus: -\(mi /f/: /\(f/' |
    groff -Tutf8 |
    iconv -f utf-8 -t ucs-2le | hd
0000000000      2018    0071    0075    006F    0074    0065    2019    0020
0000000010      006D    0069    006E    0075    0073    003A    0020    2010
0000000020      2212    0020    002F    0066    002F    003A    0020    002F
0000000030      2044    000D    000A

The codes look right, but I can’t seem to find a way to set UCS-2 (code
page 1200) on my system, so the output to the console isn’t rendered

Anyway, this seems pretty complicated compared with just using a cp1252
device, even if it’s theoretically more universal.  The best thing about
devcp1252 is that it’s already done ...

You’d think this sort of nonsense would have been fixed long ago.  You
would be wrong ...

Thanks for the ideas.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]