On MacOS the encoding test "Encode UTF-16LE with BOM" fails.
Reason: I assumed inside the test application that "UTF-16" is implicit UTF-16LE with BOM.
Actually it is UTF16 LE or BE with BOM which totally makes sende.
MacOS uses UTF16BE while Linux systems I used for testing used UTF16LE.
On MacOS the encoding test "Encode UTF-16LE with BOM" fails.
Reason: I assumed inside the test application that "UTF-16" is implicit UTF-16LE with BOM. Actually it is UTF16 LE or BE with BOM which totally makes sende. MacOS uses UTF16BE while Linux systems I used for testing used UTF16LE.
On MacOS:
On Linux:
Solution: The test application needs to check for both possible results.