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

Commitf4c69c8

Browse files
committed
Fix timezone data path for Unix and win32.
1 parentd7ee665 commitf4c69c8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/timezone/pgtz.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/0101:38:53 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/0122:07:03 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -33,15 +33,17 @@ pg_TZDIR(void)
3333
#endif
3434

3535
canonicalize_path(tzdir);
36-
#if0
36+
#ifdefWIN32
37+
/* trim off binary name, then go up a directory */
3738
if ((p=last_path_separator(tzdir))==NULL)
3839
returnNULL;
3940
else
4041
*p='\0';
42+
strcat(tzdir,"/../share/timezone");
4143
#endif
42-
4344
strcat(tzdir,"/timezone");
4445

46+
4547
done_tzdir=1;
4648
returntzdir;
4749
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp