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)

x86
macOS
defect

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
Priority: -- → P2
Target Milestone: --- → flash10
Assignee: nobody → wsharp
Fixed in the player codebase. Change 427276.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attached patch testcase (obsolete) — Splinter Review
verified testcase passes in tamarin-redux and fails in old FL9 version of the shell
Comment on attachment 404800 [details] [diff] [review] testcase testcase pushed 2697:8a5a2767f1f6
Attachment #404800 - Attachment is obsolete: true
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: