PURPOSE Reference implementation for ISO WG 14 pre draft technical report 19769 Support UTF-16 and UTF-32 character and string literals: u'c' u"string literal" U'c' U"string literal" CONTENTS COPYING GNU General Public License gcc-3.2.tar.bz2 Original GCC source used ugcc32_PDTR19769.diff changes to support Unicode literals uchar.h reference implementation of new header testutf.c test source n1010.pdf ISO/IEC/WG14 suggestion for C standard extension BUILD - tar -xjf gcc-3.2.tar.bz2 - cd gcc-3.2 - patch -p1 < ../ugcc32_PDTR19769.diff - mkdir cc - cd cc - ../configure --prefix=/opt/ugcc - make bootstrap - make install ENCODING OF LITERALS If the environment variable UGCC_LANG is set it defines the OS locale for parsing and thereby defines the encoding that is used to interpret the literals in the source file CHANGES TO ORIGINAL GCC - all changes are marked with 'UTF_CHAR' - accept 'u','U' preceding literals analogue to 'L' for wide character - use mbtowc to build wide string literals from source code - write Unicode literals with appropriate width and appropriate type - extend string concatenation to handle new literals - extend special type checks for string literals CONTACT markus.eble@sap.com