Date: Fri, 15 Nov 2002 11:31:26 +0100 (CET) From: Harti Brandt <brandt@fokus.gmd.de> To: Erik Trulsson <ertr1013@student.uu.se> Cc: Matthew Dillon <dillon@apollo.backplane.com>, "M. Warner Losh" <imp@bsdimp.com>, <sobomax@FreeBSD.ORG>, <silby@silby.com>, <njl@FreeBSD.ORG>, <cvs-committers@FreeBSD.ORG>, <cvs-all@FreeBSD.ORG> Subject: Re: Re: cvs commit: src/bin/sleep sleep.c Message-ID: <20021115112116.V2812-100000@beagle.fokus.gmd.de> In-Reply-To: <20021115102034.GA19384@student.uu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021115112116.V2812-100000>