Compile Python 3 interpreter to force 2-byte unicode

nospam.Serhiy Storchaka storchaka at gmail.com
Sat Nov 25 15:54:00 EST 2017


26.11.17 01:59, Terry Reedy D¿D,ÑêDµ:
> On 11/25/2017 5:12 PM, Chris Angelico wrote:
>> On Sun, Nov 26, 2017 at 9:05 AM,â  <wojtek.mula at gmail.com> wrote:
>>> Hi, my goal is to obtain an interpreter that internally
>>> uses UCS-2. Such a simple code should print 65535:
>>>
>>> â â  import sys
>>> â â  print sys.maxunicode
>>>
>>> This is enabled in Windows, but I want the same in Linux.
>>> What options have I pass to the configure script?
>
> You must be trying to compile 2.7.â  There may be Linux distributions
> that compile this way.

UCS-2 is the default in 2.7. But most Linux distributions build it with
UCS-4.




More information about the Python-list mailing list