Closed Bug 293301 Opened 20 years ago Closed 20 years ago

since 20050430: [Mac] rendering of text in non-western encodings is broken

Categories

(Core Graveyard :: GFX, defect, P1)

PowerPC
macOS

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: asaf, Assigned: jshin1987)

References

()

Details

(Keywords: fonts, intl)

Attachments

(4 files)

Starting from 20050430, rendering of text in non-western encodings is broken.

My non-default font prefs are:
user_pref("font.default.x-western", "sans-serif");
user_pref("font.name.sans-serif.he", "Arial");
user_pref("font.name.sans-serif.x-western", "Arial");
user_pref("font.name.serif.x-western", "Lucida Grande");

(Note: I'm using the Windows version of Arial)
Attached image Screenshot 2
visual hebrew overlaps from
http://forums.ort.org.il/scripts/showm.asp?which_forum=307&back=
..that was from http://www.haayal.co.il/
regression area: http://tinyurl.com/exjrk

CCing per relevant checkins.
Flags: blocking1.8b3?
Flags: blocking1.8b2?
this might not be a mac only bug. I am on linux and found this site is also broken:
http://military.china.com/zh_cn/
and this link is reported by a windows user.
Looks like jshin's changes are the most likely culprit.
Assignee: general → jshin1987
Priority: -- → P1
(In reply to comment #7)
> Looks like jshin's changes are the most likely culprit.

Hmm. I've already considered that possibility, but I can't see how. Anyway, I'll
try to see if it's indeed the cause. 
I confirmed that it's my patch that caused the regression. Some missing entries
in the mapping between our langGroup and script code appears to result in the
regression.
Attached patch patchSplinter Review
thanks for catching the regression. 
asking for r/sr. sfraser, can you double as r/sr?

The regression was not due to what I added but due to what I forgot to add. I'm
adding them here.
Attachment #183011 - Flags: superreview?(sfraser_bugs)
Attachment #183011 - Flags: review?(sfraser_bugs)
(In reply to comment #6)
> this might not be a mac only bug. I am on linux and found this site is also
broken:
> http://military.china.com/zh_cn/
> and this link is reported by a windows user.

I don't see what's wrong with the site on Windows/Linux. Please, file a separate
bug with a screenshot or two.

Status: NEW → ASSIGNED
Comment on attachment 183011 [details] [diff] [review]
patch

r=mano
Attachment #183011 - Flags: review+
Attachment #183011 - Flags: superreview?(sfraser_bugs)
Attachment #183011 - Flags: superreview+
Attachment #183011 - Flags: review?(sfraser_bugs)
Attachment #183011 - Flags: review+
Comment on attachment 183011 [details] [diff] [review]
patch

asking for a to trunk

This patch fixes the regression on Mac OS X introduced on April 29 (bug
237434). It's for Mac OS X only so that it doesn't affect other platforms. In
my original patch for bug 237434, I forgot to add a couple of array elements so
that there's an index mismatch between two arrays, which apparently caused this
bug.
Attachment #183011 - Flags: approval1.8b2?
Attachment #183011 - Flags: approval-aviary1.1a1?
Comment on attachment 183011 [details] [diff] [review]
patch

a=as
Attachment #183011 - Flags: approval1.8b2?
Attachment #183011 - Flags: approval1.8b2+
Attachment #183011 - Flags: approval-aviary1.1a1?
Attachment #183011 - Flags: approval-aviary1.1a1+
Flags: blocking1.8b2? → blocking1.8b2-
thanks all. fix landed on the trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Flags: blocking1.8b3?
Target Milestone: --- → mozilla1.8beta2
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: