[Vm-dev] Re: [Pharo-dev] [Pharo-users] CommandLine handler and UTF8 path

Eliot Miranda eliot.miranda at gmail.com
Tue Jan 20 19:38:52 UTC 2015


On Tue, Jan 20, 2015 at 8:00 AM, Sven Van Caekenberghe <sven at stfx.eu> wrote:

> Command line arguments enter the image level via
> VirtualMachine>>#getSystemAttribute:
>
> At that point they are already Strings.
>

ByteString, according to the primitive.  So if the shell supplies e.g.
UTF-8 strings for command-line parameters, which the VM sees as bytes, then
the ByteString instances answered by getSystemAttribute: would need
decoding, right?


> In your case, they must already be wrong at that point.
>

Not necessarily.  The  getSystemAttribute: primitive doesn't do decoding.
Perhaps it should.


> > On 20 Jan 2015, at 16:51, Hilaire <hilaire at drgeo.eu> wrote:
> >
> > Le 20/01/2015 16:34, Sven Van Caekenberghe a écrit :
> >> No they are not - Strings and Characters in Pharo are using plain
> Unicode encoding internally.
> >
> > Thanks for the update, and the reference link.
> >
> > Hilaire
> >
> > --
> > Dr. Geo - http://drgeo.eu
> > iStoa - http://istoa.drgeo.eu
> >
> >
>
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150120/ba4e86af/attachment.htm


More information about the Vm-dev mailing list