#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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user