r1825783 | jamessan | 2018-03-03 20:53:50 +0000 (Sat, 03 Mar 2018)
Ensure test data is correctly aligned before calling svn_utf__utf{16,32}_to_utf8
On systems with strict alignment requirements (such as alpha), using the char*
tc->source as apr_uint16_t*/apr_int32_t* can cause the tests to fail, as
reported at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823133#22>.
* subversion/tests/libsvn_subr/utf-test.c:
(test_utf_conversions): Create apr_uint16_t and apr_int32_t arrays to which
the source string is copied before calling the conversion function, thus
assuring proper alignment. Consolidate the handling of conversions where
length is calculated and where a certain number of codes are converted.
Found by: Michael Cree <mcree{_AT_}orcon.net.nz>