From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1663 invoked by alias); 28 Apr 2009 14:06:55 -0000 Received: (qmail 32237 invoked by uid 48); 28 Apr 2009 14:06:35 -0000 Date: Tue, 28 Apr 2009 14:06:00 -0000 Subject: [Bug ada/39944] New: Incorrect expected file name encoding X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sam at gcc dot gnu 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-04/txt/msg02709.txt.bz2 Although GNAT supports UTF-8 characters in identifiers, it looks for the wrong file name by default. For example, the following code procedure Désolé is begin null; end Désolé; stored in désolé.adb (with a filesystem storing file names in UTF-8) gives, when compiled with a recent development version: % gcc -c -gnatW8 -gnati8 -gnatv désolé.adb GNAT 4.5.0 20090423 (experimental) Copyright 1992-2009, Free Software Foundation, Inc. Compiling: désolé.adb (source file time stamp: 2009-04-28 13:52:35) 1. procedure Désolé is | >>> warning: file name does not match unit name, should be "d£sol£.adb" 4 lines: No errors, 1 warning -- Summary: Incorrect expected file name encoding Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sam at gcc dot gnu dot org GCC host triplet: i386-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39944