Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit14a1832

Browse files
committed
Update win32tzlist.pl for the new location of our Windows timezone map.
I wasn't aware of this script till Magnus mentioned it just now ...
1 parent0c8eda6 commit14a1832

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

‎src/tools/win32tzlist.pl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@
88
#################################################################
99

1010
#
11-
# This script compares the timezone information in the Windows
12-
#registrywith that inpgtz.c. A list of changes will be written
13-
# to stdout - no attempt is made to automatically edit the file.
11+
# This script compares the timezone information in the Windows registry
12+
# with that insrc/bin/initdb/findtimezone.c.A list of changes will be
13+
#writtento stdout - no attempt is made to automatically edit the file.
1414
#
15-
# Run the script from thesrc/timezone directory.
15+
# Run the script from thetop-level PG source directory.
1616
#
1717

1818
use strict;
1919
use warnings;
2020

2121
use Win32::Registry;
2222

23+
my$tzfile ='src/bin/initdb/findtimezone.c';
24+
2325
#
2426
# Fetch all timezones in the registry
2527
#
@@ -57,16 +59,16 @@
5759
# Fetch all timezones currently in the file
5860
#
5961
my@file_zones;
60-
open(PGTZ,'<pgtz.c')ordie"Could not openpgtz.c!\n";
62+
open(TZFILE,"<$tzfile")ordie"Could not open$tzfile!\n";
6163
my$t =$/;
6264
undef$/;
63-
my$pgtz = <PGTZ>;
64-
close(PGTZ);
65+
my$pgtz = <TZFILE>;
66+
close(TZFILE);
6567
$/ =$t;
6668

6769
# Attempt to locate and extract the complete win32_tzmap struct
6870
$pgtz =~/win32_tzmap\[\] =\s+{\s+\/\*[^\/]+\*\/\s+(.+?)};/gs
69-
ordie"Could not locate struct win32_tzmap inpgtz.c!";
71+
ordie"Could not locate struct win32_tzmap in$tzfile!";
7072
$pgtz =$1;
7173

7274
# Extract each individual record from the struct

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp