package delimiters in symbol names in JNI
Tom Tromey
tromey@redhat.com
Fri Mar 30 16:55:00 GMT 2001
>>>>> "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;
More information about the Java
mailing list