Hi,

Some people raise issues with file path encoding with non-ASCII characters.

The following works fine for me (macOS, Pharo 7, using new File class):

"works"

(FileLocator temp / 'foo' , 'txt') writeStreamDo: [ :out | out << 'Les élèves 
Français' ; crlf ].

(FileLocator temp / 'foo' , 'txt') readStreamDo: [ :in | in upToEnd ].

"works"

(FileLocator temp / 'benoît' , 'txt') writeStreamDo: [ :out | out << 'Les 
élèves Français' ; crlf ].

(FileLocator temp / 'benoît' , 'txt') readStreamDo: [ :in | in upToEnd ].

"works"

(FileLocator temp / 'benoît') ensureCreateDirectory.

(FileLocator temp / 'benoît' / 'benoît' , 'txt') writeStreamDo: [ :out | out << 
'Les élèves Français' ; crlf ].

(FileLocator temp / 'benoît' / 'benoît' , 'txt') readStreamDo: [ :in | in 
upToEnd ].


Can Linux/Windows users confirm that it works on their platform ?

Sven


Reply via email to