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

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: "Hiroshi Inoue" <inoue(at)tpf(dot)co(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:22:16
Message-ID: 20081126171019.EFC3.52131E4D@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


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

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2008-11-26 08:28:47 Re: [PATCHES] Solve a problem of LC_TIME of windows.
Previous Message Gianni Ciolli 2008-11-26 07:41:51 [REVIEW] (was Re: usermap regexp support)

Browse pgsql-patches by date

  From Date Subject
Next Message Hiroshi Inoue 2008-11-26 08:28:47 Re: [PATCHES] Solve a problem of LC_TIME of windows.
Previous Message Hiroshi Saito 2008-11-26 05:24:55 Re: [PATCHES] Solve a problem of LC_TIME of windows.