]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use UTF-32BE as wide encoding for big-endian machines [PR119725]
authorTomasz Kamiński <tkaminsk@redhat.com>
Mon, 14 Apr 2025 06:43:58 +0000 (08:43 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Mon, 14 Apr 2025 11:19:15 +0000 (13:19 +0200)
commitc2f1dda34defe739db6016dda97a6516243372e6
tree71b743d45ead5903556580cd0af71e25aef4ad2e
parenta48f934211434cac1be951c207ee76e4b4340fac
libstdc++: Use UTF-32BE as wide encoding for big-endian machines [PR119725]

This changes the `dg-options` line so UTF-32 with byte order native to the
machine is used as wide encoding.

We still do not handle mismatch in the byte order of the Unicode encodings
(UTF32-BE on little-endian machines). This would require larger changes,
as for example `unicode-data.h` tables are encoded with native byte order.

PR libstdc++/119725

libstdc++-v3/ChangeLog:

* testsuite/std/format/debug.cc: Updated dg-options.
* testsuite/std/format/debug_nonunicode.cc: Updated dg-options.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/std/format/debug.cc
libstdc++-v3/testsuite/std/format/debug_nonunicode.cc