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

Fix charp JSONProtocol.ReadJSONDouble (specify InvariantCulture)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • C# - Library
    • None
    • windows 7 (localized with russian language pack)

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: