Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1698

cant serialize json with characters >127 when compiling with signed char

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.7.7
    • None
    • c++
    • None
    • windows, linux w signed char

    Description

      iscntrl assumes 0-255 but signed char gets expanded to bad things

      pullreq #38 on github solves the issue.

      change line 196 lang/c++/impl/json/JsonIO.hh
      from
      if (! iscntrl(*p)) {
      to
      if (! iscntrl((uint8_t) *p)) {

      Attachments

        1. AVRO-1698.1.patch
          0.8 kB
          Sean Busbey

        Issue Links

          Activity

            People

              Unassigned Unassigned
              svante.karlsson svante karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: