Commit feb082c
test(cli): fix Windows CI mojibake in test_cli_with_lang_to
delegator.run decoded subprocess stdout with the Windows ANSI code page
(cp1252), turning UTF-8 'é' (0xC3 0xA9) into 'é' and breaking the
Spanish currency assertion on every Windows tox env.
Replace delegator with subprocess.run, force encoding="utf-8" on the
parent decode, and set PYTHONIOENCODING=utf-8 / PYTHONUTF8=1 in the
child env so the CLI emits UTF-8 regardless of the host code page.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent deb1ad0 commit feb082c
1 file changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
39 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
40 | 55 | | |
41 | 56 | | |
42 | 57 | | |
| |||
0 commit comments