[Python-checkins] python/dist/src/Python compile.c,2.250,2.251
M.-A. Lemburg
mal@lemburg.com
Wed, 07 Aug 2002 15:50:33 +0200
loewis@users.sourceforge.net wrote:
> Update of /cvsroot/python/python/dist/src/Python
> In directory usw-pr-cvs1:/tmp/cvs-serv1896/Python
>
> Modified Files:
> compile.c
> Log Message:
> Fix PEP 263 code --without-unicode. Fixes #591943.
>
>
> Index: compile.c
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
> retrieving revision 2.250
> retrieving revision 2.251
> diff -C2 -d -r2.250 -r2.251
> *** compile.c 4 Aug 2002 17:29:52 -0000 2.250
> --- compile.c 7 Aug 2002 12:33:18 -0000 2.251
> ***************
> *** 1186,1189 ****
> --- 1186,1192 ----
> decode_utf8(char **sPtr, char *end, char* encoding)
> {
> + #ifndef Py_USING_UNICODE
> + abort();
> + #else
Shouldn't this be a call to Py_FatalError() with a proper
error message ?
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/