This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libgcj.spec




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]