summaryrefslogtreecommitdiff
path: root/Python/getcompiler.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
commitd6179e120d3ed98ec28cb5e4b6feabed2d670235 (patch)
tree6585b427604d6aaeed44093618daaf99f512862c /Python/getcompiler.c
parent819b8bf403f19017f9e7ea11cd83699b517f3394 (diff)
downloadcpython-git-d6179e120d3ed98ec28cb5e4b6feabed2d670235.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/getcompiler.c')
0 files changed, 0 insertions, 0 deletions