Commit fed3924
gh-154592: Fix test_peg_generator in non-UTF-8 locales with a non-ASCII work dir
setUpClass created a venv in the regrtest working directory (whose name has a
non-ASCII suffix) and ran a child printing sysconfig.get_path(). In a locale
whose encoding cannot encode that character, the child failed to encode the
path. Force UTF-8 for the child.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent eef2349 commit fed3924
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments