[Top][All Lists]

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

Re: [groff] devutf8 on Windows

From: Eli Zaretskii
Subject: Re: [groff] devutf8 on Windows
Date: Mon, 25 Feb 2019 12:08:56 +0200
User-agent: K-9 Mail for Android

On February 25, 2019 11:47:43 AM GMT+02:00, Jeff Conrad <address@hidden> wrote:
> Eli,
> On Sunday, February 24, 2019 7:53 AM, Eli Zaretskii wrote:
> > It is a known problem with the Windows console: you cannot reliably
> > write UTF-8 encoded text to it using the ANSI/Posix emulation
> > functions like 'write', 'printf', and their C++ equivalents, and
> > expect the correct display, even if you set the codepage to 65001.
> > You need to use Unicode (a.k.a. "wide") APIs instead, like
> WriteFileW
> > etc., and you need to feed them text converted into UTF-16.
> > 
> > This is not a Groff problem, the problem is with the Windows console
> > device.
> In all the excitement, I somehow missed the obvious question: do you
> get
> similar results if you send grotty output directly to the console,
> either with cmd or a *nix-type shell?
> Regards,
> Jeff

What exactly do you mean by "directly to the console"?

reply via email to

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