Thanks, I'm aware of it. The problem is different behavior with and without -noinput. I'm just curious which case is right and why it makes difference at all. I explicitly define that binary string as utf8-encoded but it onlyšworksšwith -noinput and fails without it. On the other hand, a list without any unicode letters at all (only integers) printed as hex values with -noinput and as test without it. It may be understandable if this is some kind of parser problem which wants latin-1 letters in source but what's wrong with plain list of integers which it fails to output as a string? The problem is that those two cases are mutually exclusive so one of them works with -noinput and fails without and vice versa. So I'm curious which method I should use so it works like expected.<br>
<br><div class="gmail_quote">22 ÎÏÑÂÒÑ 2011šÇ. 0:19 ÐÏÌØÚÏ×ÁÔÅÌØ Paul Davis <span dir="ltr"><<a href="mailto:paul.joseph.davis@gmail.com">paul.joseph.davis@gmail.com</a>></span> ÎÁÐÉÓÁÌ:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Oh, good call. I just pasted your code into the shell and it worked.<br>
But then when compiling it into a file it breaks like you have.<br>
Specifically, the UTF-8 literal in the source file is broken. This<br>
suggests that the Erlang compiler doesn't like UTF-8 literals, and<br>
sure enough, a quick google brought up a post:<br>
<br>
<a href="http://erlang.2086793.n4.nabble.com/utf8-in-source-files-td3031128.html" target="_blank">http://erlang.2086793.n4.nabble.com/utf8-in-source-files-td3031128.html</a><br>
<br>
Which references:<br>
<br>
<a href="http://www.erlang.org/doc/apps/stdlib/unicode_usage.html" target="_blank">http://www.erlang.org/doc/apps/stdlib/unicode_usage.html</a><br>
<br>
HTH,<br>
<span class="HOEnZb"><font color="#888888">Paul Davis<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Nov 21, 2011 at 2:06 PM, eurekafag <<a href="mailto:eurekafag@eureka7.ru">eurekafag@eureka7.ru</a>> wrote:<br>
> What exactly do you get? Please, provide the full output of both cases with<br>
> and without -noinput. I triedšexport LANG=en_US.UTF-8 (my system-wide locale<br>
> is ru_RU.UTF-8) and I still get the same result.<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> erlang-bugs mailing list<br>
> <a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
><br>
><br>
</div></div></blockquote></div><br>