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 Jeffrey.Armstrong
Recipients Jeffrey.Armstrong, serhiy.storchaka, vstinner
Date 2014-02-13.02:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392258810.47.0.5634307567.issue20596@psf.upfronthosting.co.za>
In-reply-to
Content
I've included a revised patch that is far simpler than the others I've proposed.  In this example, the preprocess checks for MSVC or Borland/Embarcadero and, if found, uses three-argument wcstok_s().  If neither is detected, it checks for MinGW and, if found, defaults to old two-argument wcstok().  Otherwise, it defaults to three-argument wcstok().

The default in this case effectively encompasses all other OSes where POSIX-like wcstok() is available.  Additionally, it also allows this default for Open Watcom on Windows or any other theoretically possible compilers on Windows that may provide this more common wcstok() syntax.
History
Date User Action Args
2014-02-13 02:33:30Jeffrey.Armstrongsetrecipients: + Jeffrey.Armstrong, vstinner, serhiy.storchaka
2014-02-13 02:33:30Jeffrey.Armstrongsetmessageid: <1392258810.47.0.5634307567.issue20596@psf.upfronthosting.co.za>
2014-02-13 02:33:30Jeffrey.Armstronglinkissue20596 messages
2014-02-13 02:33:29Jeffrey.Armstrongcreate