mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #1853] [MERGED] Fix AutoUpdate Issue with Non-Latin Usernames/Directories #2346
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1853
Author: @DanielSvoboda
Created: 12/22/2024
Status: ✅ Merged
Merged: 12/23/2024
Merged by: @georgemoralis
Base:
main← Head:main📝 Commits (2)
b799f27Fix updater for non-Latin user directories530267eQStandardPaths📊 Changes
1 file changed (+8 additions, -3 deletions)
View changed files
📝
src/qt_gui/check_update.cpp(+8 -3)📄 Description
With this update, users who have usernames with Russian or other non-Latin characters can now use AutoUpdate without encountering the error shown in the image below.
UTF-8 BOM Encoding for .ps1 File
.ps1file containing PowerShell commands is now saved with UTF-8 BOM encoding.scriptFile.write("\xEF\xBB\xBF");to ensure the correct encoding.Fix for Non-Latin Characters in Folder Paths
QStandardPaths::writableLocationensures proper handling of non-Latin characters (e.g., Russian characters) in folder paths.Temporary Folder Path Update
Testing
Print of the test I did with the code running in a folder in Russian (Администратор)

It was also tested by a user on discord who presented the problem, and with his user it worked correctly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.