From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 11 15:50:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D742A89E for ; Fri, 11 Apr 2014 15:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C44581A05 for ; Fri, 11 Apr 2014 15:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BFo1WC017738 for ; Fri, 11 Apr 2014 15:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3BFo1aC017737; Fri, 11 Apr 2014 15:50:01 GMT (envelope-from gnats) Date: Fri, 11 Apr 2014 15:50:01 GMT Message-Id: <201404111550.s3BFo1aC017737@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jilles Tjoelker Subject: Re: kern/36902: [libc] [patch] proposed new format code %N for strftime(3) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 15:50:01 -0000 The following reply was made to PR kern/36902; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, ataraxia@cox.rr.com Cc: Subject: Re: kern/36902: [libc] [patch] proposed new format code %N for strftime(3) Date: Fri, 11 Apr 2014 17:47:31 +0200 In FreeBSD PR kern/36902, you wrote: > Since we have %d and %e for printing day numbers with and without > leading 0's, it seems reasonable that we should have the same choice > for month numbers. I propose %N for the new format (all the good ones > are taken :( ). Diffs against -current follow. It is already possible to print single-digit month numbers with a leading space instead of a leading zero using "%_m". Similarly, "%-m" will output only the digit(s). This extension is originally from glibc and works with day numbers as well. Considering strftime(3) letters are in short supply, it seems unwise to use them up without good reason. -- Jilles Tjoelker