Commit 669b34a
committed
gh-86427: Fix the stdio encoding in the legacy Windows stdio mode
It was the ANSI code page instead of the encoding of the device the stream
is connected to, as in 3.7.
The stdio encoding is now left undefined in this mode and determined for
every standard stream.1 parent 998b890 commit 669b34a
5 files changed
Lines changed: 67 additions & 5 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Windows
- Objects
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1070 | 1106 | | |
1071 | 1107 | | |
1072 | 1108 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15209 | 15209 | | |
15210 | 15210 | | |
15211 | 15211 | | |
| 15212 | + | |
| 15213 | + | |
| 15214 | + | |
| 15215 | + | |
15212 | 15216 | | |
15213 | 15217 | | |
15214 | 15218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | | - | |
1079 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
1081 | 1083 | | |
| 1084 | + | |
1082 | 1085 | | |
1083 | 1086 | | |
1084 | 1087 | | |
| |||
2709 | 2712 | | |
2710 | 2713 | | |
2711 | 2714 | | |
2712 | | - | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
2713 | 2721 | | |
2714 | 2722 | | |
2715 | 2723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
3073 | | - | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
3074 | 3085 | | |
3075 | 3086 | | |
3076 | 3087 | | |
| |||
0 commit comments