[erlang-bugs] Unicode bug in io:format
Mon Nov 21 22:42:07 CET 2011
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.
22 ноября 2011 г. 0:19 пользователь Paul Davis
> Oh, good call. I just pasted your code into the shell and it worked.
> But then when compiling it into a file it breaks like you have.
> Specifically, the UTF-8 literal in the source file is broken. This
> suggests that the Erlang compiler doesn't like UTF-8 literals, and
> sure enough, a quick google brought up a post:
> Which references:
> Paul Davis
> On Mon, Nov 21, 2011 at 2:06 PM, eurekafag <> wrote:
> > What exactly do you get? Please, provide the full output of both cases
> > and without -noinput. I tried export LANG=en_US.UTF-8 (my system-wide
> > is ru_RU.UTF-8) and I still get the same result.
> > _______________________________________________
> > erlang-bugs mailing list
> > http://erlang.org/mailman/listinfo/erlang-bugs
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-bugs