Commit 29dacf2
committed
Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and
PyUnicode_EncodeCodePage() now raise an exception if the object is not an
Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on
platforms other than Windows. Patch written by Campbell Barton.1 parent a8efc96 commit 29dacf2
3 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
7431 | 7431 | | |
7432 | 7432 | | |
7433 | 7433 | | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
7434 | 7439 | | |
7435 | 7440 | | |
7436 | 7441 | | |
| |||
7504 | 7509 | | |
7505 | 7510 | | |
7506 | 7511 | | |
7507 | | - | |
7508 | | - | |
7509 | | - | |
7510 | | - | |
7511 | 7512 | | |
7512 | 7513 | | |
7513 | 7514 | | |
| |||
0 commit comments