public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/39944]  New: Incorrect expected file name encoding
@ 2009-04-28 14:06 sam at gcc dot gnu dot org
  2009-09-24 21:32 ` [Bug ada/39944] " pini at tuxfamily dot org
  2009-10-02 21:04 ` sam at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: sam at gcc dot gnu dot org @ 2009-04-28 14:06 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/39944] Incorrect expected file name encoding
  2009-04-28 14:06 [Bug ada/39944] New: Incorrect expected file name encoding sam at gcc dot gnu dot org
@ 2009-09-24 21:32 ` pini at tuxfamily dot org
  2009-10-02 21:04 ` sam at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pini at tuxfamily dot org @ 2009-09-24 21:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pini at tuxfamily dot org  2009-09-24 21:32 -------
Flag "-gnati8" doesn't mean "utf-8 identifiers" but "IBM PC letters (code page
850) identifiers", as stated in
http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Character-Set-Control.html.

Use "-gnatiw -gnatW8" for utf-8 identifiers. 


-- 

pini at tuxfamily dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pini at tuxfamily dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39944


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug ada/39944] Incorrect expected file name encoding
  2009-04-28 14:06 [Bug ada/39944] New: Incorrect expected file name encoding sam at gcc dot gnu dot org
  2009-09-24 21:32 ` [Bug ada/39944] " pini at tuxfamily dot org
@ 2009-10-02 21:04 ` sam at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: sam at gcc dot gnu dot org @ 2009-10-02 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sam at gcc dot gnu dot org  2009-10-02 21:04 -------
Indeed. Closing as invalid, thanks Pierre-Nicolas.


-- 

sam at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39944


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-02 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 14:06 [Bug ada/39944] New: Incorrect expected file name encoding sam at gcc dot gnu dot org
2009-09-24 21:32 ` [Bug ada/39944] " pini at tuxfamily dot org
2009-10-02 21:04 ` sam at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).