Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 18:29:35 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/w w.c
Message-ID:  <20010303182934.B90930@nagual.pp.ru>
In-Reply-To: <20010303094632.A666@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Mar 03, 2001 at 09:46:32AM %2B0100
References:  <200103030132.f231WkD54292@freefall.freebsd.org> <20010303094632.A666@daemon.ninth-circle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 03, 2001 at 09:46:32 +0100, Jeroen Ruigrok/Asmodai wrote:
> But the comma remains a logical seperator character for a lot of
> countries.  If it confuses the locale then either the print statement is
> bogus or the locale has issues.  A comma should just be able to be used.

Standards NOT recommend using comma as float separator due to locale
issues, f.e. see
http://www.opengroup.org/onlinepubs/007908799/xbd/utilconv.html

"Applications preparing for international use should be aware of an
occasional problem with comma-separated lists: in some locales, the comma
is used as the radix character.  Thus, if an application is preparing
operands for a utility that expects a comma-separated list, it should
avoid generating non-integer values through one of the means that is
influenced by setting the LC_NUMERIC variable"

> Also, w is the same as uptime, so you also modified the header output of
> uptime, which might break scripts, not sure though.

They are breaked in anyway by another comma already comes from locale
before latest change.

> But then looking at your changes you don't fix anything!

I fix separator - it is space now. Space is unlikely to be radix
character.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010303182934.B90930>