OSSubprocess icon indicating copy to clipboard operation
OSSubprocess copied to clipboard

Special characters not handled

Open datensenke opened this issue 5 years ago • 2 comments

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.

datensenke avatar Jul 03 '20 16:07 datensenke

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…

cdlm avatar Jul 04 '20 10:07 cdlm

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?

demarey avatar Oct 11 '21 07:10 demarey