diff options
| author | Ben Winston | 2024-06-08 17:20:24 -0400 |
|---|---|---|
| committer | Ben Winston | 2024-06-08 17:20:24 -0400 |
| commit | f07a38f116f9c8337955309b2d6065f145a1e9ac (patch) | |
| tree | 42cd52aca74176972ec42bea4703b1831ccbec84 /booki.c | |
| parent | 1a7ee1a66cb0878189ee3f2b31d3ef4a48bfd63a (diff) | |
bugfix: diacritics can sometimes be combining??
Diffstat (limited to 'booki.c')
| -rw-r--r-- | booki.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -256,6 +256,13 @@ bool comparable(const char* pattern, const char* candidate, int len) { return false; } } + // combining diacritics + else if (c >= 0xCC && c <= 0xCD) { + // these exist afterwards, so skip this one and the following + candidate += 2; + c = *candidate; + continue; + } else { // don't know how to compare these return false; |
