summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-08 22:12:45 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-08 22:12:45 +0000
commit9cf5be7cb4a473c73ca651db5ebee9dda4cad25a (patch)
tree75cad0cb44b34ccf873427044fb39ae51b06fe0a /Python/pythonrun.c
parentf445cdca00f3dec33ebcf41f25a59afa113470f3 (diff)
downloadcpython-9cf5be7cb4a473c73ca651db5ebee9dda4cad25a.tar.gz
Issue #9425: fix setup_context() for non-ascii filenames
setup_context() replaces .pyc or .pyo filename suffix by .py, but it didn't work if the filename contains a non-ascii character because the function used the wrong unit for the length (number of characters instead of the number of bytes). With this patch, it uses unicode filenames instead of bytes filenames, to fix the bug and to be fully unicode compliant.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions