Ignore:
Timestamp:
Nov 22, 2010, 3:55:22 PM (9 years ago)
Author:
ksherdy
Message:

Add TODO notes to handle Unicode escape sequences and UTF-8 validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_prototype.py

    r715 r717  
    1313#
    1414#----------------------------------------------------------------------------
     15#
     16# TODO
     17#
     18# - Conditionally validate JSON text as valid UTF 8, (if bit0)     
     19# - Conditionally validate JSON Unicode \u4HEXDIG and \u4HEXDIG\u4HEXDIG character escape sequences, if \u escape sequence.
     20#
     21#
    1522#
    1623
     
    472479        # (2.1) StringMask construction ensures all '"' are escaped.
    473480        # (2.2) '\' are either correctly escaped or the character following an odd length run is escaped.
    474         # (2.3) validate_utf8(u8) ensures valid UTF8 encodings in the code point range U+0000 - U+01FFFF. TODO - Validate this final large.
    475481
    476482        StringNotEscapedChars = (~(EscapeChars | Lex.RSolidus)) & StringMask # TODO - Verify logic.
Note: See TracChangeset for help on using the changeset viewer.