Hi Dominik,

I've done the foolowing patch inside PdfTokenizer.cpp. It works for me but I 
haven't done a lot of tests:

EPdfDataType PdfTokenizer::DetermineDataType...

...
        if( eDataType == ePdfDataType_Real ) 
        {
            // DOM: strtod is locale dependend,
            //      do not use it
            //double dVal = strtod( pszToken, NULL );
            double dVal;

                        std::stringstream buffer(pszToken);
                        buffer >> dVal;

/*
                        m_doubleParser.str( pszToken );
            if( !(m_doubleParser >> dVal) ) 
            {
                PODOFO_RAISE_ERROR_INFO( ePdfError_InvalidDataType, pszToken );
            }
*/
            rVariant = PdfVariant( dVal );
            return ePdfDataType_Real;
        }
...

Means i replaced m_doubleParser with a imsple stringstream locally...

Perhaps this helps.

Best regards,

Patrik
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to