Skip to content
Snippets Groups Projects
Commit 62a28831 authored by Tom Lane's avatar Tom Lane
Browse files

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
parent 6eedc6c1
No related branches found
No related tags found
No related merge requests found
...@@ -342,15 +342,20 @@ sub GenerateTimezoneFiles ...@@ -342,15 +342,20 @@ sub GenerateTimezoneFiles
my $conf = shift; my $conf = shift;
my $mf = read_file("src/timezone/Makefile"); my $mf = read_file("src/timezone/Makefile");
$mf =~ s{\\\s*[\r\n]+}{}mg; $mf =~ s{\\\s*[\r\n]+}{}mg;
$mf =~ /^TZDATA\s*:?=\s*(.*)$/m $mf =~ /^TZDATA\s*:?=\s*(.*)$/m
|| die "Could not find TZDATA line in timezone makefile\n"; || die "Could not find TZDATA line in timezone makefile\n";
my @tzfiles = split /\s+/, $1; my @tzfiles = split /\s+/, $1;
$mf =~ /^POSIXRULES\s*:?=\s*(.*)$/m
|| die "Could not find POSIXRULES line in timezone makefile\n";
my $posixrules = $1;
$posixrules =~ s/\s+//g;
print "Generating timezone files..."; print "Generating timezone files...";
my @args = ("$conf/zic/zic", my @args = ("$conf/zic/zic", '-d', "$target/share/timezone",
'-d', '-p', "$posixrules");
"$target/share/timezone");
foreach (@tzfiles) foreach (@tzfiles)
{ {
my $tzfile = $_; my $tzfile = $_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment