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: rms at gnu dot org
- Subject: Re: thoughts on martin's proposed patch for GCC and UTF-8
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Mon, 21 Dec 1998 10:00:13 -0500
- cc: amylaar at cygnus dot co dot uk, martin at mira dot isdn dot cs dot tu-berlin dot de, gcc2 at gnu dot org, egcs at cygnus dot com
On Sun, 20 Dec 1998 21:29:41 -0700 (MST), Richard Stallman wrote:
>
> * Locale names aren't very portable. E.g. Solaris uses "ja" for
> EUC-JIS whereas Unixware uses "ja_JP.EUC".
>
>This is a real issue. I see three possible solutions.
>
>1. Define our own system-independent names for (some) locales.
>2. Allow specification of several locale names, and GCC will use
>the first one that is meaningful on the system in use.
>3. Allow specification of several locale names, each associated
>with a host system type.
GCC should only care about the character set, not the rest of the
locale. Therefore, it makes sense to use the charset names from the
iconv library (part of glibc 2.1, also in Solaris and probably
elsewhere) which are the names standardized by the MIME RFCs.
zw