Re: CVS compile failure
От | Marc G. Fournier |
---|---|
Тема | Re: CVS compile failure |
Дата | |
Msg-id | 20040719020210.N797@ganymede.hub.org обсуждение исходный текст |
Ответ на | Re: CVS compile failure (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: CVS compile failure
|
Список | pgsql-hackers |
On Mon, 19 Jul 2004, Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: >> I am seeing a compile failure in current CVS from strptime(): >> ./backend/access/transam/xlog.c: if (strptime(tok2, "%Y-%m-%d %H:%M:%S", &tm) == NULL) >> BSD/OS does not have that function. > > Hmph. I was wondering if that was really portable or not :-(. > Any ideas about a quick-and-dirty replacement? > > Maybe we could call abstimein or something like that. We just want to > convert a human-readable string value to a time_t, and I can't say that > I thought the strptime behavior was all that friendly anyway... Under FreeBSD: " The strptime() function does not correctly handle multibyte characters in the format argument" Not sure how critical that is for what you are doing, mind you ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
В списке pgsql-hackers по дате отправления: