Closed Bug 231447 Opened 21 years ago Closed 21 years ago

space after charset name produce wrong charset detection

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aha, Assigned: smontagu)

References

Details

(Keywords: intl, testcase)

Attachments

(2 files, 1 obsolete file)

Space after charset name in example will lead Mozilla to detect wrong charset - Windows-1252 instead Windows-1250" <meta http-equiv="Content-Type" content="text/html ; charset=windows-1250 "> ^ If space is missing, everything is correct. Maybe we should trip charset name. Reproduced with 1.4.1/1.5/1.6 on Win2K
Attached file testcase
Attached patch patch (obsolete) — Splinter Review
patch. I removed tabs and made the parser skip the leading white spaces as well.
Comment on attachment 139411 [details] [diff] [review] patch asking for r/sr
Attachment #139411 - Flags: superreview?(bz-vacation)
Attachment #139411 - Flags: review?(smontagu)
It'll likely take me a bit (up to 2 weeks, maybe) to get to this.
*** Bug 200134 has been marked as a duplicate of this bug. ***
re: comment #5 I took a look at it, but it's not generic enough for our purpose here. I may modify it to be more generic, but that would increase the size of the inline function. So, I'd rather go with the patch. Simon and Boris, can you review?
Comment on attachment 139411 [details] [diff] [review] patch Does CharAt() handle indices past end-of-string reasonably?
Attachment #139411 - Flags: superreview?(bzbarsky)
Attachment #139411 - Flags: review?(smontagu)
Attached patch updated patchSplinter Review
CharAt() doesn't do a 'sensisble' thing for an out-of-bound index. I added a guard against it.
Attachment #139411 - Attachment is obsolete: true
Comment on attachment 140648 [details] [diff] [review] updated patch asking for r/sr
Attachment #140648 - Flags: superreview?(bzbarsky)
Attachment #140648 - Flags: review?(smontagu)
Comment on attachment 140648 [details] [diff] [review] updated patch sr=bzbarsky, but you may want to ask darin about pushing this quotes stuff down into the necko function....
Attachment #140648 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 140648 [details] [diff] [review] updated patch r=smontagu
Attachment #140648 - Flags: review?(smontagu) → review+
thanks for r/sr. fix landed. bz, I'm gonna write to darin about that.
Status: NEW → RESOLVED
Closed: 21 years ago
Keywords: intl
OS: Windows 2000 → All
Hardware: PC → All
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: