]> granicus.if.org Git - python/commit
#4747: on Windows, starting a module with a non-ascii filename would print a useless...
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 1 Jan 2009 23:05:36 +0000 (23:05 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 1 Jan 2009 23:05:36 +0000 (23:05 +0000)
commit374e220bcb1ee71053c18c0b4e409cfa69881722
tree309b2a2e6616578448100fc086551ce418bb4bb1
parent8ed9a8069dbef331d6097dcd2895f7cbf012897e
#4747: on Windows, starting a module with a non-ascii filename would print a useless "SyntaxError: None"
when the script contains a "# coding:" declaration.

The Python API expects char* to be utf-8 encoded. wcstombs should be avoided here.

Reviewed by Benjamin. Will backport to 3.0
Misc/NEWS
Modules/main.c