https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1709775478
2012-07-26T09:02:23Z
Ruby Issue Tracking System
Ruby master - Bug #6794: x64 mingw: test_at(TestTime) failure
https://bugs.ruby-lang.org/issues/6794?journal_id=28450
2012-07-26T09:02:23Z
h.shirosaki (Hiroshi Shirosaki)
h.shirosaki@gmail.com
<ul><li><strong>Subject</strong> changed from <i>x86 mingw: test_at(TestTime) failure</i> to <i>x64 mingw: test_at(TestTime) failure</i></li></ul>
Ruby master - Bug #6794: x64 mingw: test_at(TestTime) failure
https://bugs.ruby-lang.org/issues/6794?journal_id=28499
2012-07-28T09:02:33Z
luislavena (Luis Lavena)
luislavena@gmail.com
<ul><li><strong>Category</strong> set to <i>core</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>luislavena (Luis Lavena)</i> to <i>nobu (Nobuyoshi Nakada)</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>50</i></li></ul><p>=begin<br>
Thank you Hiroshi,</p>
<p>I can confirm patch works:</p>
<p>Finished tests in 0.085005s, 764.6609 tests/s, 7411.3287 assertions/s.<br>
65 tests, 630 assertions, 0 failures, 0 errors, 0 skips</p>
<p>ruby -v: ruby 2.0.0dev (2012-07-27 trunk 36551) [x64-mingw32]</p>
<p>Reassigning to Nobu for final consideration.<br>
=end</p>
Ruby master - Bug #6794: x64 mingw: test_at(TestTime) failure
https://bugs.ruby-lang.org/issues/6794?journal_id=28500
2012-07-28T11:05:17Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul></ul><p>Seems working fine.<br>
Please check in.</p>
<p>BTW, 32bit mingw doesn't have 64s() family?</p>
Ruby master - Bug #6794: x64 mingw: test_at(TestTime) failure
https://bugs.ruby-lang.org/issues/6794?journal_id=28504
2012-07-28T16:36:57Z
Anonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>This issue was solved with changeset r36556.<br>
Hiroshi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>win32/win32.c: fix localtime_r() on x64-mingw</p>
<ul>
<li>
<p>win32/win32.c (gmtime_r): use _gmtime64_s() with x86_64-w64-mingw32.</p>
</li>
<li>
<p>win32/win32.c (localtime_r): use _localtime64_s() with<br>
x86_64-w64-mingw32. Since FileTimeToSystemTime() seems not work with<br>
large value under x64. Mingw-w64 doesn't have these declaration.<br>
<a href="/issues/6794">[ruby-core:46780]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: x64 mingw: test_at(TestTime) failure (Closed)" href="https://bugs.ruby-lang.org/issues/6794">#6794</a>]</p>
</li>
</ul>
Ruby master - Bug #6794: x64 mingw: test_at(TestTime) failure
https://bugs.ruby-lang.org/issues/6794?journal_id=28506
2012-07-28T17:27:35Z
h.shirosaki (Hiroshi Shirosaki)
h.shirosaki@gmail.com
<ul></ul><p>Thank you. Checked in.</p>
<blockquote>
<p>BTW, 32bit mingw doesn't have 64s() family?</p>
</blockquote>
<p>It seems that gcc 4.6.1 (tdm gcc 32bit) doesn't have _localtime64_s.</p>
<p>gcc 4.6.3 (rubenvb-4.6.3) i686-w64-mingw32 (32bit) has _localtime64_s.</p>
<p>The following page's example worked with rubenvb-4.6.3.<br>
<a href="http://msdn.microsoft.com/en-us/library/a442x3ye(v=vs.80).aspx" class="external">http://msdn.microsoft.com/en-us/library/a442x3ye(v=vs.80).aspx</a></p>