<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 21, 2014 at 7:12 PM, Björn-Egil Dahlberg <span dir="ltr"><<a href="mailto:wallentin.dahlberg@gmail.com" target="_blank">wallentin.dahlberg@gmail.com</a>></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"><div dir="ltr">I don't think that is desired.<div>Start erlang with +pc unicode</div>

<div><br></div><div>do a lists:seq(300,10000) ..</div><div><br></div><div>// Björn-Egil</div></div><div class="gmail_extra"><br></div></blockquote><div><br></div><div>Hmm, I see your point. On the other hand, this is just an artifact for the lists/strings duality and possibly another reason to make strings a separate type. If a value is a latin1 string, it will print nicely in the shell, but if it's utf8 it won't...<div>

<br></div><div>regards,</div><div>Vlad<br><div class="gmail_extra"><br> <br></div></div></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="gmail_extra"><br><div class="gmail_quote">
2014-02-21 14:05 GMT+01:00 Vlad Dumitrescu <span dir="ltr"><<a href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>></span>:<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">

<div><div class="h5">
<div dir="ltr">Hi!<div><br></div><div>I'm not sure if I misunderstood something or if there is a problem in 17.0-rc1, but starting a shell normally gives</div><div><br></div><div><div><font face="courier new, monospace">Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [smp:4:4] [async-threads:10]<br>




</font></div><div><font face="courier new, monospace">Eshell V6.0  (abort with ^G)<br></font></div><div><font face="courier new, monospace">1> "Ȇ".</font></div><div><font face="courier new, monospace">[518]</font></div>




<div><font face="courier new, monospace">2> erl_scan:string("\"Ȇ\"").</font></div><div><font face="courier new, monospace">{ok,[{string,1,[518]}],1}</font></div><div><font face="courier new, monospace">3> lists:keyfind(encoding, 1, io:getopts()).</font></div>




<div><font face="courier new, monospace">{encoding,unicode}</font></div><div><font face="courier new, monospace">4>  $Ȇ.</font></div><div><font face="courier new, monospace">518</font></div><div><br></div><div>while starting with "+pc unicode" gives the expected (for me) result.</div>




<div><br></div><div><font face="courier new, monospace">Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [smp:4:4] [async-threads:10]<br></font></div></div><div><div><font face="courier new, monospace">Eshell V6.0  (abort with ^G)<br>




</font></div><div><font face="courier new, monospace">1>  "Ȇ".</font></div><div><font face="courier new, monospace">"Ȇ"</font></div><div><font face="courier new, monospace">2> erl_scan:string("\"Ȇ\"").<br>




</font></div><div><font face="courier new, monospace">{ok,[{string,1,"Ȇ"}],1}</font></div><div><font face="courier new, monospace">3> </font></div><div><font face="courier new, monospace">3> lists:keyfind(encoding, 1, io:getopts()).</font></div>




<div><font face="courier new, monospace">{encoding,unicode}</font></div><div><font face="courier new, monospace">4> $Ȇ.</font></div><div><font face="courier new, monospace">518</font></div><div><br></div></div><div>Isn't 17.0 supposed to have the unicode support as default even in this context?</div>




<div><br></div><div>regards,</div><div>Vlad</div><div><br></div></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>