From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 8 20:20:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17B461065686 for ; Wed, 8 Oct 2008 20:20:19 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id C34178FC13 for ; Wed, 8 Oct 2008 20:20:18 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KnfW0-00058H-LZ for freebsd-hackers@freebsd.org; Wed, 08 Oct 2008 20:20:12 +0000 Received: from 78-0-85-121.adsl.net.t-com.hr ([78.0.85.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2008 20:20:12 +0000 Received: from ivoras by 78-0-85-121.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Oct 2008 20:20:12 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Wed, 08 Oct 2008 22:20:00 +0200 Lines: 45 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF0FB422781C3B996F373DECF" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-85-121.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) X-Enigmail-Version: 0.95.7 Sender: news Subject: strftime's %c warning? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 20:20:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF0FB422781C3B996F373DECF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm trying to use the %c formatter in strftime(3), documented as: " %c is replaced by national representation of time and date. " =2E.. which looks useful, except that in code in which WFORMAT is defined= as "1" I get this error: str.c: In function 'ltime': str.c:141: warning: '%c' yields only last 2 digits of year in some locales on non-BSD systems *** Error code 1 Since the code I'm developing is definitely BSD-only (patch to pkg_* infrastructure), should I: a) stop using locale-based %c and choose my own date/time format b) remove WFORMAT from the Makefile? The same warning/error is generated by %x and %X, and %+ described in the strftime man page isn't recognized. --------------enigF0FB422781C3B996F373DECF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjtFfAACgkQldnAQVacBcjElACfU3N++OdqFXu1aoK237uoj1Xf YpQAnRppy9+aTnom7Zv0m1lBjUCkX8Yp =RpYV -----END PGP SIGNATURE----- --------------enigF0FB422781C3B996F373DECF--