diff options
Diffstat (limited to 'Tools/unicode/genwincodec.py')
-rw-r--r-- | Tools/unicode/genwincodec.py | 2 |
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'
|