From b225593d6baf3455e1ac951efc0df5015fdf7c69 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Tue, 11 Dec 2018 13:19:17 -0500 Subject: [PATCH] Correct REPLACEMENT CHARACTER's code point to FFFD (#1471) --- test/shaping/hb_test_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py index c9a4403..feff70a 100644 --- a/test/shaping/hb_test_tools.py +++ b/test/shaping/hb_test_tools.py @@ -60,10 +60,10 @@ try: yield 0x10000 + (high_surrogate - 0xD800) * 0x400 + (cp - 0xDC00) high_surrogate = None else: - yield 0xFFFC + yield 0xFFFD else: if high_surrogate: - yield 0xFFFC + yield 0xFFFD high_surrogate = None if 0xD800 <= cp <= 0xDBFF: high_surrogate = cp @@ -71,7 +71,7 @@ try: yield cp high_surrogate = None if high_surrogate: - yield 0xFFFC + yield 0xFFFD except NameError: unichr = chr -- 2.7.4