karlll / kjell

Erlang Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UTF-8 support

zzet opened this issue · comments

$ uname -a
Darwin zzet 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64

I get this too.

Hi!

Thanks for reporting this. I've reproduced the issue using OTP R17 with standard shell and kjell:

$ erl pc +unicode

Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V6.4  (abort with ^G)
1> <<208,174,208,189,208,184,208,186,208,190,208,180>>.
<<"Юникод"/utf8>>
2> q().
$ kjell pc +unicode

 ,-. ,-. |  ,-. ,-. ,-.
 |-' |   |  ,-| | | | |
 `-' '   `' `-^ ' ' `-|
-------------------- ,| ------------------------------------------------------------------------------------------------------------
kjell v. 0.2.3      `'  Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

1> <<208,174,208,189,208,184,208,186,208,190,208,180>>.
<<"Юникод">>
2> q().

I think the reason for this is that the code handling unicode has changed in the standard user & group modules in later OTP releases. Kjell was based on OTP R16. Some kind of uplift is needed here.