This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author songma
Recipients songma
Date 2008-01-23.09:23:43
SpamBayes Score 0.07233934
Marked as misclassified No
Message-id <1201080225.38.0.120364938513.issue1915@psf.upfronthosting.co.za>
In-reply-to
Content
In my platform I have to disable Unicode support in Python 2.5.1. The
"configure" file provided a option "--enable-unicode=no" to allow me to
do so. However, If I ran the configure with that option and then make,
the following error showed:
Python/ast.c:3168: undefined reference to `PyUnicode_DecodeRawUnicodeEscape'
Python/ast.c:3170: undefined reference to `PyUnicode_DecodeUnicodeEscape'
collect2: ld returned 1 exit status
make: *** [python] Error 1

Python 2.4.4 can be compiled with this option and works well. Since
"ast.c" was newly introduced in 2.5.1. Maybe we need put MACRO
"Py_USING_UNICODE" in ast.c for function "decode_unicode()". Otherwise
it needs to modify the "configure" file to forbid "--enable-unicode=no".

However in ast.c "decode_utf8()" is using "Py_USING_UNICODE" to make it
"pluggable" for not supporting utf8. Why not do the same thing for
"decode_unicode()"?
History
Date User Action Args
2008-01-23 09:23:45songmasetspambayes_score: 0.0723393 -> 0.07233934
recipients: + songma
2008-01-23 09:23:45songmasetspambayes_score: 0.0723393 -> 0.0723393
messageid: <1201080225.38.0.120364938513.issue1915@psf.upfronthosting.co.za>
2008-01-23 09:23:44songmalinkissue1915 messages
2008-01-23 09:23:43songmacreate