Repository navigation
Commit 609ae12
committed
fix(patch): normalize Unicode NFC/NFD differences in apply_patch
When a file contains NFD Unicode (e.g., mac-generated text with combining
accents) and the patch uses NFC precomposed characters (or vice versa),
the existing seek passes (exact, rstrip, trim, normalizeUnicode) all fail
to match.
Add a 5th NFC normalization pass that canonicalizes both sides before
comparison, so r\u0065\u0301sum\u0065\u0301 (NFD) matches r\u00E9sum\u00E9 (NFC).
Closes anomalyco#316511 parent 1db5c24 commit 609ae12
2 files changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
484 | 493 | | |
485 | 494 | | |
486 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
529 | 550 | | |
0 commit comments