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 Dan.O'Donovan
Recipients Dan.O'Donovan, docs@python
Date 2014-07-02.10:50:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404298232.12.0.75770869801.issue21903@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, this fail is happening because we're using python3 unicode strings to call the ANSI MessageBoxA function. A possible fix;

Encode strings before passing the MessageBoxA (ctypes.txt.diff attached)

Alternatively, calls could be made to the unicode MessageBoxW function, but someone who knows about ctypes / Win32 magic numbers would have to look at that.

(Inspiration take from this stack overflow question http://stackoverflow.com/questions/18164994/the-ctypes-wraps-messageboxa-example-didnt-work-in-python33)
History
Date User Action Args
2014-07-02 10:50:32Dan.O'Donovansetrecipients: + Dan.O'Donovan, docs@python
2014-07-02 10:50:32Dan.O'Donovansetmessageid: <1404298232.12.0.75770869801.issue21903@psf.upfronthosting.co.za>
2014-07-02 10:50:32Dan.O'Donovanlinkissue21903 messages
2014-07-02 10:50:31Dan.O'Donovancreate