From owner-freebsd-bugs Thu Mar 2 11:55:31 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id LAA03972 for bugs-outgoing; Thu, 2 Mar 1995 11:55:31 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id LAA03209 for ; Thu, 2 Mar 1995 11:47:39 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA03407; Thu, 2 Mar 1995 20:42:35 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id UAA17718 for freebsd-bugs@FreeBSD.org; Thu, 2 Mar 1995 20:42:35 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.9/8.6.9) id UAA21488 for freebsd-bugs@FreeBSD.org; Thu, 2 Mar 1995 20:22:37 +0100 From: J Wunsch Message-Id: <199503021922.UAA21488@uriah.heep.sax.de> Subject: Re: format %s missing in strftime To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Date: Thu, 2 Mar 1995 20:22:35 +0100 (MET) In-Reply-To: <199503020949.KAA10065@labinfo.iet.unipi.it> from "Luigi Rizzo" at Mar 2, 95 10:49:15 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 896 Sender: bugs-owner@FreeBSD.org Precedence: bulk As Luigi Rizzo wrote: > > > %s is not standardized by ANSI. Nevertheless, we've got it in > > 1.1.5.1, so i've added it. > > Is there any alternative, standardized way to get the same output ? [Btw., %s has already been described in our man page, so i assume it has been forgotten some way.] I'm afraid, there's no standardized way. Remember, ANSI C cannot provide such, since it has to be platform-independent. There is no platform-independent idea of an ``Epoch''. I've checked either DG/UX as IRIX, they both don't grok %s. Since the standard does not say anything about undefined control sequences, it's acceptable to imply ``private'' semantics (we've already got a bunch more of them, see the ``kitchen sink'' comment in the source :-). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)