Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Clojure 1.2 and 1.3, Mac OS X, Java 1.6
-
Patch:Code and Test
Description
[This ticket filed as a follow on from pull request 2 at github]
One of my users decided to start sending Emoji happy faces over a network protocol encoded using data.json, which caused it to promptly roll over and die. It turned out that write-json-string, while aware of the code point vs. character issue, was still iterating over a character count not a code point count.
I have demonstrated the problem in a test, and fixed this: will file a patch when my contributor agreement is in place.
Attachments
Activity
Matthew Phillips
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | fix_unicode_non_bmp.patch [ 10759 ] |
Andy Fingerhut
made changes -
| Attachment | fix_unicode_non_bmp_2.patch [ 10771 ] |
Andy Fingerhut
made changes -
| Attachment | fix_unicode_non_bmp_3.patch [ 10775 ] |
Andy Fingerhut
made changes -
| Patch | Code and Test [ 10002 ] |
Andy Fingerhut
made changes -
| Attachment | djson-3-non-bmp-chars-patch.txt [ 10934 ] |
Stuart Sierra
made changes -
| Assignee | Stuart Sierra [ stuart.sierra ] |
Stuart Sierra
made changes -
| Resolution | Completed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
Patch to fix
DJSON-3.DJSON-3.