[Regression] PKG entry path escapes installation directory when emulator path contains special characters
Quick summary
Installing a PKG fails instantly with a PKG entry path escapes installation directory error if the RPCS3 executable is located in a directory path that contains special characters (such as ç and ã). This is a regression, as installing PKGs from this exact same path worked perfectly prior to recent updates.
RPCS3 Version: v0.0.42-19980-028d1e8f Alpha | master
Details
I encountered an installation failure when trying to install a PKG file. My RPCS3 folder was located in a path with special characters (D:\emulação\PS3\RPCS3).
When I attempt to install the PKG via "File > Install Packages/RAPs/Edats", the process fails immediately, and the following errors are thrown in the log:
·E 0:00:22.342303 {PKG Installer} PKG: PKG entry path escapes installation directory: 'PS3LOGO.DAT' ·E 0:00:22.342308 {PKG Installer} PKG: Package installation failed: D:/emulação/PS3/RPCS3/dev_hdd0/game/NPUA80676/
Workaround & Regression Note: If I rename the root folder from emulação to emulacao (removing the special characters) and run the emulator from the new path, the exact same PKG installs perfectly without any errors. It seems the path validation logic during PKG extraction was recently changed/broken, as this emulação directory was working without issues in older builds.
Steps to Reproduce:
Place the emulator in a directory path containing special characters (e.g., D:\emulação\).Attempt to install a valid game or update PKG via the emulator menu.The installation fails instantly with the error mentioned above.Rename the folder to remove the special characters (e.g., D:\emulacao\), and the installation succeeds.
Attach a log file
Attach capture files for visual issues
No response
System configuration
OS: Windows 11 (Build 26200)
CPU: AMD Ryzen 5 5600 6-Core Processor
GPU: NVIDIA GeForce RTX 3060Other details
No response
Source: RPCS3/rpcs3