From: cyg Simple <cygsimple@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Different representations of time in ls -l and date(1)
Date: Wed, 31 Aug 2016 21:11:00 -0000 [thread overview]
Message-ID: <da5ecc9a-0fb0-c0c1-2b75-9f497636fa34@gmail.com> (raw)
In-Reply-To: <CACoZoo30ovjECjEG4pY3+0SM4SM0KTe5vb7tuQNUQ_9XgRuYvQ@mail.gmail.com>
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
next prev parent reply other threads:[~2016-08-31 20:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-31 12:31 Schwarz, Konrad
2016-08-31 13:04 ` Markus Hoenicka
2016-08-31 14:23 ` Marco Atzeri
2016-08-31 14:37 ` Frank Farance
2016-08-31 15:23 ` Eric Blake
2016-08-31 15:23 ` Eric Blake
2016-08-31 16:42 ` Erik Soderquist
2016-08-31 21:11 ` cyg Simple [this message]
2016-08-31 15:51 ` Corinna Vinschen
2016-08-31 15:52 ` Brian Inglis
2016-08-31 14:48 Schwarz, Konrad
2016-08-31 15:01 ` Corinna Vinschen
2016-08-31 16:28 Schwarz, Konrad
2016-08-31 17:41 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=da5ecc9a-0fb0-c0c1-2b75-9f497636fa34@gmail.com \
--to=cygsimple@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).