It might well be a wooly-headed idea when you look at the details, and I confess to not being an expert in this area. The basic concept would be to warn when, for instance, you've entered your string literals in Latin-1 when the compiler or system options decree that you should use UTF8. I like the overall idea of not leaving encoding problems to the good will of external tools, but if it can't be detected reliably, then it's of course just dreaming.
Another approach might be to use a heuristic tool a la xref to detect "suspicious" string literals. Not sure if that helps.
----- Original Message -----_______________________________________________
> From: Richard O'Keefe <o...@cs.otago.ac.nz>
> To: Thomas Lindgren <thomasl_erl...@yahoo.com>
> Cc: "erlang-questi...@erlang.org" <erlang-questi...@erlang.org>
> Sent: Thursday, August 2, 2012 3:28 AM
> Subject: Re: [erlang-questions] correct terminology for referring to strings
> On 2/08/2012, at 6:42 AM, Thomas Lindgren wrote:
>> How about adding compiler warnings about string literals that do not obey
> What does this actually mean?
> There is no byte sequence valid in UTF-8 that is not also
> So I have no idea what "string literals that do not obey
erlang-questions mailing list
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.