Skip to content

Commit f4c69c8

Browse files
committed
Fix timezone data path for Unix and win32.
1 parent d7ee665 commit f4c69c8

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/01 01:38:53 momjian Exp $
9+
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -33,15 +33,17 @@ pg_TZDIR(void)
3333
#endif
3434

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

46+
4547
done_tzdir = 1;
4648
return tzdir;
4749
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy