[GH-ISSUE #1711] A bug with non-ascii named files #588

Closed
opened 2026-02-27 21:07:03 +03:00 by kerem · 6 comments
Owner

Originally created by @Tarik366 on GitHub (Dec 8, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1711

When a game with non-ascii named files try to access to file, filesystem trying to convert path to cstr in io_file.cpp:Open:184. And one slash is rerverted.

[Kernel.Pthread] <Info> thread_management.cpp:scePthreadMutexInit:457: name=SceLibc, result=0 [Kernel.Fs] <Info> file_system.cpp:sceKernelOpen:28: path = /app0/image/bg/部室_雨_y1.png flags = 0x0 mode = 0 [Common.Filesystem] <Error> io_file.cpp:Open:197: Failed to open the file at path=D:/games/ps4/CUSA09825\image/bg/部室_雨_y1.png, error_message=no such file or directory

Originally created by @Tarik366 on GitHub (Dec 8, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1711 When a game with non-ascii named files try to access to file, filesystem trying to convert path to cstr in [io_file.cpp:Open:184](https://github.com/shadps4-emu/shadPS4/blob/f347d3df1897af39f393c7bbfe38b8152fcef58e/src/common/io_file.cpp#L184). And one slash is rerverted. `[Kernel.Pthread] <Info> thread_management.cpp:scePthreadMutexInit:457: name=SceLibc, result=0 [Kernel.Fs] <Info> file_system.cpp:sceKernelOpen:28: path = /app0/image/bg/部室_雨_y1.png flags = 0x0 mode = 0 [Common.Filesystem] <Error> io_file.cpp:Open:197: Failed to open the file at path=D:/games/ps4/CUSA09825\image/bg/部室_雨_y1.png, error_message=no such file or directory`
kerem 2026-02-27 21:07:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Hermiten commented on GitHub (Dec 28, 2024):

Can you try again on the last version ?

<!-- gh-comment-id:2564401157 --> @Hermiten commented on GitHub (Dec 28, 2024): Can you try again on the last version ?
Author
Owner

@Tarik366 commented on GitHub (Dec 30, 2024):

Can you try again on the last version ?

[Kernel.Fs] file_system.cpp:sceKernelOpen:61: path = /app0/image/system/logo02.png flags = 0x0 mode = 0
[Common.Filesystem] io_file.cpp:Open:197: Failed to open the file at path=D:/games/ps4/CUSA09825\image/system/logo02.png, error_message=no such file or directory
[Kernel.Fs] file_system.cpp:sceKernelOpen:61: path = /app0/root.pfs flags = 0x0 mode = 0

it's a bit weird now, shadps trying to open a ascii file but it doesn't open, i think this is because the path system of the packed file uses , not /

Edit note: and when it tries to open japanese named file, it crashes

<!-- gh-comment-id:2565651264 --> @Tarik366 commented on GitHub (Dec 30, 2024): > Can you try again on the last version ? [Kernel.Fs] <Info> file_system.cpp:sceKernelOpen:61: path = /app0/image/system/logo02.png flags = 0x0 mode = 0 [Common.Filesystem] <Error> io_file.cpp:Open:197: Failed to open the file at path=D:/games/ps4/CUSA09825\image/system/logo02.png, error_message=no such file or directory [Kernel.Fs] <Info> file_system.cpp:sceKernelOpen:61: path = /app0/root.pfs flags = 0x0 mode = 0 it's a bit weird now, shadps trying to open a ascii file but it doesn't open, i think this is because the path system of the packed file uses \, not / Edit note: and when it tries to open japanese named file, it crashes
Author
Owner

@Hermiten commented on GitHub (Feb 1, 2025):

Can you keep us up to date on the problem?

<!-- gh-comment-id:2628883761 --> @Hermiten commented on GitHub (Feb 1, 2025): Can you keep us up to date on the problem?
Author
Owner

@Tarik366 commented on GitHub (Feb 2, 2025):

Nope, it's still same.

<!-- gh-comment-id:2629531192 --> @Tarik366 commented on GitHub (Feb 2, 2025): Nope, it's still same.
Author
Owner

@Hermiten commented on GitHub (Feb 13, 2025):

Can I assign you @polybiusproxy ?

<!-- gh-comment-id:2657446369 --> @Hermiten commented on GitHub (Feb 13, 2025): Can I assign you @polybiusproxy ?
Author
Owner

@StevenMiller123 commented on GitHub (Jun 29, 2025):

@Tarik366 Please provide an update this issue, and include a log of the crash.
Until a log is provided, this issue report is invalid.

<!-- gh-comment-id:3016920822 --> @StevenMiller123 commented on GitHub (Jun 29, 2025): @Tarik366 Please provide an update this issue, and include a log of the crash. Until a log is provided, this issue report is invalid.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#588
No description provided.