Hi Sven,

why ByteArray?

does not work (Improper store into indexable object):
OSProcess �� command: ('cp ��/Library/WebServer/Documents/reports/b��r.pdf /Library/WebServer/Documents/reports/test-a.pdf' utf8Encoded asString).
��
works:
OSProcess �� command: ('cp ��/Library/WebServer/Documents/reports/b��r.pdf /Library/WebServer/Documents/reports/test-a.pdf' utf8Encoded)

Perhaps David can add this here:

command: aCommandString
"Run a command in a shell process. Similar to the system(3) call in the standard C library,
except that aCommandString runs asynchronously in a child process. The command is
run by a ConnectedUnixProcess in order to facilitate command pipelines within Squeak."

"UnixProcess thisOSProcess command: 'ls -l /etc'"

| proc |
pid isNil
ifTrue:
[self class noAccessorAvailable. ^nil]
ifFalse:
[proc := self
forkJob: ExternalUnixOSProcess defaultShellPath
arguments: (Array with: '-c' with: aCommandString��utf8Encoded asString) <<<===
environment: nil
descriptors: nil.
proc ifNil: [self class noAccessorAvailable].
^ proc]


regards
Sabine
��
��

2016-06-06 8:41 GMT+02:00 Sabine Manaa <manaa.sabine@gmail.com>:
Hi Dave,��

I get the german �� with:

(Character value: 228) asString

Do you want me to go in it and suggest a solution or do you want to try to fix it and I test it?

Thanks for helping!

Regards Sabine

2016-06-05 23:08 GMT+02:00 David T. Lewis [via Smalltalk] <[hidden email]>:



If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/OSProcess-command-with-german-umlaut-does-not-work-tp4899285p4899301.html
To start a new topic under Pharo Smalltalk Users, email [hidden email]
To unsubscribe from Pharo Smalltalk Users, click here.
NAML



View this message in context: Re: OSProcess command with german umlaut does not work
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.