Skip to content

Commit 1e74c34

Browse files
committed
Fix is_combining_mark table data
* In `scripts/unicode.py`, the data used to generate `is_combining_mark()` was being passed to the emit function incorrectly, resulting in the table containing some other data instead. The script is fixed and new `tables.rs` is generated. * Add test for `is_combining_mark()` for ASCII chars, as well as a couple of random chars based on the reported issue. Fix #16
1 parent 3898e77 commit 1e74c34

File tree

3 files changed

+212
-270
lines changed

3 files changed

+212
-270
lines changed

scripts/unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def comp_vfun(char):
350350
351351
""")
352352

353-
emit_table(f, "general_category_mark", combine, "&'static [(char, char)]", is_pub=False,
353+
emit_table(f, "general_category_mark", general_category_mark, "&'static [(char, char)]", is_pub=False,
354354
pfun=lambda x: "(%s,%s)" % (escape_char(x[0]), escape_char(x[1])))
355355

356356
f.write("""

0 commit comments

Comments
 (0)