[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: problem with KCmdLineArgs::init() (was: weird issue in kalzium)
From:       Benoit Jacob <jacob () math ! jussieu ! fr>
Date:       2007-08-30 9:10:14
Message-ID: 20070830110712.R15329 () cantor ! math ! jussieu ! fr
[Download RAW message or body]

Indeed, that does also trigger the bug.

As to why the locale affects the parsing, I've found the explanation: the 
locale affects which character is the decimal point. So what really 
matters here is LC_NUMERIC.

If I leave the KCmdLineArgs::init call and put right after it
setlocale(LC_NUMERIC, "C");
then the problem vanishes.

So indeed, bug in OpenBabel. Thanks for your help Thiago and Pino!

Benoit

On Thu, 30 Aug 2007, Thiago Macieira wrote:

> On Thursday 30 August 2007 10:31:08 Benoit Jacob wrote:
>> Any idea?
>
> Yes. Bug in OpenBabel.
>
> Try replacing your call to KCmdLineArgs::init with this:
>    setlocale(LC_ALL, "");
>
> -- 
>    Thiago Macieira   -   thiago (AT) macieira.info - thiago (AT) kde.org
>       PGP/GPG: 0x6EF45358; fingerprint:
>       E067 918B B660 DBD1 105C   966C 33F5 F005 6EF4 5358
>

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic