This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj.spec
- To: Rajesh Kadikar <rajeshk at nortelnetworks dot com>
- Subject: Re: libgcj.spec
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Mon, 26 Mar 2001 15:15:28 -0500 (EST)
- cc: java at gcc dot gnu dot org
On Mon, 26 Mar 2001, Rajesh Kadikar wrote:
> char *cstring = (char *) JvGetStringChars(sam->javaString);
You can't do that. jchar and char are incompatible types: the
former is Unicode (UCS-2).
Use JvGetStringUTFRegion instead. Note that you must allocate storage for
the (char *) argument and supply a null terminator.
Jeff