Show
Ignore:
Timestamp:
06/25/09 16:06:29 (5 years ago)
Author:
robert
Message:

From Mathias Froehlich, changes from atof to use osg::asciiToFloat() to avoid locale issues with atof

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osg/ArgumentParser.cpp

    r9145 r10413  
    1717#include <osg/ArgumentParser> 
    1818#include <osg/ApplicationUsage> 
     19#include <osg/Math> 
    1920#include <osg/Notify> 
    2021 
     
    164165            break; 
    165166        } 
    166         case Parameter::FLOAT_PARAMETER:        *_value._float = atof(str); break; 
    167         case Parameter::DOUBLE_PARAMETER:       *_value._double = atof(str); break; 
     167        case Parameter::FLOAT_PARAMETER:        *_value._float = osg::asciiToFloat(str); break; 
     168        case Parameter::DOUBLE_PARAMETER:       *_value._double = osg::asciiToDouble(str); break; 
    168169        case Parameter::INT_PARAMETER:          *_value._int = atoi(str); break; 
    169170        case Parameter::UNSIGNED_INT_PARAMETER: *_value._uint = atoi(str); break;