Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 01/28/2001 02:50:04
Module Name:	basesrc
Committed By:	thorpej
Date:		Sun Jan 28 00:50:04 UTC 2001

Modified Files:
	basesrc/usr.bin/mklocale: yacc.y

Log Message:
If the new locale's variable data is length 0, don't bother trying
to write it.  fwrite(3) is a noop in that case anyway, and the error
detection logic here was screwing up on the 0 return from fwrite(3)
(that return value is mandated by SUSv2 for size or count of 0).

While here, improve the error messgages given to the user.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 basesrc/usr.bin/mklocale/yacc.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.