Re: Does mbutils.c really need to use L'\0' ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Does mbutils.c really need to use L'\0' ?
Date
Msg-id 7205.1278515676@sss.pgh.pa.us
Whole thread Raw
In response to Re: Does mbutils.c really need to use L'\0' ?  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: cvs to git migration - keywords
Next
From: Peter Froehlich
Date:
Subject: Re: Python Interface Hacking