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

Special characters not handled #59

Open
datensenke opened this issue Jul 3, 2020 · 2 comments
Open

Special characters not handled #59

datensenke opened this issue Jul 3, 2020 · 2 comments

Comments

@datensenke
Copy link

This:

OSSUnixSubprocess new
	command: '/bin/ls';
	arguments: #('-la' '/net/pirx/srv/nfs/music/Electro/Röyksopp');
	redirectStdout;
	runAndWaitOnExitDo: [ :process :outString  |
		outString inspect
	]

doesn't work. I guess it is because of the umlaut.

@cdlm
Copy link
Contributor

cdlm commented Jul 4, 2020

First thing that comes to mind is to check what character encoding is used for file names on your system. Modern Linux distros have the most chances of being ok, I'm not sure how windows does, and with macOS there's the hurdle that it prefers decomposed unicode…

@demarey
Copy link
Contributor

demarey commented Oct 11, 2021

Hi @datensenke

It should work. There are tests for this use case. Ex: https://github.com/pharo-contributions/OSSubprocess/blob/master/repository/OSSubprocess-Tests-Unit.package/OSSUnixSubprocessTest.class/instance/testBasicCommandWithNonAsciiArgument.st

Could you tell with version of OSSubprocess and pharo you use?

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