rileytestut / AltServer-Windows

GNU Affero General Public License v3.0
141 stars 49 forks source link

Error when user name contains non-ASCII characters in 1.4.7.0 #36

Open asesidaa opened 2 years ago

asesidaa commented 2 years ago

When user name contains non-ASCII characters, there will be a "The system cannot find the path specified" exception when installing altstore due to errors in encoding.

Altserver version is 1.4.7.0, which is the version dowonloaded from https://altstore.io/

The error seems to come from https://github.com/rileytestut/AltServer-Windows/blob/master/AltServer/AltServerApp.cpp#L605, so there seems to be some encoding issues when generating the temporary path https://stackoverflow.com/questions/57112274/windows-directory-that-will-never-contain-non-ascii-characters-for-temp-file seems to have some solutions.

Create a new user with english name is a workaround. If fix is not feasible, maybe add that to FAQ first. QQ图片20220331000127