Project

General

Profile

Actions

Bug #1239

closed

sleep should not be locale sensitive

Added by Rich Lowe almost 10 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
cmd - userland programs
Start date:
2011-07-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

the ksh93-ized sleep tries to support fractions of a second, unfortunately it is locale sensitive (and probably incorrectly locale sensitive, too).

/bin/sleep 1.5 # sleeps for 1.5 seconds
LC_NUMERIC=de_DE.UTF-8 /bin/sleep 1.5 # sleeps for 1.5 seconds
LC_ALL=de_DE.UTF-8 /bin/sleep 1.5 # sleeps for 15 seconds
LC_ALL=de_DE.UTF-8 /bin/sleep 1,5 # sleeps for 1.5 seconds

It should probably not be locale sensitive. If it is going to be locale sensitive, it should probably be nice about LC_NUMERIC, rather than whatever it is doing instead.


Related issues

Related to illumos gate - Bug #6520: ksh: sleep could wait foreverClosed2015-12-18

Actions
Related to illumos gate - Feature #11876: Want a native sleepClosedRobert Mustacchi

Actions
Actions

Also available in: Atom PDF