Module Name: src Committed By: jruoho Date: Thu Apr 29 10:03:12 UTC 2010
Modified Files: src/lib/libc/time: strftime.3 Log Message: Note the ambiguity of the return value in the BUGS section. >From Christian Biere <christianbi...@gmx.de> in PR #39392. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/time/strftime.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/time/strftime.3 diff -u src/lib/libc/time/strftime.3:1.24 src/lib/libc/time/strftime.3:1.25 --- src/lib/libc/time/strftime.3:1.24 Sat Apr 11 16:15:27 2009 +++ src/lib/libc/time/strftime.3 Thu Apr 29 10:03:12 2010 @@ -30,9 +30,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 -.\" $NetBSD: strftime.3,v 1.24 2009/04/11 16:15:27 joerg Exp $ +.\" $NetBSD: strftime.3,v 1.25 2010/04/29 10:03:12 jruoho Exp $ .\" -.Dd April 14, 2004 +.Dd April 29, 2010 .Dt STRFTIME 3 .Os .Sh NAME @@ -240,3 +240,10 @@ 1996-12-30 to 1997-01-05. .Sh BUGS There is no conversion specification for the phase of the moon. +.Pp +A return value of zero does not necessarily indicate an error. +If the resulting string is an empty string, the result value is +zero and it is not possible to distinguish between success and error. +For example, in many locales +.Cm \&%p +yields an empty string.