Author tarek
Recipients Thorney, loewis, tarek
Date 2009-01-18.00:45:36
SpamBayes Score 6.47409e-06
Marked as misclassified No
Message-id <1232239538.3.0.997814915287.issue4508@psf.upfronthosting.co.za>
In-reply-to
Content
I couldn't reproduce the problem yet, using your sample.

I tried to compile on Mac OSX (Python 2.5 GCC) and Windows XP (Python
2.5 , MinGW 5.1.4 and SWIG 1.2.3) and it worked well.

The output was right, (the .o file has a space, but the pyd/so files
come out properly), and I could use the gcd() function without any problem.

The call to the compiler quotes the c file correctly:

    ...
    c:\Program Files\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-Ic:\Python25\include -Ic:\Python25\PC -c "ex ample.c" -o
"build\temp.win32-2.5\Release\ex ample.o"
    ...

This is done automatically with distutils.spawn._nt_quote_args under
Windows for instance. And this is basically what your patch is doing.

When does it crash exactly for you ? Do you have a traceback ?
History
Date User Action Args
2009-01-18 00:45:39tareksetrecipients: + tarek, loewis, Thorney
2009-01-18 00:45:38tareksetmessageid: <1232239538.3.0.997814915287.issue4508@psf.upfronthosting.co.za>
2009-01-18 00:45:37tareklinkissue4508 messages
2009-01-18 00:45:36tarekcreate