libgcj.spec

Jeff Sturm jsturm@one-point.com
Mon Mar 26 11:56:00 GMT 2001


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




More information about the Java mailing list