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 "Ivan Pechorin (JIRA)" <ax...@ws.apache.org> on 2010/11/01 10:23:24 UTC
[jira] Created: (AXISCPP-1075) date_time serialize may use invalid
separator for milliseconds
date_time serialize may use invalid separator for milliseconds
--------------------------------------------------------------
Key: AXISCPP-1075
URL: https://issues.apache.org/jira/browse/AXISCPP-1075
Project: Axis-C++
Issue Type: Bug
Components: Serialization
Affects Versions: current (nightly)
Environment: OS: Windows 7, Windows Server 2003,
Compiler: Visual Studio 2010 (VC10)
32-bit build
Reporter: Ivan Pechorin
Priority: Minor
Axis2/C date/time serialization routines in util/src/date_time.c use sprintf. This may lead to comma used as separator between seconds and milliseconds, due to locale settings. I'm not sure if sprintf is locale-dependent on Windows only, or this behavior also exists on other platforms.
The standard mandates use of dot (".") as separator, comma is not allowed.
Affected routines:
- axutil_date_time_serialize_time
- axutil_date_time_serialize_time_with_time_zone
- axutil_date_time_serialize_date_time
- axutil_date_time_serialize_date_time_with_time_zone
I believe, serialize should provide valid (as per standard) output, no matter which separator is specified in locale.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] Updated: (AXISCPP-1075) date_time serialize may use invalid
separator for milliseconds
Posted by "Ivan Pechorin (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Pechorin updated AXISCPP-1075:
-----------------------------------
Attachment: axutil_date_time_millis_separator.patch
Here is a patch to fix the problem.
> date_time serialize may use invalid separator for milliseconds
> --------------------------------------------------------------
>
> Key: AXISCPP-1075
> URL: https://issues.apache.org/jira/browse/AXISCPP-1075
> Project: Axis-C++
> Issue Type: Bug
> Components: Serialization
> Affects Versions: current (nightly)
> Environment: OS: Windows 7, Windows Server 2003,
> Compiler: Visual Studio 2010 (VC10)
> 32-bit build
> Reporter: Ivan Pechorin
> Priority: Minor
> Attachments: axutil_date_time_millis_separator.patch
>
>
> Axis2/C date/time serialization routines in util/src/date_time.c use sprintf. This may lead to comma used as separator between seconds and milliseconds, due to locale settings. I'm not sure if sprintf is locale-dependent on Windows only, or this behavior also exists on other platforms.
> The standard mandates use of dot (".") as separator, comma is not allowed.
> Affected routines:
> - axutil_date_time_serialize_time
> - axutil_date_time_serialize_time_with_time_zone
> - axutil_date_time_serialize_date_time
> - axutil_date_time_serialize_date_time_with_time_zone
> I believe, serialize should provide valid (as per standard) output, no matter which separator is specified in locale.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] Commented: (AXISCPP-1075) date_time serialize may use
invalid separator for milliseconds
Posted by "Ivan Pechorin (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927773#action_12927773 ]
Ivan Pechorin commented on AXISCPP-1075:
----------------------------------------
Oh, sorry. Thanks a lot.
I recreated JIRA in project AXIS2C : https://issues.apache.org/jira/browse/AXIS2C-1500
> date_time serialize may use invalid separator for milliseconds
> --------------------------------------------------------------
>
> Key: AXISCPP-1075
> URL: https://issues.apache.org/jira/browse/AXISCPP-1075
> Project: Axis-C++
> Issue Type: Bug
> Components: Serialization
> Affects Versions: current (nightly)
> Environment: OS: Windows 7, Windows Server 2003,
> Compiler: Visual Studio 2010 (VC10)
> 32-bit build
> Reporter: Ivan Pechorin
> Priority: Minor
> Attachments: axutil_date_time_millis_separator.patch
>
>
> Axis2/C date/time serialization routines in util/src/date_time.c use sprintf. This may lead to comma used as separator between seconds and milliseconds, due to locale settings. I'm not sure if sprintf is locale-dependent on Windows only, or this behavior also exists on other platforms.
> The standard mandates use of dot (".") as separator, comma is not allowed.
> Affected routines:
> - axutil_date_time_serialize_time
> - axutil_date_time_serialize_time_with_time_zone
> - axutil_date_time_serialize_date_time
> - axutil_date_time_serialize_date_time_with_time_zone
> I believe, serialize should provide valid (as per standard) output, no matter which separator is specified in locale.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] Commented: (AXISCPP-1075) date_time serialize may use
invalid separator for milliseconds
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927669#action_12927669 ]
nadir amra commented on AXISCPP-1075:
-------------------------------------
Ivan, I think you created a JIRA in the wrong place (although Axis C++ probably has the same problem so you can leave this here). But you need to recreate JIRA in https://issues.apache.org/jira/browse/AXIS2C
> date_time serialize may use invalid separator for milliseconds
> --------------------------------------------------------------
>
> Key: AXISCPP-1075
> URL: https://issues.apache.org/jira/browse/AXISCPP-1075
> Project: Axis-C++
> Issue Type: Bug
> Components: Serialization
> Affects Versions: current (nightly)
> Environment: OS: Windows 7, Windows Server 2003,
> Compiler: Visual Studio 2010 (VC10)
> 32-bit build
> Reporter: Ivan Pechorin
> Priority: Minor
> Attachments: axutil_date_time_millis_separator.patch
>
>
> Axis2/C date/time serialization routines in util/src/date_time.c use sprintf. This may lead to comma used as separator between seconds and milliseconds, due to locale settings. I'm not sure if sprintf is locale-dependent on Windows only, or this behavior also exists on other platforms.
> The standard mandates use of dot (".") as separator, comma is not allowed.
> Affected routines:
> - axutil_date_time_serialize_time
> - axutil_date_time_serialize_time_with_time_zone
> - axutil_date_time_serialize_date_time
> - axutil_date_time_serialize_date_time_with_time_zone
> I believe, serialize should provide valid (as per standard) output, no matter which separator is specified in locale.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org
[jira] Commented: (AXISCPP-1075) date_time serialize may use
invalid separator for milliseconds
Posted by "Ivan Pechorin (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926864#action_12926864 ]
Ivan Pechorin commented on AXISCPP-1075:
----------------------------------------
Reference to standard: http://www.w3.org/TR/xmlschema-2/#dateTime
> date_time serialize may use invalid separator for milliseconds
> --------------------------------------------------------------
>
> Key: AXISCPP-1075
> URL: https://issues.apache.org/jira/browse/AXISCPP-1075
> Project: Axis-C++
> Issue Type: Bug
> Components: Serialization
> Affects Versions: current (nightly)
> Environment: OS: Windows 7, Windows Server 2003,
> Compiler: Visual Studio 2010 (VC10)
> 32-bit build
> Reporter: Ivan Pechorin
> Priority: Minor
> Attachments: axutil_date_time_millis_separator.patch
>
>
> Axis2/C date/time serialization routines in util/src/date_time.c use sprintf. This may lead to comma used as separator between seconds and milliseconds, due to locale settings. I'm not sure if sprintf is locale-dependent on Windows only, or this behavior also exists on other platforms.
> The standard mandates use of dot (".") as separator, comma is not allowed.
> Affected routines:
> - axutil_date_time_serialize_time
> - axutil_date_time_serialize_time_with_time_zone
> - axutil_date_time_serialize_date_time
> - axutil_date_time_serialize_date_time_with_time_zone
> I believe, serialize should provide valid (as per standard) output, no matter which separator is specified in locale.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org