This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: thoughts on martin's proposed patch for GCC and UTF-8
- To: amylaar at cygnus dot co dot uk
- Subject: Re: thoughts on martin's proposed patch for GCC and UTF-8
- From: Paul Eggert <eggert at twinsun dot com>
- Date: Tue, 22 Dec 1998 10:50:38 -0800 (PST)
- CC: rms at gnu dot org, martin at mira dot isdn dot cs dot tu-berlin dot de, gcc2 at gnu dot org, egcs at cygnus dot com
- References: <199812221108.LAA04802@phal.cygnus.co.uk>
From: Joern Rennecke <amylaar@cygnus.co.uk>
Date: Tue, 22 Dec 1998 11:08:52 +0000 (GMT)
pick a set of non-ASCII characters that are sufficient to identify
the locale, and for each of them, state their name, followed by
their encoding, followed by an ASCII delimiter that makes it
possible to detect where the end of a multibyte encoding is.
I think that would be too brittle to work well in practice.
The magic cookie would be long and would be hard to explain to users.
For example, they couldn't just cut and paste the magic cookie's bytes
out of a recipe file; instead, they'd have to transliterate it to
their locale's character set, and they'd have to know what to do when
their locale can't represent all the characters.
Also, the set of characters would have to be large -- enough to
distinguish all the ISO 8859 variants, among other things. Worse, the
set would have to change with time as new character sets were added to
GCC's set of supported charsets. I'd hate to see a new GCC release
required because of the Euro!