<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 12:35 PM, Sven Van Caekenberghe <span dir="ltr">&lt;<a href="mailto:sven@stfx.eu" target="_blank">sven@stfx.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Eliot,<br>
<span class=""><br>
&gt; On 20 Jan 2015, at 20:38, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 20, 2015 at 8:00 AM, Sven Van Caekenberghe &lt;<a href="mailto:sven@stfx.eu">sven@stfx.eu</a>&gt; wrote:<br>
&gt; Command line arguments enter the image level via VirtualMachine&gt;&gt;#getSystemAttribute:<br>
&gt;<br>
&gt; At that point they are already Strings.<br>
&gt;<br>
&gt; 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?<br>
&gt;<br>
&gt; In your case, they must already be wrong at that point.<br>
&gt;<br>
&gt; Not necessarily.  The  getSystemAttribute: primitive doesn&#39;t do decoding.  Perhaps it should.<br>
<br>
</span>Yes, probably. I just tried on Mac OS X, Pharo 4:<br>
<br>
$ export FOO=élève-Français<br>
<br>
$ echo $FOO<br>
élève-Français<br>
<br>
$ ./pharo Pharo.image eval &#39;OSPlatform current environment at: #FOO&#39;<br>
&#39;élève-Français&#39;<br>
<br>
$ ./pharo Pharo.image eval &#39;(OSPlatform current environment at: #FOO) asByteArray utf8Decoded&#39;<br>
&#39;élève-Français&#39;<br>
<br>
The question is, is this true for all platforms ? Windows ?<br></blockquote><div><br></div><div>I&#39;m trying to test this in Pharo 3.  I get</div><div><br></div><div>KeyNotFound: key #FOO not found in PlatformIndependentEnvironment</div><div>PlatformIndependentEnvironment(OSEnvironment)&gt;&gt;at: in Block: [ KeyNotFound signalFor: aKey ]</div><div>UndefinedObject&gt;&gt;ifNil:</div><div>PlatformIndependentEnvironment(OSEnvironment)&gt;&gt;at:ifAbsent:</div><div>PlatformIndependentEnvironment(OSEnvironment)&gt;&gt;at:</div><div>UndefinedObject&gt;&gt;DoIt</div><div>OpalCompiler&gt;&gt;evaluate</div><div>OpalCompiler(AbstractCompiler)&gt;&gt;evaluate:</div><div>SmalltalkImage&gt;&gt;evaluate:</div><div>EvaluateCommandLineHandler&gt;&gt;evaluate: in Block: [ ...</div><div>BlockClosure&gt;&gt;on:do: </div><div><br></div><div><br></div><div>Does the environment access depend on NativeBoost?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5"><br>
&gt; &gt; On 20 Jan 2015, at 16:51, Hilaire &lt;<a href="mailto:hilaire@drgeo.eu">hilaire@drgeo.eu</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Le 20/01/2015 16:34, Sven Van Caekenberghe a écrit :<br>
&gt; &gt;&gt; No they are not - Strings and Characters in Pharo are using plain Unicode encoding internally.<br>
&gt; &gt;<br>
&gt; &gt; Thanks for the update, and the reference link.<br>
&gt; &gt;<br>
&gt; &gt; Hilaire<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Dr. Geo - <a href="http://drgeo.eu" target="_blank">http://drgeo.eu</a><br>
&gt; &gt; iStoa - <a href="http://istoa.drgeo.eu" target="_blank">http://istoa.drgeo.eu</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; best,<br>
&gt; Eliot<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div></div>