PDA

View Full Version : Strange Qt 4.4.0 string problem



maverick_pol
14th May 2008, 16:06
Hi gusy,

After switching to Qt 4.4.0 I have few problems, most of which are connected with strings. Compiled against Qt 4.3.4 my app runs fine.
When I compile against 4.4.0 it crashes because:

when I read data from a file (simple C code, no Qt) while I read double var it crashes because doubles are stored like this: "89.9999", but when I have "89,9999" instead it works fine.

Suddenly Most of my sees doubles with ","[comma] not with a simple '.' before the fraction part.

Any idea what can be wrong?

What strikes me though, there is no Qt code/classes used while reading data from files, but depending on Qt ver I get different run-time result.

Thanks for any idea.

Kacper

wysota
14th May 2008, 19:07
Can we see the code?

ChristianEhrlicher
15th May 2008, 06:46
Looks like you're using another locale setting. Maybe QLocale can help you but don't know exactly.