On 2015-09-21 16:45, Mark Kettenis wrote:
>> From: Christian Weisgerber
>> Date: Mon, 21 Sep 2015 14:29:03 + (UTC)
>>
>> On 2015-09-21, Stefan Sperling wrote:
>>
> You could argue that the thousands separator should be supported though:
>
> $ sleep
I recall this discussion on UTF-8 and locales:
http://undeadly.org/cgi?action=article=20150722182236
I imagine there was more elsewhere that I didn't see.
Brian
On Sep 22, 2015 7:07 AM, "Benny Lofgren" wrote:
> On 2015-09-21 16:45, Mark Kettenis wrote:
> >> From:
On Sun, Sep 20, 2015 at 09:40:05PM -0600, Bob Beck wrote:
> I concur, I don't want to see a plethora of "isnumber"
> "ismaybeanumber" bullshit in the tree that
> do the same thing "isdigit" does.. if for whatever reason we want
> isdigit to be more efficient because
> the most important thing I
On Monday, 21 September 2015, Stefan Sperling wrote:
> On Sun, Sep 20, 2015 at 09:40:05PM -0600, Bob Beck wrote:
> > I concur, I don't want to see a plethora of "isnumber"
> > "ismaybeanumber" bullshit in the tree that
> > do the same thing "isdigit" does.. if for whatever reason
Stefan Sperling wrote:
>
> Just remove the setlocale() call to leave sleep(1) in the default "C" locale.
here's a diff that does that. you're right, there's no need to rewrite ctype
if it hasn't been altered. I also checked that there are no calls to err()
or strerror() or whatever, and so
On 2015-09-21, Stefan Sperling wrote:
> The function that parses funny numbers is iswdigit() which gets a wchar_t.
> But sleep(1) doesn't need that.
The sole somewhat realistic use of i18n in sleep(1) is the decimal
separator, so you could do
$ sleep 1,5
in an appropriate
On Mon, Sep 21, 2015 at 02:29:03PM +, Christian Weisgerber wrote:
> On 2015-09-21, Stefan Sperling wrote:
>
> > The function that parses funny numbers is iswdigit() which gets a wchar_t.
> > But sleep(1) doesn't need that.
>
> The sole somewhat realistic use of i18n in
On Mon, Sep 21, 2015 at 8:37 AM, wrote:
...
> I don't want error messages or any feedback produced by the machine and
> the operating system in any other language than English in C locale,
> even if my locale is set to native (non-English).
You know that you can set LC_MESSAGES
On Mon, 21 Sep 2015 16:53:12 +0200
Alexandre Ratchov wrote:
> On Mon, Sep 21, 2015 at 02:29:03PM +, Christian Weisgerber wrote:
> > On 2015-09-21, Stefan Sperling wrote:
> >
> > > The function that parses funny numbers is iswdigit() which gets a wchar_t.
> >
On Mon, Sep 21, 2015 at 01:25:04PM -0400, Ted Unangst wrote:
> Stefan Sperling wrote:
> >
> > Just remove the setlocale() call to leave sleep(1) in the default "C"
> > locale.
>
> here's a diff that does that. you're right, there's no need to rewrite ctype
> if it hasn't been altered. I also
/bin/sleep does a lot more work than you'd expect (just ktrace it).
this is because it calls setlocale(). apparently so that isdigit() doesn't get
confused by wacky foreigners with funny numbers.
there is another solution, given that the problem of identifying digits is not
particularly
On Sun, Sep 20, 2015 at 6:49 PM, Ted Unangst wrote:
> /bin/sleep does a lot more work than you'd expect (just ktrace it).
>
> this is because it calls setlocale(). apparently so that isdigit() doesn't get
> confused by wacky foreigners with funny numbers.
>
> there is another
I concur, I don't want to see a plethora of "isnumber"
"ismaybeanumber" bullshit in the tree that
do the same thing "isdigit" does.. if for whatever reason we want
isdigit to be more efficient because
the most important thing I have to do is make shell sleep more
efficient, we should fix isdigit,
13 matches
Mail list logo