<div dir="ltr">This should be fixed on master now.<div><br></div><div>/Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 12, 2015 at 11:33 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 3 mars 2015 à 17:15, Dan Gudmundsson <<a href="mailto:dgud@erlang.org">dgud@erlang.org</a>> a écrit :<br>
<span class=""><br>
> I took at file:read_line issue, and thought about it :-)<br>
><br>
> IMHO it should behave as file:read/2 does and how it is documented.<br>
> i.e. return {error, {no_translation, unicode, latin1}} for both binary and list mode<br>
> when encoding is set to unicode and reading non latin1 code points.<br>
> (Which is confusing but that is how it is intended/documented,<br>
> use io module for translating non latin1 codepoints).<br>
<br>
</span>The problem is that file uses io in read/2 itself, calling io:request/2,<br>
which ultimately invariably converts the response to Unicode.<br>
<br>
</blockquote></div><br></div>