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

JSON load incorrect with UNICODE input

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT2.6.1
    • Fix Version/s: WT2.9.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: