Hi all,
This email is following the last email I sent a few days ago about SIGSEGV occurring in a java CNI application compiled with gcj 4.1.2 on a PXA270 platform.
I have traced the place in the code causing the exception, and please the see below the concerning code:
if ( nReadBytes == 0 )
{
continue;
}
for (int i=0; i<nReadBytes; i++)
{
info.m_strRequest += (char)info.m_readBuff.get( i );
}
I have read in some places that using UTF16 can be problematic with CNI. I think that the char cast automatically uses UTF16 instead of UTF8.
Am I right? Is there a way to write this code without using the char cast?
Best Regards,
David Sayada.