From: Jim Meyering Date: Sat, 18 Nov 2000 19:43:15 +0000 (+0000) Subject: Revert change of 2000-11-11. It inadvertently change X-Git-Tag: FILEUTILS-4_0_33~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5aacbc6ea5b2f39ce10669d4c206431683cf303;p=platform%2Fupstream%2Fcoreutils.git Revert change of 2000-11-11. It inadvertently change the output format of `ls -l --full-time'. --- diff --git a/src/ls.c b/src/ls.c index 0963721..a099ad6 100644 --- a/src/ls.c +++ b/src/ls.c @@ -114,15 +114,6 @@ int wcwidth (); # endif #endif -#if HAVE_LANGINFO_H -# include -#endif -#ifdef _DATE_FMT -# define DATE_FMT_LANGINFO() nl_langinfo (_DATE_FMT) -#else -# define DATE_FMT_LANGINFO() "" -#endif - #include "system.h" #include @@ -2379,8 +2370,7 @@ print_long_format (const struct fileinfo *f) if (full_time) { - char *date_fmt = DATE_FMT_LANGINFO (); - fmt = *date_fmt ? date_fmt : "%a %b %e %H:%M:%S %Z %Y"; + fmt = _("%a %b %d %H:%M:%S %Y"); } else { @@ -2393,11 +2383,11 @@ print_long_format (const struct fileinfo *f) Allow a 1 hour slop factor for what is considered "the future", to allow for NFS server/client clock disagreement. Show the year instead of the time of day. */ - fmt = "%b %e %Y"; + fmt = _("%b %e %Y"); } else { - fmt = "%b %e %H:%M"; + fmt = _("%b %e %H:%M"); } }