bug 57462; r=buster; sr=waterson; need to set "HasMultibyte" flag in

nsTextTransformer when we convert 0x5C to Yen Sign and Won Sign because
those chars are greater than 127; this fixes the problem where the Yen Sign
was not being displayed properly on Win95/98/ME because we have the 8-bit
rendering hint set on those platforms (see nsTextFrame's PaintAsciiText,
etc)


git-svn-id: svn://10.0.0.236/trunk@82109 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
erik%netscape.com 2000-10-31 22:06:59 +00:00
parent 8891bd6170
commit 3b3367c95a
2 changed files with 6 additions and 0 deletions

View File

@ -699,6 +699,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
for (PRInt32 i = 0; i < aLen; i++) {
if (aText[i] == 0x5C) { // BACKSLASH
aText[i] = 0xA5; // YEN SIGN
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
#if 0
@ -708,6 +709,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
*/
else if (aText[i] == 0x7E) { // TILDE
aText[i] = 0x203E; // OVERLINE
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
#endif
@ -718,6 +720,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
for (PRInt32 i = 0; i < aLen; i++) {
if (aText[i] == 0x5C) { // BACKSLASH
aText[i] = 0x20A9; // WON SIGN
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
}

View File

@ -699,6 +699,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
for (PRInt32 i = 0; i < aLen; i++) {
if (aText[i] == 0x5C) { // BACKSLASH
aText[i] = 0xA5; // YEN SIGN
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
#if 0
@ -708,6 +709,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
*/
else if (aText[i] == 0x7E) { // TILDE
aText[i] = 0x203E; // OVERLINE
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
#endif
@ -718,6 +720,7 @@ nsTextTransformer::LanguageSpecificTransform(PRUnichar* aText, PRInt32 aLen,
for (PRInt32 i = 0; i < aLen; i++) {
if (aText[i] == 0x5C) { // BACKSLASH
aText[i] = 0x20A9; // WON SIGN
SetHasMultibyte(PR_TRUE);
*aWasTransformed = PR_TRUE;
}
}