bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what shall we do with the drunken time_t ?


From: Bruno Haible
Subject: Re: what shall we do with the drunken time_t ?
Date: Sun, 30 Apr 2017 10:07:58 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-75-generic; KDE/5.18.0; x86_64; ; )

>   - the Microsoft CRT interprets TZ, but with a different expected syntax 
> [2][3],
>     which led to tzname[0] = "Eur", tzname[1] = "ope".

The TZ environment variable affects a lot of C library functions:

* Some which should not be exhibiting locale dependent behaviour at all:

  fstat, _fstat*
  https://msdn.microsoft.com/en-us/library/221w8e43.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html

  stat, _stat*, _wstat*
  https://msdn.microsoft.com/en-us/library/14h5k7ff.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html

  _findfirst*, _wfindfirst*
  https://msdn.microsoft.com/en-us/library/zyzxfzac.aspx
  https://msdn.microsoft.com/en-us/library/kda16keh.aspx

  utime, _utime*, _wutime*
  https://msdn.microsoft.com/en-us/library/4wacf567.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/utime.html

  _futime*
  https://msdn.microsoft.com/en-us/library/8592kht8.aspx

* Some which should obey TZ, just that they should ignore the values set by
  Cygwin (instead of exhibiting garbage behaviour):

  _ftime*
  https://msdn.microsoft.com/en-us/library/z54t9z5f.aspx
  http://man7.org/linux/man-pages/man3/ftime.3.html

  localtime, _localtime*
  https://msdn.microsoft.com/en-us/library/bf12f0hc.aspx
  https://msdn.microsoft.com/en-us/library/a442x3ye.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html

  _tzset
  https://msdn.microsoft.com/en-us/library/aa273389.aspx
  https://msdn.microsoft.com/en-us/library/90s5c885.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/tzset.html

  mktime, _mktime*
  https://msdn.microsoft.com/en-us/library/d1y53h2a.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/mktime.html

  ctime, _ctime*, _wctime*
  https://msdn.microsoft.com/en-us/library/59w5xcdy.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/ctime.html

  strftime, _strftime_l
  https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html

  wcsftime, _wcsftime_l
  https://msdn.microsoft.com/en-us/library/fe06s4ak.aspx
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcsftime.html

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]