Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E755664FC34 for ; Wed, 24 Sep 2008 11:55:28 -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 31277-03 for ; Wed, 24 Sep 2008 11:55:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.guitar.ocn.ne.jp (guitar.ocn.ne.jp [122.28.30.209]) by postgresql.org (Postfix) with ESMTP id F293C64FC2F for ; Wed, 24 Sep 2008 11:55:22 -0300 (ADT) Received: from IBMC9A0F63B40D (p5023-ipadfx01funabasi.chiba.ocn.ne.jp [218.43.105.23]) by smtp.guitar.ocn.ne.jp (Postfix) with SMTP id 606FF29C8; Wed, 24 Sep 2008 23:55:20 +0900 (JST) Message-ID: <00a201c91e55$8f912f80$0b01a8c0@IBMC9A0F63B40D> From: "Hiroshi Saito" To: "Alvaro Herrera" , "Magnus Hagander" Cc: References: <03c301c91737$be5a2a30$0e01a8c0@IBMC9A0F63B40D> <48DA044D.10005@hagander.net> <20080924141519.GA10480@alvh.no-ip.org> Subject: Re: Solve a problem of LC_TIME of windows. Date: Wed, 24 Sep 2008 23:55:18 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200809/164 X-Sequence-Number: 7179 Hi. ----- Original Message ----- From: "Alvaro Herrera" > What about this line? > > #define STRLEN_MAX 255 > > Are we really sure the strftime format cannot be longer than that? Ahh, although the place to replace is here, is it said that MAX_L10 N_DATA is suitable? -- cache_locale_time(void) { .. char buf[MAX_L10N_DATA]; .. strftime(buf, MAX_L10N_DATA, "%a", timeinfo); Regards, Hiroshi Saito