зеркало из https://github.com/mozilla/gecko-dev.git
#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:
Родитель
e769c1df54
Коммит
0915566e47
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче