Lisandro Dalcin, 12.08.2010 20:08:
> I've mailed Stefan about this some time ago.
>
> I can reproduce this problem with
>
> - system Python 2.6.2 from Fedora 12 in Linux 32 bits
> - system Python 2.6.2 from Fedora 12 in Linux 64 bits
> - system Python 2.6.4 from Fedora 13 in Linux 32 bits
>
> but not with:
>
> - system Python 3.1.2 from Fedora 13 in Linux 32 bits
>
> In all cases, these system Pythons are wide unicode builds.
> ----------------------------------------------------------------------
> File "/u/dalcinl/Devel/Cython/cython-devel/BUILD/run/c/unicodeliterals.so",
> line 408, in unicodeliterals
> Failed example:
> if wide_literal == expected: print(True)
> else: print(repr(wide_literal), repr(expected), sys.maxunicode)
> Expected:
> True
> Got:
> ("u'\\U00101234'", "u'\\udbc4\\ude34'", 1114111)
I can actually reproduce this with Python 2.6.4 on my system but not with
Python 2.6.5. Both are wide unicode builds. So it looks like something has
changed between those two versions.
Given that the test already special cases releases before 2.6, I think the
easiest thing to do is to simply move on to 2.6.5 and not run the test in
versions older than that. Wide literals are already known to work at this
point, as the "wide_literal" value shows.
http://hg.cython.org/cython-devel/rev/0faea530ce40
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev