This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc ignores locale (no UTF-8 source code supported)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]