Compile Python 3 interpreter to force 2-byte unicode
Ned Batchelder
ned at nedbatchelder.com
Sat Nov 25 20:21:22 EST 2017
On 11/25/17 5:05 PM, 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 say you want Python 3, but you also say you have maxunicode == 65535
on Windows. That must be Python 2. Python 3 always has maxunicode ==
1114111.
Can you say more about what you need to do?
--Ned.
More information about the Python-list
mailing list