Re: Setting TZ may break time() in non-Cygwin programs

2012-03-07 Thread Christian Franke
Corinna Vinschen wrote: On Mar 4 19:42, Christian Franke wrote: Corinna Vinschen wrote: On Mar 2 22:35, Christian Franke wrote: Corinna Vinschen wrote: But, as usual, PTC. OK, ... Simple: Unset TZ for Win32 programs run from Cygwin. More flexible: Set (unset) TZ=CYGWIN_WINENV_TZ if this

Re: Setting TZ may break time() in non-Cygwin programs

2012-03-04 Thread Corinna Vinschen
On Mar 4 19:42, Christian Franke wrote: > Corinna Vinschen wrote: > >On Mar 2 22:35, Christian Franke wrote: > >>Corinna Vinschen wrote: > >>>But, as usual, PTC. > >>OK, ... > >> > >>>Simple: Unset TZ for Win32 programs run from Cygwin. > >>> > >>>More flexible: Set (unset) TZ=CYGWIN_WINENV_TZ if

Re: Setting TZ may break time() in non-Cygwin programs

2012-03-04 Thread Christian Franke
Corinna Vinschen wrote: On Mar 2 22:35, Christian Franke wrote: Corinna Vinschen wrote: But, as usual, PTC. OK, ... Simple: Unset TZ for Win32 programs run from Cygwin. More flexible: Set (unset) TZ=CYGWIN_WINENV_TZ if this variable is set (to empty). Otherwise keep TZ as is. would a pat

Re: Setting TZ may break time() in non-Cygwin programs

2012-03-04 Thread Corinna Vinschen
On Mar 2 22:35, Christian Franke wrote: > Corinna Vinschen wrote: > >On Mar 1 21:15, Christian Franke wrote: > >>TZ environment variable is set by default since base-files 4.0.7. > >> > >>Unfortunately this breaks the time() calculation for all non-Cygwin > >>programs run from Cygwin if Microsoft

Re: Setting TZ may break time() in non-Cygwin programs

2012-03-02 Thread Christian Franke
Corinna Vinschen wrote: On Mar 1 21:15, Christian Franke wrote: TZ environment variable is set by default since base-files 4.0.7. Unfortunately this breaks the time() calculation for all non-Cygwin programs run from Cygwin if Microsoft C runtime (mscrt*.dll) is used. MS CRT evaluates TZ but su

Re: Setting TZ may break time() in non-Cygwin programs

2012-03-02 Thread Corinna Vinschen
On Mar 1 21:15, Christian Franke wrote: > TZ environment variable is set by default since base-files 4.0.7. > > Unfortunately this breaks the time() calculation for all non-Cygwin > programs run from Cygwin if Microsoft C runtime (mscrt*.dll) is > used. MS CRT evaluates TZ but supports only a ver