-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chdman createcd doesn't work with input path containing accents on Windows #12095
Comments
The reason for this problem is that Windows doesn't like UTF-8 for filenames. |
mame could opt in to UTF-8 support with a manifest setting just as it currently does for DPI awareness and long path awareness. Currently only the main executable embeds a custom manifest, so the tools would need to be updated to do this as well. https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#activeCodePage |
That requires a relatively new version of Windows to work (we still support older versions of Windows), and using it breaks the code in |
What do you expect to break? If the user sets UTF-8 as their system-wide code page, it will have the same effect on MAME as this manifest setting (so the same things will break). |
Well if the user doesn’t set their system-wide ANSI code page to UTF-8, they shouldn’t be expecting applications to use UTF-8 for things that are nominally supposed to use the system-wide ANSI code page. But that aside, the code doesn’t work for ANSI code pages where the are more than two possible coding lengths for characters (e.g. GB2312 and Shift-JIS work, GB18030 and UTF-8 don’t). |
Ah, if supporting legacy code pages is a goal then I understand why you can't override it.
I found the code you are referring to (in Thanks for explaining the reasoning here; guess there's no shot at a free lunch. |
Similarly, chdman currently cannot create files with East Asian character file names, such as files named with Chinese, Japanese, and Korean characters. |
MAME version
0.263
System information
Windows 11 in spanish
INI configuration details
Emulated system/software
N/A
Incorrect behaviour
createcd can't work with input paths (-i) with accents.
Create a folder with accents and put the ".iso" or ".bin/.cue" inside, for example:
D:\Té
And use the path in the "-i" argument:
Expected behaviour
It should read "D:\Té\Something.iso"
Steps to reproduce
Additional details
The -o argument works well with accents.
"createdvd" shows strange symbols to the console, but it works (reads and generates the output):
The text was updated successfully, but these errors were encountered: