Only strip zero-width joiner and non-joiner control characters when we do our own Arabic shaping. Bug 280936, r=jshin, sr=rbs

This commit is contained in:
smontagu@smontagu.org 2007-06-28 13:02:59 -07:00
parent ae93203d63
commit dae508598f

View File

@ -350,7 +350,9 @@ nsresult ArabicShaping(const PRUnichar* aString, PRUint32 aLen,
}
if(! done)
*lDest++ = *lSrc++;
}
} else if (0x200C == *lSrc || 0x200D == *lSrc)
// Strip zero-width joining controls ZWJ and ZWNJ from the shaped text
lSrc++;
else
*lDest++ = *lSrc++;