Public bug reported: For a user named "João Martín😁" (even emojis are valid in Windows user names!) whose profile folder will most likely be "C:\Users\João Martín😁" (paths also accept emoji, but that also works in Linux as well), a command like "cd $(wslpath -au $( cmd.exe /C echo.%USERPROFILE%))" is bound to fail because the output of cmd.exe is not only incompatible with UTF-8 (as expected by default) but also unpredictable, as the the exact binary representation of anything above the ASCII charset depends on the system's configured code page and can be ambiguously interpreted. As wsl-pro-service relies on that exact path translation to find the user's profile folder during its startup, it crashes due invalid UTF-8 characters cmd.exe outputs under such situations.
This issue was fixed in the project repository on GitHub: https://github.com/canonical/ubuntu-pro-for-wsl/pull/1552. I'm adding the bug here for documentation purposes, this should be closed with a new upload. ** Affects: wsl-pro-service (Ubuntu) Importance: Undecided Status: Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2142666 Title: Crash when the Windows user profile folder path contains non ASCII chars To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wsl-pro-service/+bug/2142666/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
