[bugs] [illumos gate - Bug #1239] sleep should not be locale sensitive
illumos bugs
bugs at lists.illumos.org
Fri Jul 22 11:30:57 PDT 2011
Issue #1239 has been updated by Garrett D'Amore.
Why shouldn't it be locale sensitive? I think it should respect the locale. If you want your script to work properly, put it into the C locale. (Of course people who expect fractional second sleeps in scripts are already probably locked into ksh93 and familiar with its warts.)
----------------------------------------
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