X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Message-ID: <4AF81245.2040202@byu.net> Date: Mon, 09 Nov 2009 05:59:49 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com, jjreisert AT alum DOT mit DOT edu Subject: Re: [1.7] Updated: cygwin-1.7.0-63 References: <20091103145437 DOT GM7831 AT calimero DOT vinschen DOT de> <806a89db0911031113m2cf926aw7bc0be53fa5919cb AT mail DOT gmail DOT com> <4AF08991 DOT 6050600 AT dronecode DOT org DOT uk> <20091103195411 DOT GA31004 AT ednor DOT casa DOT cgf DOT cx> <806a89db0911051219j72e0eef2x58558849738442eb AT mail DOT gmail DOT com> <4AF3967D DOT 5 AT byu DOT net> <806a89db0911061038x2358b217k99d8eaf17e3aa949 AT mail DOT gmail DOT com> In-Reply-To: <806a89db0911061038x2358b217k99d8eaf17e3aa949@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Jim Reisert AD1C on 11/6/2009 11:38 AM: >> In particular, --time-style in an alias, or TIME_STYLE in your >> environment, is your friend. > > Thanks, Eric. I tried this but could not get what I wanted: > > LTDENA-REISERT:c/Home> ls -al --time-style="posix-long-iso" > > -rwx------ 1 reisert Domain Users 3326 2009-10-30 12:51 .XWinrc > -rwx------ 1 reisert Users 663 2009-02-26 10:37 .Xdefaults > > From the info link you sent me, it says: > > `posix-STYLE' > List POSIX-locale timestamps if the `LC_TIME' locale category > is POSIX, STYLE timestamps otherwise. For example, the > `posix-long-iso' style lists timestamps like `Mar 30 2002' > and `Mar 30 23:45' when in the POSIX locale, and like > `2002-03-30 23:45' otherwise. > > I must not be in a POSIX LOCALE, then. LC_TIME isn't defined, nor is LOCALE. Correct - if LC_ALL, LC_TIME, and LANG are all undefined, then you are in the C.UTF-8 locale (cygwin's default), which, since it is not "C", is not _the_ POSIX locale. Likewise, if LANG is en_US.UTF-8, but LC_ALL and LC_TIME are unset, then you are in the en_US.UTF-8 locale, which is not the POSIX locale. > > How do I make this work, while maintaining: > > LANG=en_US.UTF-8 Well, did you try setting LC_TIME=C? That would mean that LC_TIME is then POSIX, overriding LANG; and as long as LC_ALL is unset, then that would make the difference. Or, you could use TIME_STYLE='+%b %e %Y %b %e %H:%M' to force the POSIX interpretation regardless of locale. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr4EkUACgkQ84KuGfSFAYDlzQCfWQMdyvD0q0+GPgsc4dDY7lH9 v2EAn0Gf5ydK3EXSdRuwxcDk6TA6AM3P =kWjz -----END PGP SIGNATURE----- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple