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

Reported by Jean-Paul Calderone on 2011-07-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nevow
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.

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