Re: Does mbutils.c really need to use L'\0' ?
От
Tom Lane
Тема
Re: Does mbutils.c really need to use L'\0' ?
Дата
Msg-id
7205.1278515676@sss.pgh.pa.us
Ответ на
Re: Does mbutils.c really need to use L'\0' ? (Takahiro Itagaki)
Список
Дерево обсуждения
Does mbutils.c really need to use L'\0' ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Does mbutils.c really need to use L'\0' ? Andrew Dunstan <andrew@dunslane.net>
Re: Does mbutils.c really need to use L'\0' ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Does mbutils.c really need to use L'\0' ? Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
Re: Does mbutils.c really need to use L'\0' ? Tom Lane <tgl@sss.pgh.pa.us>
Takahiro Itagaki writes: > I think all of the following codes work in the same way > at least on Windows, where the codes are actually used. > utf16[dstlen] = L'\0'; > utf16[dstlen] = '\0'; > utf16[dstlen] = 0; > utf16[dstlen] = (WCHAR) 0; The last one seems like the best choice, since it makes the intent visible. Committed that way --- thanks for the suggestion! regards, tom lane
В списке pgsql-hackers по дате отправления