Skip to content
Snippets Groups Projects
Commit 04d3f798 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki
Browse files

ping,ping6: Do not assume radix point is denoted by '.' (-i option).


In some loacles (e.g., en, ja), radix point is denoted by '.'.
In other locales (e.g., de, fr), radix point is denoted by ','.

The argument parser for interval (-i option) checked '.' to
determine if the argument is integer or not, and used sscanf
with %d or %f.  As we are enabling locale support along with IDN
support, such an assumption is not good at all.

Just let strtod(3) handle difference of locales.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent 44c6c9a8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment