texinfo-devel
[Top][All Lists]
Advanced

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

Re: Using Perl's cc


From: Eli Zaretskii
Subject: Re: Using Perl's cc
Date: Sat, 11 Jul 2015 16:51:43 +0300

> Date: Sat, 11 Jul 2015 14:38:45 +0100
> From: Gavin Smith <address@hidden>
> Cc: address@hidden
> 
> On 11 July 2015 at 14:14, Eli Zaretskii <address@hidden> wrote:
> > There's one other issue with the MS-Windows support: it's wchar_t is a
> > UTF-16 encoding of Unicode codepoints.  So characters outside of the
> > BMP yield 2 wchar_t values, not 1.  The code in xspara.c assumes
> > wchar_t is a scalar type that is wide enough to support any Unicode
> > codepoint, which is false for Windows.
> >
> > To resolve this, we could use a data type other than wchar_t, and
> > convert the UTF-16 encoding into a Unicode codepoint with a trivial
> > function.  Is it OK to make that change?
> 
> I believe wint_t is guaranteed to be at least 32 bits wide.

That's not my reading of Posix, and in any case on Windows wint_t is
16-bit wide.



reply via email to

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