[jira] [Commented] (XERCESC-1959) serializeGrammars does not work between 32 and 64 bit systems

2011-03-25 Thread Lee Doron (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011556#comment-13011556
 ] 

Lee Doron commented on XERCESC-1959:


The new format could include info on the writer's endianness and 32- vs. 
64-bitness. The reader would check whether they match its native parameters -- 
if so, then it can read with no penalty in speed (and no unnecessary memory 
usage, if both are 32-bit machines). If not, then it would have to translate, 
for a slight speed penalty.

> serializeGrammars does not work between 32 and 64 bit systems
> -
>
> Key: XERCESC-1959
> URL: https://issues.apache.org/jira/browse/XERCESC-1959
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Validating Parser (XML Schema)
>Affects Versions: 3.1.1
> Environment: Win Vista 32 bit + VS 2010 express, Xerces-C 3.1.1 binary
> Ubuntu 10.10 64 bit, Xerces-C 3.1 installed
>Reporter: Daniel Turcanu
>
> Serialization of schema grammar does not work between Windows 32 and Linux 64 
> bit. Serializing on one machine (with serializeGrammars) and deserializing on 
> the other (with deserializeGrammars) fails ungracefully.
> Serializing and deserializing on the same machine works fine.

--
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-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] Commented: (XERCESC-1959) serializeGrammars does not work between 32 and 64 bit systems

2011-03-05 Thread Boris Kolpackov (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002969#comment-13002969
 ] 

Boris Kolpackov commented on XERCESC-1959:
--

Daniel, I agree the current implementation is not ideal so if you would like to 
come up with a patch, then that would be very welcome.

David, regarding backwards compatibility, there is a format version number 
stored with the binary representation. Now, the problem is that the version 
itself is stored in a non-portable manner. Luckily it is always 32-bit 
(unsigned int) so we can write 0x there for the new format which will 
make sure that any previous version (regardless of the endianness) will not 
compare equal.


> serializeGrammars does not work between 32 and 64 bit systems
> -
>
> Key: XERCESC-1959
> URL: https://issues.apache.org/jira/browse/XERCESC-1959
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Validating Parser (XML Schema)
>Affects Versions: 3.1.1
> Environment: Win Vista 32 bit + VS 2010 express, Xerces-C 3.1.1 binary
> Ubuntu 10.10 64 bit, Xerces-C 3.1 installed
>Reporter: Daniel Turcanu
>
> Serialization of schema grammar does not work between Windows 32 and Linux 64 
> bit. Serializing on one machine (with serializeGrammars) and deserializing on 
> the other (with deserializeGrammars) fails ungracefully.
> Serializing and deserializing on the same machine works fine.

-- 
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-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] Commented: (XERCESC-1959) serializeGrammars does not work between 32 and 64 bit systems

2011-02-24 Thread David Bertoni (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999009#comment-12999009
 ] 

David Bertoni commented on XERCESC-1959:


Xerces-C serializes numbers into the stream that indicates things like string 
length, so it will still need to deal with endianness.

It's possible for this to be changed in a future, but we would then break 
compatibility with grammars that were serialized by previous releases, 

> serializeGrammars does not work between 32 and 64 bit systems
> -
>
> Key: XERCESC-1959
> URL: https://issues.apache.org/jira/browse/XERCESC-1959
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Validating Parser (XML Schema)
>Affects Versions: 3.1.1
> Environment: Win Vista 32 bit + VS 2010 express, Xerces-C 3.1.1 binary
> Ubuntu 10.10 64 bit, Xerces-C 3.1 installed
>Reporter: Daniel Turcanu
>
> Serialization of schema grammar does not work between Windows 32 and Linux 64 
> bit. Serializing on one machine (with serializeGrammars) and deserializing on 
> the other (with deserializeGrammars) fails ungracefully.
> Serializing and deserializing on the same machine works fine.

-- 
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-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] Commented: (XERCESC-1959) serializeGrammars does not work between 32 and 64 bit systems

2011-02-24 Thread Daniel Turcanu (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998783#comment-12998783
 ] 

Daniel Turcanu commented on XERCESC-1959:
-

We work on Zorba XQuery engine (http://www.zorba-xquery.com), and we 
implemented a way to serialize the precompiled xquery code, so that the user 
doesn't have to compile his code every time. For serialization of schemas we 
use Xerces's internal serialization.
A user found this problem between 32 and 64 bit. Zorba can deal with this, 
because we serialize numbers as strings, so there is no problem with 32/64 or 
the endianess. If Xerces cannot solve this, then we will also have to limit 
machine interoperability.

> serializeGrammars does not work between 32 and 64 bit systems
> -
>
> Key: XERCESC-1959
> URL: https://issues.apache.org/jira/browse/XERCESC-1959
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Validating Parser (XML Schema)
>Affects Versions: 3.1.1
> Environment: Win Vista 32 bit + VS 2010 express, Xerces-C 3.1.1 binary
> Ubuntu 10.10 64 bit, Xerces-C 3.1 installed
>Reporter: Daniel Turcanu
>
> Serialization of schema grammar does not work between Windows 32 and Linux 64 
> bit. Serializing on one machine (with serializeGrammars) and deserializing on 
> the other (with deserializeGrammars) fails ungracefully.
> Serializing and deserializing on the same machine works fine.

-- 
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-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] Commented: (XERCESC-1959) serializeGrammars does not work between 32 and 64 bit systems

2011-02-23 Thread David Bertoni (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998651#comment-12998651
 ] 

David Bertoni commented on XERCESC-1959:


The serialization of grammars was never designed to be portable across 
machines. There are issues with 32-bit and 64-bit builds and big-endian and 
little-endian machines. For example:

void XSerializeEngine::writeString(const XMLCh* const toWrite
 , const XMLSize_tbufferLen
 , bool   toWriteBufLen)
{
if (toWrite)
{
if (toWriteBufLen)
*this<<(unsigned long)bufferLen;

XMLSize_t strLen = XMLString::stringLen(toWrite);
*this<<(unsigned long)strLen;

write(toWrite, strLen);
}
else
{
*this< serializeGrammars does not work between 32 and 64 bit systems
> -
>
> Key: XERCESC-1959
> URL: https://issues.apache.org/jira/browse/XERCESC-1959
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Validating Parser (XML Schema)
>Affects Versions: 3.1.1
> Environment: Win Vista 32 bit + VS 2010 express, Xerces-C 3.1.1 binary
> Ubuntu 10.10 64 bit, Xerces-C 3.1 installed
>Reporter: Daniel Turcanu
>
> Serialization of schema grammar does not work between Windows 32 and Linux 64 
> bit. Serializing on one machine (with serializeGrammars) and deserializing on 
> the other (with deserializeGrammars) fails ungracefully.
> Serializing and deserializing on the same machine works fine.

-- 
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-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org