#60823 UnicodeToGBK and UnicodeToGB2312 converter don't work on SPARC Solaris

r = nhotta, sr=erik
the original code does not work with big-endian system.
This commit is contained in:
shanjian%netscape.com 2000-12-09 01:45:36 +00:00
parent e769c1df54
commit 0915566e47
2 changed files with 2 additions and 4 deletions

View File

@ -118,8 +118,7 @@ NS_IMETHODIMP nsUnicodeToGB2312V2::ConvertNoBuff(const PRUnichar * aSrc,
else
{
// this is an ASCII
pSrcDBCode = (DByte *)pSrc;
*aDest = pSrcDBCode->leftbyte;
*aDest = (char)*pSrc;
aDest++; // increment 1 byte
iDestLength +=1;
}

View File

@ -131,8 +131,7 @@ NS_IMETHODIMP nsUnicodeToGBK::ConvertNoBuff(const PRUnichar * aSrc,
else
{
// this is an ASCII
pSrcDBCode = (DByte *)pSrc;
*aDest = pSrcDBCode->leftbyte;
*aDest = (char)*pSrc;
aDest++; // increment 1 byte
iDestLength +=1;
}