Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2268

JSON load incorrect with UNICODE input

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.0
    • Affects Version/s: WT2.6.1
    • Component/s: None
    • None

      Modified test_jsondump02.py to insert a value '\xff\xfe'. It is output as "\\u00FF
      u00FE"
      , and the test attempts to reload it. First, the upper case hex is not accepted on input. If the input is changed to lower case, the value is mangled, appears to be: '\xc3\xbfu00fe'. That is two (incorrect) binary characters, followed by the string 'u00fe', rather than expected '\xff\xfe'.

      Clearly we need better tests (and associated fixes). Related to WT-2235.

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: