diff options
author | Hans Bolinder <[email protected]> | 2013-01-01 16:56:22 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-01-02 10:15:18 +0100 |
commit | c44bc4f840f85c677eb86f00dc42c1648aaec0a6 (patch) | |
tree | f3e4bb6337559d73af91cfd75f647f23a778b3c0 /lib/kernel/src/user.erl | |
parent | 6f86a3a6ba3b975016aab80b3f5b3f2807304b24 (diff) | |
download | otp-c44bc4f840f85c677eb86f00dc42c1648aaec0a6.tar.gz otp-c44bc4f840f85c677eb86f00dc42c1648aaec0a6.tar.bz2 otp-c44bc4f840f85c677eb86f00dc42c1648aaec0a6.zip |
Make sure the Erlang shell prompt can handle Unicode
Diffstat (limited to 'lib/kernel/src/user.erl')
-rw-r--r-- | lib/kernel/src/user.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/src/user.erl b/lib/kernel/src/user.erl index 629b7ae67f..d6449d9e5e 100644 --- a/lib/kernel/src/user.erl +++ b/lib/kernel/src/user.erl @@ -673,8 +673,9 @@ get_chars_more(State, M, F, Xa, Port, Q, Enc) -> prompt(_Port, '') -> ok; prompt(Port, Prompt) -> - put_port(wrap_characters_to_binary(io_lib:format_prompt(Prompt), - unicode, get(encoding)), + Encoding = get(encoding), + put_port(wrap_characters_to_binary(io_lib:format_prompt(Prompt, Encoding), + unicode, Encoding), Port). %% Convert error code to make it look as before |