Commit d04d847
committed
Issue #28774: Fix start/end pos in unicode_encode_ucs1().
Fix error position of the unicode error in ASCII and Latin1
encoders when a string returned by the error handler contains multiple
non-encodable characters (non-ASCII for the ASCII codec, characters out
of the U+0000-U+00FF range for Latin1).1 parent 726a57d commit d04d847
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6798 | 6798 | | |
6799 | 6799 | | |
6800 | 6800 | | |
6801 | | - | |
| 6801 | + | |
6802 | 6802 | | |
6803 | 6803 | | |
6804 | 6804 | | |
| |||
6835 | 6835 | | |
6836 | 6836 | | |
6837 | 6837 | | |
6838 | | - | |
| 6838 | + | |
6839 | 6839 | | |
6840 | 6840 | | |
6841 | 6841 | | |
| |||
0 commit comments