pidl: Add new ‘u16string’ type
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 19 Nov 2023 21:07:22 +0000 (10:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Nov 2023 21:50:32 +0000 (21:50 +0000)
commitf94b981e8641a6b18f72a50b6596e9275bb034e4
tree88e1049efb96bcc24a514c0e439e92d45f4e4a63
parent436814572d435f6de4f3b390f07d0124fc4a7105
pidl: Add new ‘u16string’ type

This type represents a UTF‐16–encoded string. These strings are kept
UTF‐16–encoded rather than converted to the Unix charset to be stored in
memory; this avoids issues regarding NULL termination and conversion
between character sets. We want to be able to handle strings that are
not valid UTF‐16.

Not bumping the NDR ABI version, because there hasn’t been an NDR
release since commit c4f281e9ae36c225b6003e0fa1cb8fb2e67bf543.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ABI/ndr-4.0.0.sigs
librpc/ndr/libndr.h
librpc/ndr/ndr_string.c
pidl/lib/Parse/Pidl/NDR.pm
pidl/lib/Parse/Pidl/Samba4/Python.pm
pidl/lib/Parse/Pidl/Typelist.pm
pidl/tests/typelist.pl