Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5971acc

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 0798730 commit 5971acc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/tools/msvc/Install.pm

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,20 @@ sub GenerateTimezoneFiles
315315
my $conf = shift;
316316
my $mf = read_file("src/timezone/Makefile");
317317
$mf =~ s{\\\s*[\r\n]+}{}mg;
318+
318319
$mf =~ /^TZDATA\s*:?=\s*(.*)$/m
319320
|| die "Could not find TZDATA line in timezone makefile\n";
320321
my @tzfiles = split /\s+/, $1;
321322

323+
$mf =~ /^POSIXRULES\s*:?=\s*(.*)$/m
324+
|| die "Could not find POSIXRULES line in timezone makefile\n";
325+
my $posixrules = $1;
326+
$posixrules =~ s/\s+//g;
327+
322328
print "Generating timezone files...";
323329

324-
my @args = ("$conf/zic/zic",
325-
'-d',
326-
"$target/share/timezone");
330+
my @args = ("$conf/zic/zic", '-d', "$target/share/timezone",
331+
'-p', "$posixrules");
327332
foreach (@tzfiles)
328333
{
329334
my $tzfile = $_;

0 commit comments

Comments
 (0)