This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/20974] ACATS c250002 gnatchop cannot create file with special character on darwin


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]