Commit 51940f7
Re-encode carefully after any unencodable code point
Apple's iconv converts several code points at once and, when one of them
is unencodable, restores the shift state of the whole batch, while the
output written for the preceding code points keeps it. Re-running the
conversion one code point at a time keeps the descriptor in sync with
the output, so the shift state can be reset before the replacement.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 3a0fa7f commit 51940f7
1 file changed
Lines changed: 24 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8526 | 8526 | | |
8527 | 8527 | | |
8528 | 8528 | | |
8529 | | - | |
8530 | | - | |
| 8529 | + | |
8531 | 8530 | | |
8532 | | - | |
8533 | | - | |
8534 | | - | |
8535 | | - | |
8536 | | - | |
8537 | | - | |
8538 | | - | |
8539 | | - | |
8540 | | - | |
8541 | | - | |
8542 | | - | |
8543 | | - | |
| 8531 | + | |
| 8532 | + | |
| 8533 | + | |
| 8534 | + | |
| 8535 | + | |
| 8536 | + | |
8544 | 8537 | | |
8545 | | - | |
8546 | | - | |
8547 | | - | |
8548 | 8538 | | |
8549 | 8539 | | |
8550 | 8540 | | |
| |||
8566 | 8556 | | |
8567 | 8557 | | |
8568 | 8558 | | |
| 8559 | + | |
| 8560 | + | |
| 8561 | + | |
| 8562 | + | |
| 8563 | + | |
| 8564 | + | |
| 8565 | + | |
| 8566 | + | |
| 8567 | + | |
| 8568 | + | |
| 8569 | + | |
| 8570 | + | |
| 8571 | + | |
| 8572 | + | |
| 8573 | + | |
| 8574 | + | |
| 8575 | + | |
8569 | 8576 | | |
8570 | 8577 | | |
8571 | 8578 | | |
| |||
0 commit comments