Re: Latin-1 source code compatibility bug

Magnus Henoch <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
Anthony Ramine <[email protected]> writes:

> Is that even supposed to work now that UTF-8 is the default?

The README file for 17.0 says:

   OTP-11791  The default encoding for Erlang source files is now UTF-8. As
	      a temporary measure to ease the transition from the old
	      default of latin-1, if the compiler encounters byte sequences
	      that are not valid UTF-8 sequences, the compiler will re-try
	      the compilation in latin-1 mode. This workaround will be
	      removed in a future release.

It seems like the compiler doesn't retry using latin-1 in this case.

(For the record, the file in question compiles without problems if you
put "%% -*- coding: latin-1 -*-" as the first line.)

Regards,
Magnus
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.