[erlang-questions] v17 unicode support

Björn-Egil Dahlberg <>
Fri Feb 21 19:12:16 CET 2014


I don't think that is desired.
Start erlang with +pc unicode

do a lists:seq(300,10000) ..

// Björn-Egil


2014-02-21 14:05 GMT+01:00 Vlad Dumitrescu <>:

> Hi!
>
> I'm not sure if I misunderstood something or if there is a problem in
> 17.0-rc1, but starting a shell normally gives
>
> Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [smp:4:4] [async-threads:10]
> Eshell V6.0  (abort with ^G)
> 1> "Ȇ".
> [518]
> 2> erl_scan:string("\"Ȇ\"").
> {ok,[{string,1,[518]}],1}
> 3> lists:keyfind(encoding, 1, io:getopts()).
> {encoding,unicode}
> 4>  $Ȇ.
> 518
>
> while starting with "+pc unicode" gives the expected (for me) result.
>
> Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [smp:4:4] [async-threads:10]
> Eshell V6.0  (abort with ^G)
> 1>  "Ȇ".
> "Ȇ"
> 2> erl_scan:string("\"Ȇ\"").
> {ok,[{string,1,"Ȇ"}],1}
> 3>
> 3> lists:keyfind(encoding, 1, io:getopts()).
> {encoding,unicode}
> 4> $Ȇ.
> 518
>
> Isn't 17.0 supposed to have the unicode support as default even in this
> context?
>
> regards,
> Vlad
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140221/eed0a605/attachment.html>


More information about the erlang-questions mailing list