Message146122
| Author |
vstinner |
| Recipients |
Oleg.Plakhotnyuk, vstinner |
| Date |
2011年10月21日.19:53:18 |
| SpamBayes Score |
2.07044e-06 |
| Marked as misclassified |
No |
| Message-id |
<1319226800.14.0.264732238507.issue13241@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月21日 19:53:20 | vstinner | set | recipients:
+ vstinner, Oleg.Plakhotnyuk |
| 2011年10月21日 19:53:20 | vstinner | set | messageid: <1319226800.14.0.264732238507.issue13241@psf.upfronthosting.co.za> |
| 2011年10月21日 19:53:19 | vstinner | link | issue13241 messages |
| 2011年10月21日 19:53:19 | vstinner | create |
|