You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/07/29 20:58:09 UTC

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

    [ 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