Commit 44f96df
Do not fail if iconv() cannot decode what mbstowcs() can
iconv() can be stricter than mbstowcs(), and a broken locale should not
make the conversion fail, so fall back to mbstowcs() instead of raising
UnicodeDecodeError.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 56ee379 commit 44f96df
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
544 | 547 | | |
545 | 548 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 549 | + | |
553 | 550 | | |
554 | 551 | | |
555 | 552 | | |
| |||
0 commit comments