« Bugzilla Issues Index
#934 — 15.5.4.25 codePointAt algorithm problem/typo on step 11
- bug_id:
934
- creation_ts:
2012-11-06 11:59:00 -0800
- short_desc:
15.5.4.25 codePointAt algorithm problem/typo on step 11
- delta_ts:
2012-11-23 09:45:45 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 11: October 26, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Roger Andrews
- assigned_to:
Allen Wirfs-Brock
- commentid:
2428
- comment_count:
0
- who:
Roger Andrews
- bug_when:
2012-11-06 11:59:39 -0800
Step 11 says:
If second < 0xDC00 or first > 0xDFFF, then return first.
Shouldn't that be:
If second < 0xDC00 or second > 0xDFFF, then return first.
I.e. a bounds check on *second*.
N.b. (first > 0xDFFF) is always false, or the algorithm would have returned at step 9.
- commentid:
2545
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2012-11-22 12:33:37 -0800
corrected in rev 12 editor's draft
- commentid:
2661
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2012-11-23 09:45:45 -0800
corrected in rev 12, Nov. 22, 2012 draft