[erlang-patches] (no subject)

Vlad Dumitrescu vladdu55@REDACTED
Fri Jan 30 09:52:15 CET 2015


OTP-11660: make eunit unicode safe

The most critical part is eunit_surefire, because the generated XML
must be correct UTF-8, otherwise tools will refuse to work with it.

The tricky part is that the input can contain mixed encodings and we
can't know which encoding applies to each text chunk. This is because
input can be from io:format in the tests. Also, different test modules
might be encoded differently and that can't be detected at runtime. We
have to avoid outputting both bad utf-8 and doubly encoded utf-8.

The simplest solution is to let the encoder skip characters it chokes
on, replacing them with '?'.



> git fetch git://github.com/vladdu/otp.git eunit_unicode_OTP11660
>


> https://github.com/vladdu/otp/compare/erlang
> :master...eunit_unicode_OTP11660
> https://github.com/vladdu/otp/compare/erlang
> :master...eunit_unicode_OTP11660.patch


regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20150130/12aa3b21/attachment.htm>


More information about the erlang-patches mailing list