Re: Solve a problem of LC_TIME of windows.

"Hiroshi Saito" <[email protected]> Wed, 24 Sep 2008 23:55:18 +0900
Newsgroups gmane.comp.db.postgresql.devel.patches
Message-ID <00a201c91e55$8f912f80$0b01a8c0@IBMC9A0F63B40D>
Hi.

----- Original Message ----- 
From: "Alvaro Herrera" <[email protected]>
> 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

-- 
Sent via pgsql-patches mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches