nevow.json serializes some line terminators such that Athena cannot deserialize them in the browser

Bug #805734 reported by Jean-Paul Calderone on 2011-07-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nevow
Fix Committed
Undecided
Unassigned

Bug Description

JSON encoded bytes may include literal (that is, UTF-8 encoded) U+2028 or U+2029. However, JavaScript string literals may not. See http://timelessrepo.com/json-isnt-a-javascript-subset for any more detail that may be interesting.

Athena's JavaScript parser (browser-side JavaScript eval) cannot parse these literals. If we emit escaped versions of the line terminators, the parser won't need to change.

Related branches

lp:~divmod-dev/divmod.org/nevow-json
Merged into lp:divmod.org at revision 2676
Tristan Seligmann: Approve on 2011-07-05
Changed in nevow:
status: New → In Progress
Changed in nevow:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers