Commit f4c69c82 authored by Bruce Momjian's avatar Bruce Momjian

Fix timezone data path for Unix and win32.

parent d7ee6650
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.5 2004/05/01 01:38:53 momjian Exp $ * $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.6 2004/05/01 22:07:03 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -33,15 +33,17 @@ pg_TZDIR(void) ...@@ -33,15 +33,17 @@ pg_TZDIR(void)
#endif #endif
canonicalize_path(tzdir); canonicalize_path(tzdir);
#if 0 #ifdef WIN32
/* trim off binary name, then go up a directory */
if ((p = last_path_separator(tzdir)) == NULL) if ((p = last_path_separator(tzdir)) == NULL)
return NULL; return NULL;
else else
*p = '\0'; *p = '\0';
strcat(tzdir, "/../share/timezone");
#endif #endif
strcat(tzdir, "/timezone"); strcat(tzdir, "/timezone");
done_tzdir = 1; done_tzdir = 1;
return tzdir; return tzdir;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment