Uh oh!
There was an error while loading. Please reload this page.
[browser] Fix encoding problem when publishing - #82833
Conversation
ghost
commented
Mar 1, 2023
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsFixes #78953. For usernames with Unicode characters we had a problem because Window's .cmd scripts are not supporting Unicode (https://ss64.com/nt/chcp.html). Temporary files paths, e.g. "C:\Users\煉\AppData\Local\Temp\tmpC538.tmp" were passed to emcc with incorrect encoding and then could not be found in the file system which caused exceptions.
|
radical
commented
Mar 1, 2023
This needs a test in WBT. Instead of the username, the unicode characters can be in the project name. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
radical
commented
Mar 3, 2023
Failing on windows, and linux: runtime/src/tasks/AotCompilerTask/MonoAOTCompiler.cs Lines 1027 to 1028 in 9fd3ece
@maraf could you please take a look? |
pavelsavara
commented
Mar 3, 2023
This does similar operation on assembly names for WASI |
radical
commented
Mar 3, 2023
We can replace the wasi one with FixupSymbolName which is more tested too. |
ilonatommy
commented
Mar 6, 2023
Thank you for a hint. Using the |
Uh oh!
There was an error while loading. Please reload this page.
Stashing for later investigation: |
radical
commented
Mar 7, 2023
These seem to be failing on CI too. |
Publish with relink tests on Blazor do not work. emscripten-core/emscripten#17817. I will block these tests till emcc solves it. |
Uh oh!
There was an error while loading. Please reload this page.
ilonatommy
commented
Mar 16, 2023
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/4435596854 |
@ilonatommy backporting to release/7.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: Fixed https://github.com/dotnet/runtime/issues/78953.
Applying: New wbt publish test case: Unicode sign in project name.
Using index info to reconstruct a base tree...
A src/mono/wasm/Wasm.Build.Tests/BuildPublishTests.cs
Falling back to patching base and 3-way merge...
Applying: Removed duplicated, unused function+ addressed @akoeplinger review.
Applying: Fix.
Applying: Revert AOT tests to fix them in a follow-up.
error: sha1 information is lacking or useless (src/mono/wasm/Wasm.Build.Tests/BuildPublishTests.cs).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0005 Revert AOT tests to fix them in a follow-up.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
@ilonatommy an error occurred while backporting to release/7.0, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
Fixes#78953.
For usernames with Unicode characters we had a problem because Window's .cmd scripts are not supporting Unicode (https://ss64.com/nt/chcp.html). Temporary files paths, e.g. "C:\Users\煉\AppData\Local\Temp\tmpC538.tmp" were passed to emcc with incorrect encoding and then could not be found in the file system which caused exceptions.
Out-of-scope:
runtime/src/mono/wasm/build/WasmApp.Native.targets
Line 475 in 99aa25f
Regressions with non-ASCII characters in path names emscripten-core/emscripten#17817