From:
Magnus Hagander <magnus(at)hagander(dot)net>
To:
ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc:
Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>,
Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>,
pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject:
Re: Solve a problem of LC_TIME of windows.
Date:
2009-01-07 13:25:01
Message-ID:
4964AD2D.7060009@hagander.net (view raw or flat )
Thread:
2008-09-15 13:34:13 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-09-24 09:11:41 from Magnus Hagander <magnus(at)hagander(dot)net>
2008-09-24 14:15:19 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-09-24 14:55:18 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-09-24 14:55:10 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-02 05:20:48 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-04 01:41:09 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-11 06:12:29 from "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
2008-11-11 06:48:44 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-11 14:10:29 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-16 13:36:50 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-24 04:13:19 from "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
2008-11-24 07:02:08 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-24 13:02:05 from Magnus Hagander <magnus(at)hagander(dot)net>
2008-11-24 14:48:22 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-24 14:55:09 from Magnus Hagander <magnus(at)hagander(dot)net>
2008-11-24 14:50:34 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-11-24 14:54:41 from Magnus Hagander <magnus(at)hagander(dot)net>
2008-11-24 15:00:42 from Magnus Hagander <magnus(at)hagander(dot)net>
2008-11-24 15:12:38 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-25 08:34:36 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-25 13:03:52 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-26 03:03:01 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-26 05:10:58 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2008-11-26 05:24:55 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-26 08:22:16 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-26 08:28:47 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2008-11-26 08:51:08 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2008-11-26 09:29:43 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2009-01-07 05:09:22 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2009-01-07 13:22:52 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2009-01-07 21:47:38 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2009-01-07 13:25:01 from Magnus Hagander <magnus(at)hagander(dot)net>
2009-01-08 02:54:36 from ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
2009-01-08 21:31:48 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2009-01-07 16:37:22 from Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
2009-01-07 16:44:31 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2009-01-09 13:05:03 from Magnus Hagander <magnus(at)hagander(dot)net>
2009-01-09 15:57:08 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2009-01-09 16:12:05 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2009-01-09 16:39:14 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2009-01-09 18:27:14 from Magnus Hagander <magnus(at)hagander(dot)net>
2009-01-11 07:23:32 from "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
2008-11-24 15:29:22 from Gregory Stark <stark(at)enterprisedb(dot)com>
2008-11-24 15:44:40 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Lists:
pgsql-hackers pgsql-patches
ITAGAKI Takahiro wrote:
> Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp> wrote:
>
>> Seems LC_CTYPE and LC_TIME should be convertible even though we use
>> wcsftime (which internally calls strftime?).
>
> Ok, wcsftime() requries both LC_TIME and LC_CTYPE are the same setting
> (at least encoding) on Windows.
>
> The attached patch is an updated version to fix cache_locale_time().
> Now it sets LC_TIME and LC_CTYPE to the specified locale and restore
> them at end of the function. I tested the patch on Windows XP Japanese
> Edition (SJIS) with UTF-8 and EUCJP databases, and worked expectedly.
>
> "#ifdef WIN32" codes seems to be ugly in the patch,
> but I have no other idea...
Hmm. Is this actually cleaner than using the original method as
suggested? Because if I understand things right, that version did *not*
require the setting of LC_CTYPE? (this is the version that uses strftime
and does two conversions)
//Magnus
In response to
Responses
pgsql-hackers by date
Next :From: Tom LaneDate: 2009-01-07 13:30:01
Subject : Re: error code 25001
Previous :From : Alvaro HerreraDate : 2009-01-07 13:22:52
Subject : Re: Solve a problem of LC_TIME of windows.
pgsql-patches by date
Next :From: Hiroshi InoueDate: 2009-01-07 16:37:22
Subject : Re: Solve a problem of LC_TIME of windows.
Previous :From : Alvaro HerreraDate : 2009-01-07 13:22:52
Subject : Re: Solve a problem of LC_TIME of windows.