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 00a101c91e55$8ad86260$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: "Magnus Hagander" <magnus@hagander.net>

> 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.

Ok, thanks!

strftime return to 0.
http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.71).aspx
MultiByteToWideChar and WideCharToMultiByte return to GetLastError.
http://msdn.microsoft.com/en-us/library/ms776413(VS.85).aspx

I will proposal the next patch.:-)

BTW, this is SQL for a check.
http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/DATECHECK.sql
Probably, all are included.
http://winpg.jp/~saito/pg_work/LC_MESSAGE_CHECK/LC_TIME_PATCH/LC_TIME_CHECK_LOCALE.sql

Regards,
Hiroshi Saito

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Solve a problem of LC_TIME of windows.
Next
From: "Hiroshi Saito"
Date:
Subject: Re: Solve a problem of LC_TIME of windows.