Closed
Bug 439458
Opened 17 years ago
Closed 17 years ago
Surrogate pairs are mangled by String.Replace
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
flash10
People
(Reporter: cpeyer, Assigned: wsharp)
Details
Attachments
(1 obsolete file)
Transferred from player db: #231409, Watson #1822023
PROBLEM:
Surrogate pairs are mangled by String.Replace
METHOD:
var text:String = String.fromCharCode(0xD840, 0xDC0B);
var dblSpacePattern:RegExp = /[\s]{2,}/g;
var strippedText:String = text.replace(dblSpacePattern, " ");
RESULT:
strippedText has 4 character codes (0xf0, 0xa0, 0x80, 0x8b).
EXPECTED:
strippedText == text
| Assignee | ||
Comment 1•17 years ago
|
||
Fixed in the player codebase. Change 427276.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 2•16 years ago
|
||
verified testcase passes in tamarin-redux and fails in old FL9 version of the shell
Comment 3•16 years ago
|
||
Comment on attachment 404800 [details] [diff] [review]
testcase
testcase pushed 2697:8a5a2767f1f6
Attachment #404800 -
Attachment is obsolete: true
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•