This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Implementing Universal Character Names in identifiers
- From: Tom Tromey <tromey at redhat dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: "Martin v.Löwis" <loewis at informatik dot hu-berlin dot de>, gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: 31 Oct 2002 13:02:22 -0700
- Subject: Re: Implementing Universal Character Names in identifiers
- References: <200210280715.g9S7FdI2003815@paros.informatik.hu-berlin.de><20021028075111.GB1273@codesourcery.com><j4wuo39c6o.fsf@informatik.hu-berlin.de><20021028183910.GC24090@codesourcery.com>
- Reply-to: tromey at redhat dot com
>>>>> "Zack" == Zack Weinberg <zack@codesourcery.com> writes:
Zack> This all seems entirely reasonable, but please do communicate
Zack> with the Java folks about their requirements. I've added java@
Zack> to the cc list.
For Java there are two issues that I know of.
One is how non-ascii characters are mangled in symbol names. We have
something in place now, but I don't think we have a strong requirement
for a particular approach. If something else is preferred for C++, I
imagine we could change gcj for compatibility. Note that we don't yet
make ABI stability promises about gcj's output.
The second issue is that of representing Java method and variable
names in C++. We generate C++ header files from Java .class files,
and the user can make Java method calls, etc, from C++. So if a Java
method or field has a name containing a non-ascii character, we want
to be able to represent that compatibly in a C++ header.
I assume this is solved by emitting \u escapes in the .h file. I
haven't really looked into it. (We haven't ever seen a bug report for
this, so it has had a very low priority.)
Tom