This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/20974] ACATS c250002 gnatchop cannot create file with special character on darwin
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2005 18:17:20 -0000
- Subject: [Bug ada/20974] ACATS c250002 gnatchop cannot create file with special character on darwin
- References: <20050412174909.20974.laurent@guerby.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From laurent at guerby dot net 2005-04-12 18:17 -------
Looks like file creation (my code reading ada/gnatchop.adb => ada/g-os_lib.adb
=>) for gnatchop occurs in ada/adaint.c:636 with good old "open".
But the unit file names are found by using a subprocess with the following
command line:
gcc -c -x ada -gnats -gnatu file_to_gnatchop
which outputs something like:
Unit T (body) line 1, file offset 0, file name t.adb
So may be there's a mismatch between the character set used by GNAT to output
the unit name and the character set to use for the "open" call.
Could you create a simple file like the following
package toto_éà is end;
and run it through the above command and "| od -c" or something like that?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20974