[
https://issues.apache.org/jira/browse/GUACAMOLE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Couchman resolved GUACAMOLE-2153.
--------------------------------------
Resolution: Fixed
> GUAC_*_UTF16 have different results on big-endian system
> --------------------------------------------------------
>
> Key: GUACAMOLE-2153
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-2153
> Project: Guacamole
> Issue Type: Bug
> Reporter: Sertonix
> Priority: Minor
> Fix For: 1.6.1
>
>
> The `GUAC_*_UTF16` functions read the code points casting to a uint16_t
> pointer without using le16toh and the like which causes the results to vary
> between little- and big-endian machines which causes some tests to fail.
> Since UTF-16 works with 16-bit values it has a byte order and that byte order
> is not well defined. There is a convention to use U+FEFF as first character
> which allows determining the endianess but it's commonly not present and
> doesn't seem to fit into the current code. The most common thing is to assume
> little-endian. If supporting both big- and little-endian UTF-16 is wanted one
> could create _UTF16LE and _UTF16BE variations of the functions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)