Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3A32764FC22 for ; Wed, 24 Sep 2008 06:11:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56998-03 for ; Wed, 24 Sep 2008 06:11:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by postgresql.org (Postfix) with ESMTP id 8812C64FC29 for ; Wed, 24 Sep 2008 06:11:45 -0300 (ADT) Received: from dynamic.hagander.net ([127.0.0.1]) (encrypted and authenticated) by svr2.hagander.net (Postfix) with ESMTP id 4E077DCCB6B; Wed, 24 Sep 2008 11:11:42 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mha-laptop.hagander.net (Postfix) with ESMTP id CA3A81243BB; Wed, 24 Sep 2008 11:11:41 +0200 (CEST) Message-ID: <48DA044D.10005@hagander.net> Date: Wed, 24 Sep 2008 11:11:41 +0200 From: Magnus Hagander User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Hiroshi Saito CC: pgsql-patches@postgresql.org Subject: Re: Solve a problem of LC_TIME of windows. References: <03c301c91737$be5a2a30$0e01a8c0@IBMC9A0F63B40D> In-Reply-To: <03c301c91737$be5a2a30$0e01a8c0@IBMC9A0F63B40D> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/160 X-Sequence-Number: 7175 Hiroshi Saito wrote: > Hi. > > I have problem of LC_TIME of windows.(CVS-HEAD) > > As for Version 8.3.3. It is edited by wrong gettext and is. (But, it is > expressed.) > http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/pg8.3.3-to_char_gettext_format.png > > > As for Version 8.4. It came to be used by Tom-san in strftime of > Native-windowsAPI. > It is good improvement.! But, strftime of Native returns a result by > CODEPAGE of > environment of operation by Windows with LC_TIME. In Japanese > environment, return > value is SJIS(CP932). Then, SJIS(CP932) can't be chosen by > SERVER_ENCODING.:-( > http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/pg84beta-03-to_char.png > > Then, I'm proposal patch. It is solved splendidly. > http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/DATECHECK_EUCJP.txt > > http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/DATECHECK_UTF8.txt In principle, I think this patch looks good. Do you (or somebody else) have an example where this breaks in an encoding where I can actually understand the characters, though ;-) That would make testing a whole lot easier... Also, the patch needs error checking. strftime() can fail, and the multibyte conversion functions can certainly fail. That will need to be added. //Magnus