delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/31/10:24:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=xfv
FAuFBn4lDKMl50KXYglDQYikU8FJ4xB4xe2UrPFYSYoTzqnjogQDaP+R2ogpMb3z
uHqz9xARBZ2jHOAtiKXKamtctmhlbemrJGtFwM0KPgP36p91yCumRwkyHfPiMg/w
SA/BPcJwQfQUpAbwiXAlxU5b0lCIuDhMBhXmaowQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=8eNFZbETU
VuWbE1nImOrNmabugg=; b=wE/DYcAGM8VHNdY3dhbGSUhgyiZoxAwZFPd66VUbv
5eERBAlNy3XKOlMWPsCCMdCLXyJszM+VgENQg+gnJQyiu+f4SesuclPI1gxIG0Ly
Loj7H8JuL1fxkeR0XZ0/iKkz9RndMIWI8esfyW91F5MeYmktYlN2mIaA4jgcnGYo
4s=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=HContent-Language:de-DE, H*r:169.254.2, H*MI:siemens, H*RU:192.129.41.35
X-HELO: lizzard.sbs.de
From: "Schwarz, Konrad" <konrad DOT schwarz AT siemens DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Different representations of time in ls -l and date(1)
Date: Wed, 31 Aug 2016 14:23:35 +0000
Message-ID: <A45B1767F1002449A37508C2CC6003D736A332@DEFTHW99EJ1MSX.ww902.siemens.net>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7VEO1Mq021682

> -----Original Message-----
> From: Schwarz, Konrad (CT RDA ITP SES-DE)
> Sent: Wednesday, August 31, 2016 2:51 PM
> To: 'cygwin AT cygwin DOT com'
> Subject: RE: Different representations of time in ls -l and date(1)
> 
> > -----Original Message-----
> > From: Schwarz, Konrad (CT RDA ITP SES-DE)
> > Sent: Wednesday, August 31, 2016 1:42 PM
> > To: 'cygwin AT cygwin DOT com'
> > Subject: RE: Different representations of time in ls -l and date(1)
> >
> > Sorry for the previous incomplete mail.
> >
> > So my problem is that date(1) outputs AM/PM style dates, whereas ls -
> l
> > uses 24 hour times.
> >
> > $ ls -l rtos_benchmark.lst
> > -rwxr-xr-x+ 1 mchn1350 Domain Users 263 Aug 31 13:14
> > rtos_benchmark.lst*
> > $ date
> > Wed, Aug 31, 2016  1:39:35 PM
> > $ echo $LC_TIME
> >
> > $ echo $LANG
> > en_US.UTF-8
> >
> > Shouldn't they be using the same format?
> 
> Further experimentation shows that they
> do indeed use the same format in the POSIX locale, (LANG=C), as
> required by that standard.
> 
> However, I still think it is an ugly inconsistency for them to differ
> in the en_US.UTF-8 locale (which I assume is the default locale in
> Cygwin).

Still further investigation shows that on SUSE Linux, with LANG=en_US.UTF-8,
both of these utilities consistently, if counter-intuitively, display 24 hour time.

So I think the problem lies in Cygwin's locale database.

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019