summaryrefslogtreecommitdiffstats
path: root/Tools/unicode/comparecodecs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/unicode/comparecodecs.py')
-rw-r--r--Tools/unicode/comparecodecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/unicode/comparecodecs.py b/Tools/unicode/comparecodecs.py
index 0f5c1e2..7de14fd 100644
--- a/Tools/unicode/comparecodecs.py
+++ b/Tools/unicode/comparecodecs.py
@@ -14,7 +14,7 @@ def compare_codecs(encoding1, encoding2):
print('Comparing encoding/decoding of %r and %r' % (encoding1, encoding2))
mismatch = 0
# Check encoding
- for i in range(sys.maxunicode):
+ for i in range(sys.maxunicode+1):
u = chr(i)
try:
c1 = u.encode(encoding1)