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.

classification
Title: Python configured with --disable-unicode fails tests, more
Type: Stage:
Components: Installation Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: christian.heimes, fdrake, georg.brandl, georg.brandl, gvanrossum
Priority: normal Keywords:

Created on 2004-03-19 16:23 by fdrake, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg20274 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-03-19 16:23
When building Python with:

    ./configure --disable-unicode

the test suite has many spurious failures because
modules and tests assume that unicode support is available.

Installing this Python (using "make install") fails at
the end of the first run of compileall.py, since that
script detects and reports failures; the output
contains many lines with the message

    Sorry: ValueError: ('Unicode escapes not legal when
Unicode disabled',)

This should be fixed, or --disable-unicode should be
removed.
msg20275 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2005-02-11 17:23
Logged In: YES 
user_id=3066

The trunk and release24-maint branch will no longer compile
with --diable-unicode.  I get the following error message
from the trunk:

c++ -pthread  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.5.a -lpthread -ldl  -lutil   -lm
libpython2.5.a(posixmodule.o)(.text+0x39a0): In function
`posix_tmpnam':
../Modules/posixmodule.c:6161: warning: the use of
`tmpnam_r' is dangerous, better use `mkstemp'
libpython2.5.a(posixmodule.o)(.text+0x3906): In function
`posix_tempnam':
../Modules/posixmodule.c:6116: warning: the use of `tempnam'
is dangerous, better use `mkstemp'
libpython2.5.a(_codecsmodule.o)(.text+0xf9): In function
`codec_encode':
../Modules/_codecsmodule.c:108: undefined reference to
`PyUnicode_GetDefaultEncoding'
libpython2.5.a(_codecsmodule.o)(.text+0x165): In function
`codec_decode':
../Modules/_codecsmodule.c:141: undefined reference to
`PyUnicode_GetDefaultEncoding'
collect2: ld returned 1 exit status

The release24-maint branch gives similar results.
msg20276 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-10-01 17:06
Logged In: YES 
user_id=1188172

Okay, both branches compile again. The test failures remain,
though.
msg59317 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-05 19:43
The --disable-unicode option and related code should be removed from 3.0
and probably from 2.6, too.
msg59471 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-07 18:17
I renamed --enable-unicode to --with-wide-unicode in r59829; this should
handle the Py3k case.

I added suitable Py_USING_UNICODE directives in r59830 so that the trunk
compiles again without unicode.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40054
2008-01-07 18:17:09georg.brandlsetstatus: open -> closed
assignee: gvanrossum
resolution: fixed
messages: + msg59471
nosy: + gvanrossum, georg.brandl
2008-01-05 19:43:17christian.heimessetnosy: + christian.heimes
messages: + msg59317
versions: + Python 2.6, Python 3.0
2004-03-19 16:23:15fdrakecreate