break unichr instead of fix ord?

Jan Kaliszewski zuo at chopin.edu.pl
Tue Aug 25 21:02:11 EDT 2009


25-08-2009 o 21:45:49 <rurpy at yahoo.com> 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.
[snip]
> On Python 2.6, unichr() was "fixed" (using the word
> loosely) so that it too now fails with characters outside
> the BMP.
[snip]
> 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

*j

-- 
Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>



More information about the Python-list mailing list