Commit 31a76ff7 authored by Raymond Toy's avatar Raymond Toy
Browse files

Include BOM in octet count for UTF-16 and UTF-32

`string-to-octets` includes the BOM when encoding strings.  To be
consistent, update `string-octet-count` to include the BOM when
computing the number of octets.

This is only needed for :UTF-16 and :UTF-32 formats.  The other utf-16
and utf-32 formats don't include the BOM.

Enable tests for these two formats too.
parent aa6f0565
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment