Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d4e59c5

Browse files
committed
Install the "posixrules" timezone link in MSVC builds.
Somehow, we'd missed ever doing this. The consequences aren't too severe: basically, the timezone library would fall back on its hardwired notion of the DST transition dates to use for a POSIX-style zone name, rather than obeying US/Eastern which is the intended behavior. The net effect would only be to obey current US DST law further back than it ought to apply; so it's not real surprising that nobody noticed. David Rowley, per report from Amit Kapila Discussion: https://postgr.es/m/CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com
1 parent 5788a56 commit d4e59c5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/tools/msvc/Install.pm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,20 @@ sub GenerateTimezoneFiles
380380
my $conf = shift;
381381
my $mf = read_file("src/timezone/Makefile");
382382
$mf =~ s{\\\r?\n}{}g;
383+
383384
$mf =~ /^TZDATA\s*:?=\s*(.*)$/m
384385
|| die "Could not find TZDATA line in timezone makefile\n";
385386
my @tzfiles = split /\s+/, $1;
386387

388+
$mf =~ /^POSIXRULES\s*:?=\s*(.*)$/m
389+
|| die "Could not find POSIXRULES line in timezone makefile\n";
390+
my $posixrules = $1;
391+
$posixrules =~ s/\s+//g;
392+
387393
print "Generating timezone files...";
388394

389-
my @args = ("$conf/zic/zic", '-d', "$target/share/timezone");
395+
my @args = ("$conf/zic/zic", '-d', "$target/share/timezone",
396+
'-p', "$posixrules");
390397
foreach (@tzfiles)
391398
{
392399
my $tzfile = $_;

0 commit comments

Comments
 (0)