commit | d8840860df164191ae5ab81d37435517f0d0a31b | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Mon Jul 13 20:48:07 2009 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Mon Jul 13 20:48:07 2009 +0000 |
tree | fbf2b8884d359839be0e9f02aaa8e026b6765167 | |
parent | 8b84ea0aa4ee79d86367d0bce017da368a62338a [diff] [blame] |
Oops, really pass a bytes string to the ctypes function.
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 @@ 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'