texinfo-devel
[Top][All Lists]
Advanced

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

Re: Using Perl's cc


From: Gavin Smith
Subject: Re: Using Perl's cc
Date: Sat, 11 Jul 2015 15:16:05 +0100

On 11 July 2015 at 14:51, Eli Zaretskii <address@hidden> wrote:
>> 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.

In that case, we'd have to do something like what you suggest. So that
iswupper etc. can still be used on systems where they are available,
maybe you could do

#define wint_t int32_t

or whatever a 32-bit int is, for MS-Windows. Unless you have a different idea?



reply via email to

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