This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: gcc ignores locale (no UTF-8 source code supported)
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: gcc ignores locale (no UTF-8 source code supported)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Sat, 23 Sep 2000 20:33:48 +0100 (BST)
- cc: Markus dot Kuhn at cl dot cam dot ac dot uk, libc-alpha at sources dot redhat dot com, gcc at gcc dot gnu dot org
On Sat, 23 Sep 2000, Martin v. Loewis wrote:
> > POSIX specifies already what the "implementation-defined way of
> > determining the source character set" is that the C standard refers
> > to.
>
> Can you please point to the exact chapter and verse of Posix that
> specifies that the C compiler must consider environment variables when
> reading source code?
ISO/IEC 9945-2:1993(E) A.1.5.3 page 690 lines 130-133 describes the effect
of LC_CTYPE on the c89 utility.
GCC doesn't provide a c89 wrapper; I think it would be useful if it did
have a --enable-cc-wrappers configure option that created a link cc to
gcc, a c89 wrapper (which presently could be
#! /bin/sh
exec gcc -ansi -pedantic "$@"
with the appropriate adjustments to get the right executable and any
portability kludge needed if "$@" isn't sufficiently portable) and a c99
wrapper (as specified by the Austin Group draft). If the default will
not be to follow LC_CTYPE, then these scripts would need additional
options in the gcc invocation.
--
Joseph S. Myers
jsm28@cam.ac.uk