OSSubprocess
OSSubprocess copied to clipboard
Special characters not handled
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.
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…
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?