Fixed the problem of reading XML files on MacOS. 'errno' was not reseted
even the 'strtol' function produced a good value. So, now it is erased
forcibly before the call.
case LDOM_AsciiDocClear:
case LDOM_AsciiHashed:
{
+ errno = 0;
long aLongOther = strtol ((const char *) anOther.myVal.ptr, NULL, 10);
return (errno == 0 && aLongOther == long(myVal.i));
}
{
case LDOM_Integer:
{
+ errno = 0;
long aLong = strtol ((const char *) myVal.ptr, NULL, 10);
return (errno == 0 && aLong == long(anOther.myVal.i));
}
buf[1] = ptr[1];
buf[2] = ptr[2];
buf[3] = ptr[3];
+ errno = 0;
aResult[j++] = Standard_ExtCharacter (strtol (&buf[0], NULL, 16));
if (errno) {
delete [] aResult;
case LDOM_AsciiHashed:
{
char * ptr;
+ errno = 0;
long aValue = strtol ((const char *)myVal.ptr, &ptr, 10);
if (ptr == myVal.ptr || errno == ERANGE || errno == EINVAL)
return Standard_False;
_osd_wnt_set_error (myError, OSD_WDirectory);
}
#else
+ errno = 0;
TCollection_AsciiString aBuffer;
mode_t anInternalProt = (mode_t )theProtect.Internal();
myPath.SystemName (aBuffer);