View difference between Paste ID: 7EYEhu0Z and tMxnENfh
SHOW: | | - or go back to the newest paste.
1
Mac OS X 10.8.4 / Darwin Kernel Version 12.4.1: Tue May 21 17:04:50 PDT 2013; root:xnu-2050.40.51~1/RELEASE_X86_64 x86_64
2
> erl
3
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]
4
Eshell V5.9.3.1  (abort with ^G)
5
1> <<Char:8,Rest/binary>> = <<"A",128>>.
6
<<65,128>>
7
2> unicode:characters_to_list(Rest).
8
{error,[],<<"A">>}
9
3> Rest.
10
<<128>>
11
4> Rest = <<128>>.
12
<<128>>
13
5> unicode:characters_to_list(<<128>>).
14
{error,[],<<128>>}