Re: [PATCHES] Solve a problem of LC_TIME of windows.

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Solve a problem of LC_TIME of windows.
Date: 2008-11-26 08:28:47
Message-ID: 492D08BF.6090601@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

ITAGAKI Takahiro wrote:
> "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> wrote:
>
>> I think that MinGW does not have a direct relation.
>> #define_UNICODE is required for wcsftime.
>> Probably, ITAGAKI-san has only forgotten it.:-)
>
> No, definition of _UNICODE is independent from wcsftime (and
> other wcs functions). It affects only _tcs functions (_tcsftime).
>
> Wednesday in japanese should be the following sequences in unicode:
> wcs = 6c34 66dc 65e5 -- sui yo bi
>
> I rebuild my test on VC++2005 SP1, but it has the same bug.
> So, we cannot use wcsftime in Windows unless we build binaries
> in VC++2008 at least (and the bug is fixed there).

Please call setlocale(LC_CTYPE/LC_ALL, "") first.

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ITAGAKI Takahiro 2008-11-26 08:51:08 Re: [PATCHES] Solve a problem of LC_TIME of windows.
Previous Message ITAGAKI Takahiro 2008-11-26 08:22:16 Re: [PATCHES] Solve a problem of LC_TIME of windows.

Browse pgsql-patches by date

  From Date Subject
Next Message ITAGAKI Takahiro 2008-11-26 08:51:08 Re: [PATCHES] Solve a problem of LC_TIME of windows.
Previous Message ITAGAKI Takahiro 2008-11-26 08:22:16 Re: [PATCHES] Solve a problem of LC_TIME of windows.