break unichr instead of fix ord?

Jan Kaliszewski zuo at
Wed Aug 26 03:02:11 CEST 2009

25-08-2009 o 21:45:49 <rurpy at> wrote:

> In Python 2.5 on Windows I could do [*1]:
>   # Create a unicode character outside of the BMP.
>   >>> a = u'\U00010040'
>   # On Windows it is represented as a surogate pair.
> On Python 2.6, unichr() was "fixed" (using the word
> loosely) so that it too now fails with characters outside
> the BMP.
> Does not this effectively make unichr() and ord() useless
> on Windows for all but a subset of unicode characters?

Are you sure, you couldn't have UCS-4-compiled Python distro
for Windows?? :-O


Jan Kaliszewski (zuo) <zuo at>

More information about the Python-list mailing list