Commit d45c7f8
committed
Issue #16455: On FreeBSD and Solaris, if the locale is C, the
ASCII/surrogateescape codec is now used, instead of the locale encoding, to
decode the command line arguments. This change fixes inconsistencies with
os.fsencode() and os.fsdecode() because these operating systems announces an
ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.1 parent ca9f8b2 commit d45c7f8
File tree
5 files changed
+241
-40
lines changed- Include
- Lib/test
- Misc
- Objects
- Python
5 files changed
+241
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
| 1745 | + | |
1746 | 1746 | | |
1747 | 1747 | | |
1748 | 1748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2863 | 2863 | | |
2864 | 2864 | | |
2865 | 2865 | | |
2866 | | - | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
| |||
2908 | 2908 | | |
2909 | 2909 | | |
2910 | 2910 | | |
2911 | | - | |
| 2911 | + | |
2912 | 2912 | | |
2913 | 2913 | | |
2914 | 2914 | | |
| |||
3110 | 3110 | | |
3111 | 3111 | | |
3112 | 3112 | | |
3113 | | - | |
| 3113 | + | |
| 3114 | + | |
3114 | 3115 | | |
3115 | 3116 | | |
3116 | 3117 | | |
| |||
3148 | 3149 | | |
3149 | 3150 | | |
3150 | 3151 | | |
3151 | | - | |
| 3152 | + | |
3152 | 3153 | | |
3153 | 3154 | | |
3154 | 3155 | | |
| |||
3168 | 3169 | | |
3169 | 3170 | | |
3170 | 3171 | | |
| 3172 | + | |
3171 | 3173 | | |
3172 | 3174 | | |
3173 | 3175 | | |
| |||
3273 | 3275 | | |
3274 | 3276 | | |
3275 | 3277 | | |
3276 | | - | |
| 3278 | + | |
3277 | 3279 | | |
3278 | 3280 | | |
3279 | 3281 | | |
| |||
3413 | 3415 | | |
3414 | 3416 | | |
3415 | 3417 | | |
3416 | | - | |
3417 | | - | |
| 3418 | + | |
| 3419 | + | |
3418 | 3420 | | |
3419 | 3421 | | |
3420 | 3422 | | |
| |||
3428 | 3430 | | |
3429 | 3431 | | |
3430 | 3432 | | |
| 3433 | + | |
3431 | 3434 | | |
3432 | 3435 | | |
3433 | 3436 | | |
| |||
3447 | 3450 | | |
3448 | 3451 | | |
3449 | 3452 | | |
3450 | | - | |
3451 | 3453 | | |
3452 | 3454 | | |
3453 | 3455 | | |
| |||
0 commit comments