Date: Wed, 08 Oct 2008 22:20:00 +0200 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-hackers@freebsd.org Subject: strftime's %c warning? Message-ID: <gcj4lj$jr0$1@ger.gmane.org>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gcj4lj$jr0$1>
