Take a look at this: http://www.fortran-2000.com/ArnaudRecipes/Cstd/2.6.html

Something's changing locale. Compiling the code from this page with and 
without libnepomuk confirms this.

В сообщении от Среда 19 августа 2009 16:16:36 автор Sebastian Trüg написал:
> I am lost here.
> Consider this little app:
>
> #include <stdio.h>
> int main(int argc, char* argv[])
> {
>     const char* s = "-0.250000   0.750000";
>     float a = 0.0, b = 0.0;
>     sscanf( s, "%f%f", &a, &b );
>     printf( "%f %f\n", a, b );
> }
>
> the output is this:
> "-0.250000 0.750000"
>
> BUT: as soon as I link libnepomuk to it the output changes to:
> "-0,000000 0,000000"
>
> The reason is that sscanf only reads "-0" and then stops.
> I tried to look for evil "static" usage in libnepomuk. But even after
> disabling the unused static stuff the problem persists. I am at a loss.
>
> What other than static variables could screw up a program like this?
>
> Please enlighten me. :)
>
> (attached a cmake file for simple testing)
>
> Cheers,
> Sebastian
_______________________________________________
nepomuk-kde mailing list
nepomuk-kde@semanticdesktop.org
http://lists.semanticdesktop.org/mailman/listinfo/nepomuk-kde

Reply via email to