ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:81347] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
@ 2017-05-23 14:15 ` Greg.mpls
  2017-05-23 14:29 ` [ruby-core:81348] [Ruby trunk Bug#13591][Rejected] " usa
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-23 14:15 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been reported by MSP-Greg (Greg L).

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-18 trunk 58780) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81348] [Ruby trunk Bug#13591][Rejected] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
  2017-05-23 14:15 ` [ruby-core:81347] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ'] Greg.mpls
@ 2017-05-23 14:29 ` usa
  2017-05-23 15:39 ` [ruby-core:81354] [Ruby trunk Bug#13591] " Greg.mpls
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: usa @ 2017-05-23 14:29 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Rejected

MSVCRT uses `TZ`.
See https://msdn.microsoft.com/en-us/library/w4ddyt9h.aspx

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65045

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-18 trunk 58780) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81354] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
  2017-05-23 14:15 ` [ruby-core:81347] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ'] Greg.mpls
  2017-05-23 14:29 ` [ruby-core:81348] [Ruby trunk Bug#13591][Rejected] " usa
@ 2017-05-23 15:39 ` Greg.mpls
  2017-05-23 17:33 ` [ruby-core:81357] " usa
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-23 15:39 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by MSP-Greg (Greg L).


Using a MinGW build, ENV['TZ'] seemed to have no affect on Time, and [time zone spec tests](https://msp-greg.github.io/file.mingw_test-all.html#mspec-1-failure) failed.

I had previously been looking at 'Microsoft Time Zone Index Values'.  Time#zone returns a value from the list, but setting ENV['TZ'] to another value did not seem to have the expected result.

Given that spec tests are not currently included in appveyor, do you know if the test ['defaults to UTC when bad zones given'](https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/core/time/zone_spec.rb#L65-L77) passes on a mswin64 build? 

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65049

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-18 trunk 58780) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81357] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2017-05-23 15:39 ` [ruby-core:81354] [Ruby trunk Bug#13591] " Greg.mpls
@ 2017-05-23 17:33 ` usa
  2017-05-27  2:46 ` [ruby-core:81408] " Greg.mpls
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: usa @ 2017-05-23 17:33 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by usa (Usaku NAKAMURA).


MSP-Greg (Greg L) wrote:
> Given that spec tests are not currently included in appveyor, do you know if the test ['defaults to UTC when bad zones given'](https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/core/time/zone_spec.rb#L65-L77) passes on a mswin64 build?

You can see the results on [RubyCI](http://rubyci.org/).
`vc12-x64` (known as mswinci) is a mswin64 CI.
Its report of trunk includes the result of Spec.


----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65053

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-18 trunk 58780) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81408] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2017-05-23 17:33 ` [ruby-core:81357] " usa
@ 2017-05-27  2:46 ` Greg.mpls
  2017-05-27  5:18 ` [ruby-core:81410] " nobu
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-27  2:46 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by MSP-Greg (Greg L).

ruby -v changed from ruby 2.5.0dev (2017-05-18 trunk 58780) [x64-mingw32] to ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]

Having now built with [mswin-build](https://github.com/unak/mswin-build), this test still fails.  Also, I'm seeing some of the same issues in test-all (test-enum callcc segv, etc).

Please try and run the spec tests (or this specific test) from a command prompt.  Something is amiss if I'm getting different results...

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65120

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81410] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2017-05-27  2:46 ` [ruby-core:81408] " Greg.mpls
@ 2017-05-27  5:18 ` nobu
  2017-05-27  5:53 ` [ruby-core:81412] " Greg.mpls
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: nobu @ 2017-05-27  5:18 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by nobu (Nobuyoshi Nakada).


I haven't seen such failure on AppVeyor yet.
https://ci.appveyor.com/project/nobu/ruby/build/1.0.119

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65122

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81412] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2017-05-27  5:18 ` [ruby-core:81410] " nobu
@ 2017-05-27  5:53 ` Greg.mpls
  2017-05-27  9:33 ` [ruby-core:81415] " eregontp
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-27  5:53 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by MSP-Greg (Greg L).


Nobu,

I'll have a look at your code, see if I can determine whats going on.  Believe me, I did a couple of builds, and it kept failing...

Thanks.

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65126

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81415] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2017-05-27  5:53 ` [ruby-core:81412] " Greg.mpls
@ 2017-05-27  9:33 ` eregontp
  2017-05-27 10:26 ` [ruby-core:81418] [Ruby trunk Bug#13591][Feedback] " naruse
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: eregontp @ 2017-05-27  9:33 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by Eregon (Benoit Daloze).

Assignee set to Eregon (Benoit Daloze)

FWIW the patch looks OK to me, I think we should merge it.

This might be a difference between the different configuration of Windows builds.
Testing for invalid timezones is rather difficult,
some platforms behave differently, and this test had to be refined a couple times to work on all Linux CIs.

MSP-Greg (Greg L) wrote:
> I'll have a look at your code, see if I can determine whats going on.  Believe me, I did a couple of builds, and it kept failing...

Could you just post a failing stacktrace here when running the test in isolation?
You can do so with $ make test-rubyspec MSPECOPT="-e bad spec/rubyspec/core/time/zone_spec.rb"
or $ spec/mspec/bin/mspec -e bad spec/rubyspec/core/time/zone_spec.rb
if the built ruby is on $PATH.

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65127

* Author: MSP-Greg (Greg L)
* Status: Rejected
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81418] [Ruby trunk Bug#13591][Feedback] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2017-05-27  9:33 ` [ruby-core:81415] " eregontp
@ 2017-05-27 10:26 ` naruse
  2017-05-27 15:46 ` [ruby-core:81421] [Ruby trunk Bug#13591] " Greg.mpls
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: naruse @ 2017-05-27 10:26 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by naruse (Yui NARUSE).

Status changed from Rejected to Feedback

Once I reproduced the behavior, but after some maintenance of my mingw environment, it doesn't appear.

Anyway at this time, it's considered as a bug of ruby or spec or mingw or something.
Just removing spec sounds not appropriate.

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65129

* Author: MSP-Greg (Greg L)
* Status: Feedback
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81421] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2017-05-27 10:26 ` [ruby-core:81418] [Ruby trunk Bug#13591][Feedback] " naruse
@ 2017-05-27 15:46 ` Greg.mpls
  2017-05-27 17:25 ` [ruby-core:81422] " eregontp
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-27 15:46 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by MSP-Greg (Greg L).


Sorry for the delay, I'm at -0500 (Central US), and I seem to have lost a video card this morning.

Anyway, error is identical to [mingw mspec](https://msp-greg.github.io/file.mingw_test-all.html#mspec-1-failure).  Below is the full rubyspec results from nmake (I believe the 2nd failure is intermittent):

```
1)
Time#zone defaults to UTC when bad zones given FAILED
Expected 3600
 to equal 0

E:/build/mswin-build/ruby/spec/rubyspec/core/time/zone_spec.rb:68:in `block (4 levels) in <top (required)>'
E:/build/mswin-build/ruby/spec/rubyspec/core/time/zone_spec.rb:67:in `block (3 levels) in <top (required)>'
E:/build/mswin-build/ruby/spec/rubyspec/core/time/zone_spec.rb:3:in `<top (required)>'

2)
C-API Thread function rb_thread_call_without_gvl runs a C function with the global lock unlocked FAILED
Expected nil not to be nil
E:/build/mswin-build/ruby/spec/rubyspec/optional/capi/thread_spec.rb:114:in `block (3 levels) in <top (required)>'
E:/build/mswin-build/ruby/spec/rubyspec/optional/capi/thread_spec.rb:16:in `<top (required)>'

Finished in 214.546800 seconds

3568 files, 25779 examples, 202018 expectations, 2 failures, 0 errors, 0 tagged
NMAKE : fatal error U1077: '.\ruby.exe' : return code '0x1'
```

I've got recent mswin and mingw builds, and did some irb exploring. On windows, ENV['TZ'] seems like a read-only setting.

My mingw/MSYS2 env is up to date, and I run as much of my building from the command prompt as possible, with only what is required in PATH.  As to MinGW, I've built several OpenSSL packages (which pass all OpenSSL and Ruby OpenSSL tests), and a GDBM package. The doc site is generated from recent mingw builds, and I've got curses, eventmachine w/SSL, libxml, nokogiri, rdiscount, redcarpet, RedCloth, and Thin gem extensions installed.

I'm building mswin with VS2017, and I'm using Win7.  I may have OpenSSL-Win 1.1.0f configured wrong, as I've got an issue in test-all that stops it.  I hope to get mswin test-all completing soon.  Previous builds seemed to show a segv issue that also occurred in MinGW builds with `test_enum.rb` / `TestEnumerable#test_callcc`.

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65132

* Author: MSP-Greg (Greg L)
* Status: Feedback
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81422] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2017-05-27 15:46 ` [ruby-core:81421] [Ruby trunk Bug#13591] " Greg.mpls
@ 2017-05-27 17:25 ` eregontp
  2017-05-27 18:39 ` [ruby-core:81423] " Greg.mpls
  2017-06-19 13:02 ` [ruby-core:81720] " eregontp
  12 siblings, 0 replies; 13+ messages in thread
From: eregontp @ 2017-05-27 17:25 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by Eregon (Benoit Daloze).


Interesting, an offset of 3600 means 1 hour so UTC+1, like current TZ=Europe/London summer time.

Does anyone know what could go wrong?

I am thinking part of it might be that C functions related to time
might behave slightly differently between OS and
the result might also depend on the system time zone and settings
(if the system time zone is UTC then we cannot test the difference between local zone and UTC zone).

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65133

* Author: MSP-Greg (Greg L)
* Status: Feedback
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81423] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (10 preceding siblings ...)
  2017-05-27 17:25 ` [ruby-core:81422] " eregontp
@ 2017-05-27 18:39 ` Greg.mpls
  2017-06-19 13:02 ` [ruby-core:81720] " eregontp
  12 siblings, 0 replies; 13+ messages in thread
From: Greg.mpls @ 2017-05-27 18:39 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by MSP-Greg (Greg L).


Usaku,

You are correct.  Linked from the page you mentioned is [_tzset](https://msdn.microsoft.com/en-us/library/90s5c885.aspx).  This (sort of) doc's what ENV['TZ'] can be set to.

From my testing, the strings can be anything.  I called the following with several strings.

```
puts "TZ          DST    SST"
def tz_test(s)
  dst = [2017, 6, 1, 12, 0]  # daylight - June
  sst = [2017, 1, 1, 12, 0]  # standard - January
  ENV['TZ'] = s
  puts "#{s.ljust(10)} #{(Time.new(*dst).utc_offset/3600).to_s.rjust(4)}   #{(Time.new(*sst).utc_offset/3600).to_s.rjust(4)}"
end
```

output below.

```
TZ          DST    SST
hello-foo     1      0
hello+foo     1      0
1,2           0      0
Sun,Fri,2     1      0
12            0      0
-1aaa         1      0

aaa+8        -8     -8
AAA+8        -8     -8
aaa+8bbb     -7     -8
AAAA+8BBBB    1      0

aaa-8         8      8
AAA-8         8      8
aaa-8bbb      9      8
AAAA-8BBBB    1      0
```

A classic case of a function that assumes you have validated the input, and, if not, be prepared for anything.  My opinion, Ruby mingw and mswin builds are fine, the `_tzset` function is expecting validation that ruby can't or shouldn't do.  There's a gem for that...

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65134

* Author: MSP-Greg (Greg L)
* Status: Feedback
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [ruby-core:81720] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
       [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
                   ` (11 preceding siblings ...)
  2017-05-27 18:39 ` [ruby-core:81423] " Greg.mpls
@ 2017-06-19 13:02 ` eregontp
  12 siblings, 0 replies; 13+ messages in thread
From: eregontp @ 2017-06-19 13:02 UTC (permalink / raw)
  To: ruby-core

Issue #13591 has been updated by Eregon (Benoit Daloze).


Fixed in r59113.
I split the spec to only include cases that seem to work on Windows according Greg's tests.
This test is inherently dependent on the OS parsing function for TZ, so we need to deal with those differences.

----------------------------------------
Bug #13591: spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ']
https://bugs.ruby-lang.org/issues/13591#change-65419

* Author: MSP-Greg (Greg L)
* Status: Closed
* Priority: Normal
* Assignee: Eregon (Benoit Daloze)
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-27 trunk 58911) [x64-mswin64_140]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Windows does not support ENV['TZ'], so it should be removed from rspec tests.

See [GitHub PR 1627](https://github.com/ruby/ruby/pull/1627)



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-06-19 13:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-13591.20170523141528@ruby-lang.org>
2017-05-23 14:15 ` [ruby-core:81347] [Ruby trunk Bug#13591] spec/rubyspec/core/time/zone_spec - Windows does not support ENV['TZ'] Greg.mpls
2017-05-23 14:29 ` [ruby-core:81348] [Ruby trunk Bug#13591][Rejected] " usa
2017-05-23 15:39 ` [ruby-core:81354] [Ruby trunk Bug#13591] " Greg.mpls
2017-05-23 17:33 ` [ruby-core:81357] " usa
2017-05-27  2:46 ` [ruby-core:81408] " Greg.mpls
2017-05-27  5:18 ` [ruby-core:81410] " nobu
2017-05-27  5:53 ` [ruby-core:81412] " Greg.mpls
2017-05-27  9:33 ` [ruby-core:81415] " eregontp
2017-05-27 10:26 ` [ruby-core:81418] [Ruby trunk Bug#13591][Feedback] " naruse
2017-05-27 15:46 ` [ruby-core:81421] [Ruby trunk Bug#13591] " Greg.mpls
2017-05-27 17:25 ` [ruby-core:81422] " eregontp
2017-05-27 18:39 ` [ruby-core:81423] " Greg.mpls
2017-06-19 13:02 ` [ruby-core:81720] " eregontp

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