From owner-cvs-all Fri Nov 15 2:31:38 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE37537B401; Fri, 15 Nov 2002 02:31:36 -0800 (PST) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F76B43E6E; Fri, 15 Nov 2002 02:31:35 -0800 (PST) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id gAFAVQw01396; Fri, 15 Nov 2002 11:31:26 +0100 (MET) Date: Fri, 15 Nov 2002 11:31:26 +0100 (CET) From: Harti Brandt To: Erik Trulsson Cc: Matthew Dillon , "M. Warner Losh" , , , , , Subject: Re: Re: cvs commit: src/bin/sleep sleep.c In-Reply-To: <20021115102034.GA19384@student.uu.se> Message-ID: <20021115112116.V2812-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 15 Nov 2002, Erik Trulsson wrote: ET>On Fri, Nov 15, 2002 at 11:02:04AM +0100, Harti Brandt wrote: ET>> On Fri, 15 Nov 2002, Matthew Dillon wrote: ET>> ET>> MD> I think you are missing the point. If you need language support, ET>> MD> the program should not be compiled with a mini C library. It's ET>> MD> that simple. ET>> MD> ET>> MD> Consider: Does /bin/sleep need language support? ET>> ET>> As sleep currently stands it has a hard coded decimal point '.' and it has ET>> an english usage message. This may and probably should change (esp. the ET>> '.'). Then it will need language support. You can of course always say: if ET> ET>The '.' should *NOT* change. If it became locale-dependent, then any ET>scripts that use sleep(1) would behave differently depending on the locale ET>used. I would consider that to be a Bad Thing. You might as well change ET>the name of the sleep(1) command itself to whatever it would be in the ET>local language, which would make it somewhat non-trivial to write portable ET>scripts. Scripts depending on an utility operating in the C locale MUST set the locale to C before calling that utility. Scripts failing to do this are not portable and are inherently local dependent. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message