From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21724 invoked by alias); 12 Aug 2009 08:44:44 -0000 Received: (qmail 20935 invoked by uid 48); 12 Aug 2009 08:44:27 -0000 Date: Wed, 12 Aug 2009 08:44:00 -0000 Subject: [Bug ada/41041] New: -fwide-exec-charset defaults to UCS-4/UCS-2, not UTF-32/UTF-16 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "samuel dot thibault at ens-lyon dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00999.txt.bz2 Hello, the manual page says `Set the wide execution character set, used for wide string and character constants. The default is UTF-32 or UTF-16, whichever corresponds to the width of "wchar_t".' This should read UCS-4 or UCS-2 instead. See attached program behavior when compiled without -fwide-exec-charset and with -fwide-exec-charset=UTF-32 , UTF-16, UCS-4 or UCS-2. Attached patch fixes it. Samuel -- Summary: -fwide-exec-charset defaults to UCS-4/UCS-2, not UTF- 32/UTF-16 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: samuel dot thibault at ens-lyon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41041