summaryrefslogtreecommitdiffstats
path: root/Tools/unicode
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-13 20:48:07 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-07-13 20:48:07 (GMT)
commitd8840860df164191ae5ab81d37435517f0d0a31b (patch)
treefbf2b8884d359839be0e9f02aaa8e026b6765167 /Tools/unicode
parent8b84ea0aa4ee79d86367d0bce017da368a62338a (diff)
downloadcpython-d8840860df164191ae5ab81d37435517f0d0a31b.zip
cpython-d8840860df164191ae5ab81d37435517f0d0a31b.tar.gz
cpython-d8840860df164191ae5ab81d37435517f0d0a31b.tar.bz2
Oops, really pass a bytes string to the ctypes function.
Diffstat (limited to 'Tools/unicode')
-rw-r--r--Tools/unicode/genwincodec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/unicode/genwincodec.py b/Tools/unicode/genwincodec.py
index 17ba809..9134622 100644
--- a/Tools/unicode/genwincodec.py
+++ b/Tools/unicode/genwincodec.py
@@ -24,7 +24,7 @@ def genwinmap(codepage):
buf = ctypes.create_unicode_buffer(2)
ret = MultiByteToWideChar(
codepage, 0,
- chr(i), 1,
+ bytes([i]), 1,
buf, 2)
assert ret == 1, "invalid code page"
assert buf[1] == '\x00'