Commit e1eb3fd
authored
Fix Windows build on non-UTF-8 locales (/utf-8 template + serious_python 4.3.3) (#6687)
* Bump serious_python to 4.3.3 in build template
serious_python 4.3.3 fixes `flet build windows` failing on non-UTF-8
system locales (e.g. code page 936/GBK on Simplified-Chinese Windows)
with warning C4819 escalated to error C2220 while compiling the Windows
plugin. Pin the build template to it and add a 0.86.1 changelog entry.
Fixes #6686
* Compile Windows plugins with /utf-8 in build template
The build template compiles every plugin (and the runner) with /WX, so any
plugin whose Windows source contains a non-ASCII byte fails with C4819 ->
C2220 on non-UTF-8 system locales (e.g. code page 936/GBK on
Simplified-Chinese Windows). This hits third-party plugins flet can't patch
(reported for connectivity_plus, in addition to serious_python).
Add /utf-8 to APPLY_STANDARD_SETTINGS so all targets read sources as UTF-8
regardless of the build machine's code page.
Fixes #66861 parent fe6ff19 commit e1eb3fd
3 files changed
Lines changed: 9 additions & 1 deletion
File tree
- sdk/python/templates/build/{{cookiecutter.out_dir}}
- windows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
0 commit comments