Requests are horked that include doubles (ascii) with more than 4 decimals

Description

This is very odd. I send an ASCII string as my request, which is a colon delimited string. This string includes int and double values.

Here's an example of the string being sent:

"1:4:12.0000:1.0000:15.0000"

This works fine for me when sending values as the above, the embedded device receives the request and it is exactly as above. No trickery involved, the request is immediately strcpy'd to local storage.

If I sent doubles with 5 decimal precision, the request is horked on the server side. It is fine when I send it from the client, I test that just before calling send(). This is very odd, but as a workaround I'm limiting the precision to 4 decimal places.

A bad request looks like this:

"1:4:12.00000:1.00000:15.00000"

Everything is the same except the precision, both are ASCII text strings.

I can see on the client side it looks perfect before sending, but on the server side the string is horked up and odd extended ascii characters.

Environment

server is running on an Arm Cortex9, running embedded linux using the yocto/oe distribution. client is running on ubuntu 12.10. server is running a program in c, client is running python.

Activity

Show:
Guido G.
August 29, 2013, 10:22 AM

No test case.
Invented test case myself.
All works as expected.

Cannot Reproduce

Assignee

Unassigned

Reporter

Alan DuBoff

Labels

Components

Affects versions

Priority

Major