[bugs] [illumos gate - Bug #1239] sleep should not be locale sensitive
illumos bugs
bugs at lists.illumos.org
Fri Jul 22 11:44:48 PDT 2011
Issue #1239 has been updated by Rich Lowe.
In answer to both points: fractional-sleep is available on most other platforms (FreeBSD seems to do it, OSX does do it, GNU does it). None of them respect the locale separator while doing it.
Try with /usr/gnu/bin/sleep, and de_DE.UTF-8 for instance.
----------------------------------------
Bug #1239: sleep should not be locale sensitive
https://www.illumos.org/issues/1239
Author: Rich Lowe
Status: New
Priority: Normal
Assignee:
Category: cmd - userland programs
Target version:
Difficulty: Medium
Tags:
the ksh93-ized sleep tries to support fractions of a second, unfortunately it is locale sensitive (and probably incorrectly locale sensitive, too).
<pre>
/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
</pre>
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.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the bugs
mailing list