groff
[Top][All Lists]
Advanced

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

Re: [groff] devutf8 on Windows


From: Ralph Corderoy
Subject: Re: [groff] devutf8 on Windows
Date: Sun, 24 Feb 2019 12:37:06 +0000

Hi Jeff,

I don't know Windows at all...

> I’m getting strange behavior with devutf8 on Windows.
>
> >type quot.txt
> .pl 1
> \(oqquote\(cq minus: \(mi /f/: /\(f/
>
> With the code page set to 65001 (UTF-8),

Using `chcp' or changing the registry?

> from cmd,
>
> >groff -Tutf8 quot.txt
> ‘quote’ minus: − /f/: /⁄
>
> The output looks as if it’s being interpreted as code page 1252. If
> the output is redirected, things look fine, e.g.,
>
> >groff -Tutf8 quot.txt | more.com
> ‘quote’ minus: − /f/: /⁄

https://ss64.com/nt/chcp.html suggests CMD may have trouble compared to
Powershell?

> Any ideas as to what could be happening?

What if you have a C program that writes to a `binary' stdout a UTF-8
byte sequence and run that at CMD?  That removes groff.

-- 
Cheers, Ralph.



reply via email to

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