Re: Solve a problem of LC_TIME of windows. - Mailing list pgsql-patches

From Hiroshi Saito
Subject Re: Solve a problem of LC_TIME of windows.
Date
Msg-id 00a201c91e55$8f912f80$0b01a8c0@IBMC9A0F63B40D
Whole thread Raw
In response to Solve a problem of LC_TIME of windows.  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
List pgsql-patches
Hi.

----- Original Message -----
From: "Alvaro Herrera" <alvherre@commandprompt.com>
> 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

pgsql-patches by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: Solve a problem of LC_TIME of windows.
Next
From: Bruce Momjian
Date:
Subject: Re: hash index improving v3