Timezones on localized windows - Mailing list pgsql-patches

From Magnus Hagander
Subject Timezones on localized windows
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE475B7D@algol.sollentuna.se
Whole thread Raw
Responses Re: Timezones on localized windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Timezones on localized windows  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
This patch attempts to fix the issue with localized timezones on
Windows.

Recap: When running on a localized windows version, the timezone name
returned is also localized, and therefor does not match our lookup
table.

Solution: The registry contains both the name of the timezone in english
and the localized name. The patch adds code to scan the registry for the
localized name and gets the english name from that, and then rescans the
table.

I have tested this on a Swedish WinXP, and it works without problems.
The registry layout is the same in Win2k, but I haven't specifically
tested it. It's also the same on different languages but again only
Swedish is tested.


//Magnus

Attachment

pgsql-patches by date:

Previous
From: "Ed L."
Date:
Subject: Re: log_filename_prefix --> log_filename + strftime()
Next
From: "Greg Sabino Mullane"
Date:
Subject: Typo in tab-complete.c