Closed
Bug 231447
Opened 21 years ago
Closed 21 years ago
space after charset name produce wrong charset detection
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
People
(Reporter: aha, Assigned: smontagu)
References
Details
(Keywords: intl, testcase)
Attachments
(2 files, 1 obsolete file)
|
6.68 KB,
text/html
|
Details | |
|
2.36 KB,
patch
|
smontagu
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
patch.
I removed tabs and made the parser skip the leading white spaces as well.
Comment 3•21 years ago
|
||
Comment on attachment 139411 [details] [diff] [review]
patch
asking for r/sr
Attachment #139411 -
Flags: superreview?(bz-vacation)
Attachment #139411 -
Flags: review?(smontagu)
Comment 4•21 years ago
|
||
It'll likely take me a bit (up to 2 weeks, maybe) to get to this.
Comment 5•21 years ago
|
||
couldn't this use NS_ParseContentType?
http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsNetUtil.h#669
| Assignee | ||
Comment 6•21 years ago
|
||
*** Bug 200134 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
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 8•21 years ago
|
||
Comment on attachment 139411 [details] [diff] [review]
patch
Does CharAt() handle indices past end-of-string reasonably?
Updated•21 years ago
|
Attachment #139411 -
Flags: superreview?(bzbarsky)
Attachment #139411 -
Flags: review?(smontagu)
Comment 9•21 years ago
|
||
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 10•21 years ago
|
||
Comment on attachment 140648 [details] [diff] [review]
updated patch
asking for r/sr
Attachment #140648 -
Flags: superreview?(bzbarsky)
Attachment #140648 -
Flags: review?(smontagu)
Comment 11•21 years ago
|
||
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+
| Assignee | ||
Comment 12•21 years ago
|
||
Comment on attachment 140648 [details] [diff] [review]
updated patch
r=smontagu
Attachment #140648 -
Flags: review?(smontagu) → review+
Comment 13•21 years ago
|
||
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.
Description
•