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: [email protected]
For additional commands, e-mail: [email protected]