From owner-cvs-all Sat Mar 3 1: 9: 0 2001 Delivered-To: cvs-all@freebsd.org Received: from njord.bart.nl (njord.bart.nl [194.158.170.15]) by hub.freebsd.org (Postfix) with ESMTP id 8B8AE37B71E; Sat, 3 Mar 2001 00:46:57 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by njord.bart.nl (8.10.1/8.10.1) with ESMTP id f238ktL37003; Sat, 3 Mar 2001 09:46:55 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.2/8.11.0) id f238kXV64807; Sat, 3 Mar 2001 09:46:33 +0100 (CET) (envelope-from asmodai) Date: Sat, 3 Mar 2001 09:46:32 +0100 From: Jeroen Ruigrok/Asmodai To: "Andrey A. Chernov" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/w w.c Message-ID: <20010303094632.A666@daemon.ninth-circle.org> References: <200103030132.f231WkD54292@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200103030132.f231WkD54292@freefall.freebsd.org>; from ache@FreeBSD.org on Fri, Mar 02, 2001 at 05:32:46PM -0800 Organisation: Ninth-Circle Enterprises Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20010303 03:00], Andrey A. Chernov (ache@FreeBSD.org) wrote: > Log: > Don't use "," as load avg. separator because it can be precision point in some > locales, so leads to confusion Yeah that might be so. 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. Also, w is the same as uptime, so you also modified the header output of uptime, which might break scripts, not sure though. Ok, so I thought a little further, some locales [English for example] use this for numbers: 10.12 to denote a fractional 12. So using output like: 0.25, 0.17, 0.14 is intuitive. However, for locales which use the comma for the fractions: 10,12 [e.g. Dutch], the output might be: 0,25, 0,17, 0,14. Ok, they might look awkward. But then looking at your changes you don't fix anything! You leave the %.2f in the printf statement! Which means that locales who use the comma as a fractional seperator get the dot anyway! Ergo, you have solved nothing so either rework this, or back this out, thanks. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message