You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "nadir amra (JIRA)" <ax...@ws.apache.org> on 2011/05/17 00:23:47 UTC

[jira] [Closed] (AXISCPP-1079) Locale-sensitive functions result in incorrect data being generated

     [ https://issues.apache.org/jira/browse/AXISCPP-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra closed AXISCPP-1079.
-------------------------------

       Resolution: Fixed
    Fix Version/s: current (nightly)

Fixed in SVN http://svn.apache.org/viewvc?view=revision&revision=1103926

basically created a define PLATFORM_PROCESS_DECIMAL_POINT_C that is the process decimal point. 

In float, decimal, and double XSD code it checks to see if period is decimal point...if it is, normal processing.  If not, during serialization the decimal point for locale will be changed to a period.  During deserialization, the decimal point in character string will be changed to decimal point for locale.

This was only done for IBM i but the infrastructure is there to extend other platforms if need be.

> Locale-sensitive functions result in incorrect data being generated
> -------------------------------------------------------------------
>
>                 Key: AXISCPP-1079
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1079
>             Project: Axis-C++
>          Issue Type: Bug
>            Reporter: nadir amra
>             Fix For: current (nightly)
>
>
> On IBM i, strtod() is locale-sensitive.  So when user is running in process that has a french locale, the deserialization of a number like 83.23 results in the '.23' not being processed since the decimal character in french locale is the comma.
> I am not sure about other platforms...so I will enable the support for IBM i.  However, it should be easy to enable the code for other platforms.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org