Skip to content

Commit

Permalink
[wasm][aot] Force python to default to UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Jun 1, 2021
1 parent d3e35e7 commit c731714
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 c731714

Please sign in to comment.