[vlc-devel] [DISCUSSION] To use or not to use EMPTY_STR?
Filip Roséen
filip at atch.se
Fri Aug 5 14:53:54 CEST 2016
Hi Donald,
On 16/08/05 08:47, Donald Campbell wrote:
> It [EMPTY_STR is] not Unicode safe. A UTF-16 BOM may begin with 0x00
> depending on system endian.
Though, if the entity referred to by `str` is meant to refer to a string
encoded as UTF-16, `*str` should refer to a type that includes the entire
*BOM* (like a proper `wchar_t`), and not just the first byte.
I do not think that is a problem with the macro per se, if anything it
would be a side-effect of invalid usage of the type used to refer to the
string.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160805/0b40a88d/attachment.html>
More information about the vlc-devel
mailing list