You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nacim Rahal (JIRA)" <ji...@apache.org> on 2011/07/27 18:50:10 UTC

[jira] [Created] (THRIFT-1245) C# JSON Protocol uses culture-dependant decimal separator for double

C# JSON Protocol uses culture-dependant decimal separator for double
--------------------------------------------------------------------

                 Key: THRIFT-1245
                 URL: https://issues.apache.org/jira/browse/THRIFT-1245
             Project: Thrift
          Issue Type: Bug
          Components: C# - Library
    Affects Versions: 0.6.1
         Environment: C#, Windows 7, VS2008
            Reporter: Nacim Rahal
         Attachments: thrift-1245.patch

C# JSON protocol uses the current culture to read and write doubles, so the decimal separator is not always a dot. For instance, if the the current culture is fr-FR, a comma is used as decimal separator thus resulting in invalid JSON.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1245) C# JSON Protocol uses culture-dependant decimal separator for double

Posted by "Nacim Rahal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nacim Rahal updated THRIFT-1245:
--------------------------------

    Patch Info: [Patch Available]

> C# JSON Protocol uses culture-dependant decimal separator for double
> --------------------------------------------------------------------
>
>                 Key: THRIFT-1245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1245
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>    Affects Versions: 0.6.1
>         Environment: C#, Windows 7, VS2008
>            Reporter: Nacim Rahal
>         Attachments: thrift-1245.patch
>
>
> C# JSON protocol uses the current culture to read and write doubles, so the decimal separator is not always a dot. For instance, if the the current culture is fr-FR, a comma is used as decimal separator thus resulting in invalid JSON.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (THRIFT-1245) C# JSON Protocol uses culture-dependant decimal separator for double

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1245.
---------------------------------

    Resolution: Fixed

Thanks Nacim, committed your patch!



> C# JSON Protocol uses culture-dependant decimal separator for double
> --------------------------------------------------------------------
>
>                 Key: THRIFT-1245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1245
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>    Affects Versions: 0.6.1
>         Environment: C#, Windows 7, VS2008
>            Reporter: Nacim Rahal
>         Attachments: thrift-1245.patch
>
>
> C# JSON protocol uses the current culture to read and write doubles, so the decimal separator is not always a dot. For instance, if the the current culture is fr-FR, a comma is used as decimal separator thus resulting in invalid JSON.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (THRIFT-1245) C# JSON Protocol uses culture-dependant decimal separator for double

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072974#comment-13072974 ] 

Hudson commented on THRIFT-1245:
--------------------------------

Integrated in Thrift #195 (See [https://builds.apache.org/job/Thrift/195/])
    THRIFT-1245 C# JSON Protocol uses culture-dependant decimal separator for double
Patch: Nacim Rahal

roger : http://svn.apache.org/viewvc/?view=rev&rev=1151959
Files : 
* /thrift/trunk/lib/csharp/src/Protocol/TJSONProtocol.cs


> C# JSON Protocol uses culture-dependant decimal separator for double
> --------------------------------------------------------------------
>
>                 Key: THRIFT-1245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1245
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>    Affects Versions: 0.6.1
>         Environment: C#, Windows 7, VS2008
>            Reporter: Nacim Rahal
>         Attachments: thrift-1245.patch
>
>
> C# JSON protocol uses the current culture to read and write doubles, so the decimal separator is not always a dot. For instance, if the the current culture is fr-FR, a comma is used as decimal separator thus resulting in invalid JSON.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1245) C# JSON Protocol uses culture-dependant decimal separator for double

Posted by "Nacim Rahal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nacim Rahal updated THRIFT-1245:
--------------------------------

    Attachment: thrift-1245.patch

> C# JSON Protocol uses culture-dependant decimal separator for double
> --------------------------------------------------------------------
>
>                 Key: THRIFT-1245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1245
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>    Affects Versions: 0.6.1
>         Environment: C#, Windows 7, VS2008
>            Reporter: Nacim Rahal
>         Attachments: thrift-1245.patch
>
>
> C# JSON protocol uses the current culture to read and write doubles, so the decimal separator is not always a dot. For instance, if the the current culture is fr-FR, a comma is used as decimal separator thus resulting in invalid JSON.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira