Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 52CCA64FCF2 for ; Wed, 26 Nov 2008 01:11:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45151-02 for ; Wed, 26 Nov 2008 01:11:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id B59B664FCBC for ; Wed, 26 Nov 2008 01:11:05 -0400 (AST) Received: (qmail 16426 invoked by uid 512); 26 Nov 2008 05:11:01 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.251) by sd2.tpf-fw-c.co.jp with SMTP; 26 Nov 2008 05:11:01 -0000 Message-ID: <492CDA62.306@tpf.co.jp> Date: Wed, 26 Nov 2008 14:10:58 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Hiroshi Saito CC: pgsql-hackers Subject: Re: [PATCHES] Solve a problem of LC_TIME of windows. References: <20081125173024.7B45.52131E4D@oss.ntt.co.jp> <68B4047E859E4A4C97FAC4077F23DDFA@HIRO57887DE653> <20081126114014.7D90.52131E4D@oss.ntt.co.jp> In-Reply-To: <20081126114014.7D90.52131E4D@oss.ntt.co.jp> 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=2.125 tagged_above=0 required=5 tests=DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: ** X-Archive-Number: 200811/1698 X-Sequence-Number: 128410 井上です。 ITAGAKI Takahiro wrote: > "Hiroshi Saito" wrote: > >> Um, It was not supported. >> http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/ITAGAKI_PATCH.txt > > Hmm... the implementation of wcsftime() in msvcrt seems to be > completely broken. > > I ran the attached test (localetest.c) and got the following results. > The point is that wcsftime() returns the same character codes as strftime() > i.e, the result is not an unicode string :-( > > The bug might be fixed in recently msvcrts in VC2005 or VC2008, > but at least mingw uses the old broken C runtime. 私はmingwを使っていないのでよくわからないのですが、ランタイムも一緒に 提供しているのですか? > We'd better to > use strftime() and multiple conversions to avoid the Microsoft's bug.