Message222093
| 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:32 | Dan.O'Donovan | set | recipients:
+ Dan.O'Donovan, docs@python |
| 2014年07月02日 10:50:32 | Dan.O'Donovan | set | messageid: <1404298232.12.0.75770869801.issue21903@psf.upfronthosting.co.za> |
| 2014年07月02日 10:50:32 | Dan.O'Donovan | link | issue21903 messages |
| 2014年07月02日 10:50:31 | Dan.O'Donovan | create |
|