#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.


git-svn-id: svn://10.0.0.236/trunk@83425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shanjian%netscape.com
2000-12-09 01:45:36 +00:00
parent 9bb1174fda
commit 6457372fd7
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;
}