Skip to content
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

Windows VM ignores image argument with non-ASCII chars #707

Open
JanBliznicenko opened this issue Oct 25, 2023 · 2 comments
Open

Windows VM ignores image argument with non-ASCII chars #707

JanBliznicenko opened this issue Oct 25, 2023 · 2 comments

Comments

@JanBliznicenko
Copy link

JanBliznicenko commented Oct 25, 2023

Windows VM does not open an image if the image path argument contains non-ASCII characters.

An example where
a.image opens
á.image does not:

example

The problem occurs if the non-ASCII char is anywhere in the image path argument provided to the Pharo.exe, no matter whether the path is absolute or relative and whether such character is in the mage file name or directory name.

It works in case the containing directory has non-ASCII chars, but the directory is current directory and we use relative path that only contains ASCII chars. All that matters is the string passed as an argument, not the actual full absolute path.

Tested on:
Windows 11
VM 10.0.0.8
Pharo image 11

EDIT: Still present in Pharo 13 and latest VM as of 1.11.2024

Issue is not present on Linux.

@guillep
Copy link
Member

guillep commented Oct 25, 2023

Thanks @JanBliznicenko we will look into it.

@tesonep
Copy link
Collaborator

tesonep commented Nov 2, 2024

Thanks so much @JanBliznicenko, I have checked and the problem is that the arguments are parsed correctly and handled the UTF-8, but the MINGW implementation of the std C Lib is not fully UTF-8, we need to see how to fix that. One solution is to use Window specific calls for them or use the MSVC implementation. Eventually we are moving to use MSVC and leave MINGW behind, but I will try to have a solution before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants