Ethereal-dev: [Ethereal-dev] Problem with parsing float values on some machines

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Lars Ruoff" <lars.ruoff@xxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2004 09:25:56 +0100
Hi,
I encountered a problem when compiling ethereal on a second computer.
The sort column feature for float values in rtp_analysis didnt work
correctly.
After investigation i found that this was due to atof() returning always
zero.
I changed the code to use sscanf("%f"), like it is done in other places that
use column sorting on floats. But didnt work either.
I then noticed that the problem occurs in those other places too.
(example: LDAP service response time for the c06-ldapv3-app-r1.pcap sample
capture, then sort on "Min SRT")
I suspect this to be a locale issue (e.g. dot vs comma notation for
separating the decimal fraction) ??

tests were carried out on
Win2000 SP2 (french) - ok
Win98SE (german)     - failed!
both compiled with msvc6 from cvs snapshot 2004-01-24.
The official win32 installer release of 0.10.0 shows the same error.

Lars Ruoff