summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-01-03 23:42:13 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-01-03 23:42:13 +0000
commita67e97a5ba91576e72323d7fb40b952936e17cbe (patch)
treec714e910947ef83b91c8e2924070b51f02a0288a /Python/pythonrun.c
parent41fc7d8caba67e7847ab3a2739a91a67f3a26046 (diff)
downloadcpython-a67e97a5ba91576e72323d7fb40b952936e17cbe.tar.gz
On Windows, when import fails to load a dll module, the message says
"error code 193" instead of a more informative text. It turns out that FormatMessage needs additional parameters for some error codes. For example: 193 means "%1 is not a valid Win32 application". Since it is impossible to know which parameter to pass, we use FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better than the number. Also use the Unicode version of the API, to deal with accented letters.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions