Bug 905840 - LANG variable breaks ping -i
Summary: LANG variable breaks ping -i
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: iputils
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-30 09:50 UTC by Benny Amorsen
Modified: 2013-02-08 02:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-08 02:37:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Benny Amorsen 2013-01-30 09:50:42 UTC
Description of problem:
Regression: ping -i 0.1 does not work unless LANG is en_US (or other language where the decimal separator is ".")

Version-Release number of selected component (if applicable):
iputils-20121221-1.fc18.x86_64


How reproducible:
Every time

Steps to Reproduce:
[root@terpsichore ~]# LANG=da_DK.UTF-8 ping -i0.1 1.2.3.4
ping: bad timing interval
  
Actual results:
ping: bad timing interval

Expected results:
PING 1.2.3.4 (1.2.3.4) 56(84) bytes of data.

Additional info:
Interpreting command line arguments based on LANG/LC is insane. It introduces hard-to-find bugs into scripts and makes it difficult to use documentation, especially online documentation.

Comment 1 Jan Synacek 2013-01-30 10:03:28 UTC
Since ping considers locale, try using your language's decimal separator. (probably ',' - works for me)

Comment 2 Benny Amorsen 2013-01-30 23:01:19 UTC
Thank you for repeating what I wrote.

This is not useful behaviour and it is a regression in Fedora 18.

You can close it notabug as much as you want, but it IS a bug. Scripts break.

Comment 3 Bill Nottingham 2013-01-31 20:47:15 UTC
Reopening, because:
- this is extremely unexpected behavior for commands
- it will break scripts
- I cannot think of other commands that follow this paradigm, so it would be very strange for this to happen for administrators just for ping.

Comment 4 Fedora Update System 2013-02-01 08:12:08 UTC
iputils-20121221-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/iputils-20121221-2.fc18

Comment 6 Fedora Update System 2013-02-02 04:30:13 UTC
Package iputils-20121221-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing iputils-20121221-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1863/iputils-20121221-2.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-02-08 02:37:56 UTC
iputils-20121221-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.