guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH python-tests] gnu: python-2.7: Enable UCS-4 Unicode encoding.


From: Ludovic Courtès
Subject: Re: [PATCH python-tests] gnu: python-2.7: Enable UCS-4 Unicode encoding.
Date: Tue, 24 Jan 2017 22:08:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Danny,

Danny Milosavljevic <address@hidden> skribis:

>> > Otherwise LGTM. I checked some other distros and they seem to have
>> > this enabled. Thanks!
>>  That means that strings are internally UCS-4-encoded, right?
>> What’s the rationale, and what happens when this flag is omitted?
>
> The CPython C interface changes depending on the flag and some Python
> extensions don't work with the narrow UTF-16 Unicode - which is what
> it would use if you don't specify.
>
> The default, UTF-16, is basically just historical baggage from when
> Unicode had fewer than 65536 codepoints in the standard.

[...]

Thanks for the explanation, it makes a lot of sense!

Ludo’.



reply via email to

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