Re: src/date.c nl_langinfo bug

Jim Meyering <[email protected]> Thu, 08 Aug 2002 18:39:41 +0200
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Thank you!
That fix will appear in the first test release of
the GNU coreutils package (that package is the union
of the fileutils, sh-utils, and textutils packages).

GOTO Masanori <[email protected]> wrote:
> 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