delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/31/16:17:31

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=BCIJ4MARyBNfsmqT
y2/bsImoYzaayJGWHEOfesOjhLTYeNEodgO4gaO5sRZyBLOT6kAL/SHeZAlFZDku
kzHq37jjHdA6RavXSbJC7i2dyy/TaBIZBGiFP7bY3GXZle56dxqSN0HV5f61Ia0e
lkxzZJIxna20v1gzCy+zuVGHmtU=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=TlkbcgpFYKsw+8p6zGJbHt
DKdRA=; b=vYoLoGQ+QW5ecWSuuoFaCZNcZThnkuDyVjmP7Dg+bAgZ8KHokkoK9P
x/Y8NlxUCRiB8cmOsYXGRyvyJXdBdvf+oxj0w5gqDeC/JNFcKnwijyeci5vXiJnJ
hrSEbeyWuD8WMbG1Jg1+wUnvJsEnT1k4ifCF/urTU18j1rWDxIIDg=
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=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=soderquist, Soderquist, burned, disregard
X-HELO: mail-it0-f52.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=YsVd5u7keS+WVuItlOOt07VpWj1E5RlNunapoQQQG1Y=; b=O/9NQT/B1zE4KGjPc+M1aT7fSFuiXDE0i4IaB3eFzUYbf/FlJNlf8rsOEUi8ffxEHx rqJKyHlcO38KMGg4LTcguoxzAm4yXRp3iD0/aPPbpxDjUdLm2nCnWt5PI4Qv0sstsX36 obm2uXhJqvxfRwb6nKiffiJKBjsi8EBuua2uxCdSBAQwONV39Dg3CMW6WYpMdPS9Rohd jRBFzcw7+MSv2GOIDTh2A6td0lPbS15yd1yTU8MrBKalDHHwG064CV/JNpCzWhT2SbH8 Yo0u+9K7O7WmY0s78+ku/c8HTo0VhwS1jMDDwsBvq1mrzw4XJzp0WuvLScy+8r6+d1zU u3vg==
X-Gm-Message-State: AE9vXwMZ2T74cIg/XO80X9VCHxKqGBc86gdOSC2RGTl2RUhP569YZ9U6N/Qm52yTWNr6fA==
X-Received: by 10.36.85.195 with SMTP id e186mr32830907itb.56.1472674627999; Wed, 31 Aug 2016 13:17:07 -0700 (PDT)
Subject: Re: Different representations of time in ls -l and date(1)
To: cygwin AT cygwin DOT com
References: <A45B1767F1002449A37508C2CC6003D736A232 AT DEFTHW99EJ1MSX DOT ww902 DOT siemens DOT net> <860c2a0f5dd46780649de9a26ebc0464 AT mhoenicka DOT de> <dcd35b85-cfff-a821-a81c-b311db1bd242 AT farance DOT com> <60d27734-5ce7-6e25-e170-a0baa5442a69 AT redhat DOT com> <d8e13286-e58d-5eec-7080-40941603ddd3 AT redhat DOT com> <CACoZoo30ovjECjEG4pY3+0SM4SM0KTe5vb7tuQNUQ_9XgRuYvQ AT mail DOT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <da5ecc9a-0fb0-c0c1-2b75-9f497636fa34@gmail.com>
Date: Wed, 31 Aug 2016 16:17:29 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CACoZoo30ovjECjEG4pY3+0SM4SM0KTe5vb7tuQNUQ_9XgRuYvQ@mail.gmail.com>
X-IsSubscribed: yes

On 8/31/2016 11:23 AM, Erik Soderquist wrote:
> On Wed, Aug 31, 2016 at 10:45 AM, Eric Blake wrote:
>> So, the answer to your question is determined by what your locale thinks
>> is the appropriate representation; and I have no control over whether
>> Windows' locale defaults will match glibc's locale defaults for en_US or
>> any other locale outside of C.
> 
> 
> It is because I have been burned on this (world wide customers) that I
> know explicitly specify the format I want to work with in my scripts
> and disregard whatever the local is.
> 

In other words, don't trust a default to provide the exact
representation needed for your process to work correctly.  You cannot
control what a default might return so be specific if you have a
specific format required.

-- 
cyg Simple

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