Re: [PATCHES] Solve a problem of LC_TIME of windows. - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Re: [PATCHES] Solve a problem of LC_TIME of windows.
Date
Msg-id 20081125173024.7B45.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: [PATCHES] Solve a problem of LC_TIME of windows.  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
List pgsql-hackers
"Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> wrote:

> Umm, format operand seems to be a wide character sequence.

Here is a patch to work around the wide character format string.
The hack is the following line:
    +#define strftime(a,b,c,d) strftime_win32(a,b,L##c,d)

We use only literals in the format strings, the macro adds
wide character prefix (L"...") to them.

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


Attachment

pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: blatantly a bug in the documentation
Next
From: "Fujii Masao"
Date:
Subject: Re: Comments to Synchronous replication patch v3