STINNER Victor <victor.stin...@haypocalc.com> added the comment:

It is a compiler bug in GCC 4.2.1 with -O3. Try to compile attached unicode.c 
program with gcc -O3. The correct result is:

$ gcc -O3 unicode.c -o unicode && ./unicode
is ascii? 0
is compact? 1
is compact ascii? 0
_PyUnicode_COMPACT_DATA: 88 vs 88
PyUnicode_DATA: 88 vs 88
explicit cast: 88 vs 88

With gcc 4.2.1 and -O3, you get "is compact ascii? 1".

----------
nosy: +haypo
Added file: http://bugs.python.org/file23490/unicode.c

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13241>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to