[phobos] std.datetime fails on OSX

Jonathan M Davis jmdavisProg at gmx.com
Sat Jan 15 18:44:51 PST 2011


On Saturday 15 January 2011 18:19:24 Walter Bright wrote:
>  Jonathan M Davis wrote:
> On Saturday 15 January 2011 17:52:10 Walter Bright wrote:
> 
> The OSX file is
> 
> /usr/share/zoneinfo/America/Los_Angeles
> 
> not
> 
> /usr/share/zoneinfo//right/America/Los_Angeles
> 
> 
> They both exist on Linux. The one in right/ has leap seconds whereas the
> other one doesn't. The test is using
> /usr/share/zoneinfo/right/America/Los_Angeles to test the leap second
> functionality.
> 
> So, you're saying that the folks at Apple _did_ put the time zone files in
> /usr/share/zoneinfo, but that they _didn't_ use all of the standard time
> zone files and left out the directory /usr/share/zoneinfo/right? If that's
> the case, then I'll just make that test Linux-only.
> 
> 
>  I'm not saying anything other than there is no subdirectory on OSX called
> /usr/share/zoneinfo/right (or //right, what's with the double slash?)

Well, that's what I wanted to know. The fact that it's not there means that they 
didn't put all of the standard time zone files on Mac OSX, since the right/ files 
are part of the standard time zone files (which is funny considering that, as far 
as I know, only Posix systems use the standard time zone files and the Posix 
standard explicitly says to ignore leap seconds, but the standard for the time 
zone files has nothing to do with Posix).

The double slash just means that there's a bug somewhere in std.datetime that 
slaps on a slash when it doesn't need to. It works either way since the extra 
slash is ignored by the OS, so it's not a big deal, but it's not supposed to be 
there.

I'll make the leap-seconds test Linux-only when I do a check-in later this 
evening, unless you need it right away, at which point I can do it now (it's 
just that that's a bit more of a pain for me, since I'm in the middle of some 
other changes and svn's branching capabilities suck).

- Jonathan M Davis


More information about the phobos mailing list