Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2191

Fix charp JSONProtocol.ReadJSONDouble (specify InvariantCulture)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: C# - Library
    • Labels:
      None
    • Environment:

      windows 7 (localized with russian language pack)

    • Patch Info:
      Patch Available

      Description

      I caught error on serialization from application working under localized (Russian) Windows. Cause Double.Parse wait a system decimal separator. I fixed JSONProtocol.ReadJSONDouble method, made Double.Parse call with explicit specify InvariantCulture in second parameter.

      I think my little fix is pretty clear for you. But if it's not, I would be glad to explain more details.

      Sincerely, Alexander Makarov.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              makarov-alex Alexander Makarov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: