From 8aa15b2be2bd2ab4b76d197a279abf8b9091680a Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 28 Sep 2009 17:32:15 +0100 Subject: ls: use the POSIX date style when the locale does not specify one Previously we defaulted to "long-iso" format in locales without specific format translations, like the en_* locales for example. This reverts part of commit 6837183d, 08-11-2005, "ls ... acts like --time-style='posix-long-iso' if the locale settings are messed up" * src/ls.c (decode_switches): Only use the ISO format when specified. * NEWS: Mention the change in behavior. Reported by Daniel Qarras at http://bugzilla.redhat.com/525134 --- doc/coreutils.texi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index f103bd869..5c2bd1a84 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -6927,11 +6927,10 @@ is 80. @node Formatting file timestamps @subsection Formatting file timestamps -By default, file timestamps are listed in abbreviated form. Most -locales use a timestamp like @samp{2002-03-30 23:45}. However, the -default @acronym{POSIX} locale uses a date like @samp{Mar 30@ @ 2002} -for non-recent timestamps, and a date-without-year and time like -@samp{Mar 30 23:45} for recent timestamps. +By default, file timestamps are listed in abbreviated form, using +a date like @samp{Mar 30@ @ 2002} for non-recent timestamps, and a +date-without-year and time like @samp{Mar 30 23:45} for recent timestamps. +This format can change depending on the current locale as detailed below. A timestamp is considered to be @dfn{recent} if it is less than six months old, and is not dated in the future. If a timestamp dated -- cgit v1.2.3-54-g00ecf