This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: package delimiters in symbol names in JNI
>>>>> "Marcus" == Marcus G Daniels <mgd@swarm.org> writes:
Marcus> Here's another related patch to jni.cc. (To encode "$" in
Marcus> method names.)
I don't understand why this is needed. I think that `$' should
already be handled correctly by the "Unicode" case.
Ok, I think I see the problem. Can you back out that patch and try
this one instead? If it works for you I will check it in.
2001-03-30 Tom Tromey <tromey@redhat.com>
* jni.cc (add_char): Correctly encode non-ascii characters.
Tom
Index: jni.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni.cc,v
retrieving revision 1.36.4.2
diff -u -r1.36.4.2 jni.cc
--- jni.cc 2001/03/23 19:12:19 1.36.4.2
+++ jni.cc 2001/03/31 00:54:14
@@ -1633,7 +1631,7 @@
for (int i = 0; i < 4; ++i)
{
int val = c & 0x0f;
- buf[(*here) + 4 - i] = (val > 10) ? ('a' + val - 10) : ('0' + val);
+ buf[(*here) + 3 - i] = (val > 10) ? ('a' + val - 10) : ('0' + val);
c >>= 4;
}
*here += 4;