Closed Bug 136017 Opened 24 years ago Closed 24 years ago

Some characters in menus/dialogs/etc. are rendered incorrectly

Categories

(Core :: Internationalization: Localization, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: m.wawoczny, Assigned: shanjian)

Details

(Keywords: intl, regression, Whiteboard: [FIX IN HAND][need a=])

Attachments

(6 files)

Some characters in menus/dialogs/etc. are rendered incorrectly, see attached screenshot - on left build 20020405, on right 20020406 (incorectly rendered chars are marked with red dot). This is probably regression caused by: http://bugzilla.mozilla.org/show_bug.cgi?id=134733 http://bugzilla.mozilla.org/show_bug.cgi?id=86532 Mozilla/5.0 (Windows; U; Windows NT 5.0; pl-PL; rv:0.9.9+) Gecko/20020406
Keywords: intl
QA Contact: ruixu → ylong
marek: thank you very much for your screen attachment. It's really helpful. :) shanjian: I don't think it's a localization problem. (correct me I am wrong); but it looks more like a layout problem ( chars are touching the adjacent chars and char height are different. ) Any clues for recent changes in the tree?
this looks like a side-effect caused by bug 134733. I didn't expect truetype font looks so poorly. We could fix this problem by treating certain charset differently. But this reason might not be strong enough to back out my patch for that bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Seems that adding user_pref("font.default", "sans-serif"); to prefs.js in user profile fixes about 80-90% cases. Could this be nominated for 1.0?
Attached file Testcase
Adding keyword: patch regression Attaching patch, which fixes issues with Polish and Czech characters, also attaching screenshoot before and after applying patch.
Keywords: patch, regression
Marek, you might want to check argument "nsCharsetInfo* aSelf", only when aSelf->mCodePage indicate it is Polish or Czech, should we apply your patch.
shanjian, can you take over this?
Assignee: rchen → shanjian
so... only 4 characters have problem (and all in 0x80-0x9f range,right ?)
I am wrong- 9 chars.
Something like: if (aSelf->mCodePage == 1250) { mb[138] = 138; mb[140] = 140; mb[141] = 141; mb[142] = 142; mb[143] = 143; mb[154] = 154; mb[156] = 156; mb[158] = 158; mb[159] = 159; } But this is only for Windows-1250, I should also add ISO-8859-2, but I don't known mCodePage for it, anyone can help?
Btw. I don't know if only this 9 chars are wrong, we should check _all_ characters. I've already checked Polish, Czech and German - German chars were fine.
Yes, that's what we need. Don't worry about latin-2, it is not a window ACP code page. Just make sure win1250 works fine and we can check in your patch.
Status: NEW → ASSIGNED
Comment on attachment 82006 [details] [diff] [review] Updated patch which fixes issues with Polish and Czech characters r=shanjian
Attachment #82006 - Flags: review+
attinasi, could you sr?
Status Whiteboard:[FIX IN HAND][need sr=]
Whiteboard: [FIX IN HAND][need sr=]
chris, could you sr?
This really need to be in 1.0... Anyone can sr=?
chris, could you sr?
Comment on attachment 82006 [details] [diff] [review] Updated patch which fixes issues with Polish and Czech characters sr=waterson
Attachment #82006 - Flags: superreview+
Nominating for mozilla1.0.1, for 1.0 is too late (?)
Keywords: mozilla1.0.1
Whiteboard: [FIX IN HAND][need sr=] → [FIX IN HAND][need a=]
Check this into the trunk before getting 1.0.1 approval.
Anyone can check this into trunk, please?
I just checked it into trunk. Mark it as fixed. Add nsbeta1 to keyword for consideration of nsbeta1
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: nsbeta1
Resolution: --- → FIXED
Is this bug related only to certain Polish and Czech characters? I'm asking because there's a pretty same problem with one russian letter (#255 ASCII). At least on Windows as far as I can see.
A screenshot for my previous post.
If it is a problem, it should be a different one. Open a new bug and let's do some investigation.
Filed a new bug 148984. Thank you for assistance.
Attachment #82006 - Flags: approval+
"please land this on the 1.0.1 branch. once there remove the "mozilla1.0.1+" keyword, and add the "fixed1.0.1"
Shanjian Li: Could you check this into branch, please?
patch checked into branch.
Verified the test case in comment #5 is displayed fine with charset set to iso-8859-2 on 06-12 branch build on WinXP.
Status: RESOLVED → VERIFIED
Verified in 8-23 1.0.1 branch build.
Keywords: verified1.0.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: