src/date.c nl_langinfo bug

GOTO Masanori <[email protected]> Tue, 06 Aug 2002 17:32:58 +0900
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Hi,

Recent sh-utils' date does not print _DATE_FMT because langinfo.h is
never included, because HAVE_LANGINFO_H is not defined anywhere.
Please apply below patch.


2002-08-06  GOTO Masanori  <[email protected]>

	* src/date.c: Include langinfo.h correctly


--- sh-utils-2.0.14/src/date.c	2002-07-02 14:21:02.000000000 +0900
+++ sh-utils-2.0.14.new/src/date.c	2002-08-06 17:20:52.000000000 +0900
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <getopt.h>
 #include <sys/types.h>
-#if HAVE_LANGINFO_H
+#if HAVE_LANGINFO_CODESET
 # include <langinfo.h>
 #endif
 

-- gotom