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 <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp> 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: cvs to git migration - keywords
Следующее
От: Peter Froehlich
Дата:
Сообщение: Re: Python Interface Hacking