[Python-bugs-list] [ python-Bugs-591943 ] --without-unicode hosed

noreply@sourceforge.net noreply@sourceforge.net
Wed, 07 Aug 2002 05:35:01 -0700


Bugs item #591943, was opened at 2002-08-07 10:49
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591943&group_id=5470

Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 6
Submitted By: Michael Hudson (mwh)
Assigned to: Martin v. Löwis (loewis)
Summary: --without-unicode hosed

Initial Comment:
I would imagine this is the PEP 263 work:

$ make
gcc  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.3.a -lrt -ldl  -lpthread -lutil   -lm  
libpython2.3.a(posixmodule.o): In function `posix_tmpnam':
/home/mwh/src/python/dist/src/build-nou-debug/../Modules/posixmodule.c:5224: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.3.a(posixmodule.o): In function `posix_tempnam':
/home/mwh/src/python/dist/src/build-nou-debug/../Modules/posixmodule.c:5174: the use of `tempnam' is dangerous, better use `mkstemp'
libpython2.3.a(tokenizer.o): In function `fp_readl':
/home/mwh/src/python/dist/src/build-nou-debug/../Parser/tokenizer.c:329: undefined reference to `PyUnicode_AsUTF8String'
libpython2.3.a(tokenizer.o): In function `translate_into_utf8':
/home/mwh/src/python/dist/src/build-nou-debug/../Parser/tokenizer.c:493: undefined reference to `PyUnicode_Decode'
/home/mwh/src/python/dist/src/build-nou-debug/../Parser/tokenizer.c:496: undefined reference to `PyUnicode_AsUTF8String'
libpython2.3.a(compile.o): In function `decode_utf8':
/home/mwh/src/python/dist/src/build-nou-debug/../Python/compile.c:1194: undefined reference to `PyUnicode_DecodeUTF8'
/home/mwh/src/python/dist/src/build-nou-debug/../Python/compile.c:1197: undefined reference to `PyUnicode_AsEncodedString'
libpython2.3.a(compile.o): In function `parsestr':
/home/mwh/src/python/dist/src/build-nou-debug/../Python/compile.c:1315: undefined reference to `PyUnicode_DecodeUTF8'
/home/mwh/src/python/dist/src/build-nou-debug/../Python/compile.c:1318: undefined reference to `PyUnicode_AsEncodedString'
collect2: ld returned 1 exit status
make: *** [python] Error 1

If it's not, assign back to me and I'll dig.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-08-07 14:35

Message:
Logged In: YES 
user_id=21627

Fixed in tokenizer.c 2.62 and compile.c 2.251.

An open issue is what to do with Unicode literals that have
non-ASCII in a --without-unicode build. Currently, they are
silently converted to byte strings with the same bytes that
they had in the source code.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=591943&group_id=5470