Skip to content

Commit

Permalink
[wasm][aot] Force python to default to UTF8 (#53557)
Browse files Browse the repository at this point in the history
  • Loading branch information
radical authored Jun 2, 2021
1 parent bc7d4dc commit a71ea4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mono/wasm/build/WasmApp.Native.targets
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@

<ItemGroup>
<EmscriptenEnvVars Include="PATH=$(_EmscriptenPrependPATHProperty)$(_PathSeparator)$([MSBuild]::Escape($(PATH)))" />

<!--
Python defaults to the system charset, and thus expects the files it's reading to
match that. But that might not always be true. Eg. system charset=gbk, failing to read
utf-8 files
See https://github.com/dotnet/runtime/issues/53367 for the motivating issue
-->
<EmscriptenEnvVars Include="PYTHONUTF8=1" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit a71ea4d

Please sign in to comment.