]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Do not assume existence of char8_t codecvt facet
authorJoseph Faulls <Joseph.Faulls@imgtec.com>
Fri, 2 Jun 2023 15:44:48 +0000 (15:44 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 6 Jun 2023 11:43:47 +0000 (12:43 +0100)
commit3d9b3ddb5fc9087c17645d53e6bcb1881e1955a4
tree2b48ddb26ccb5da68ce17128372dfd0cea84fea6
parent7e8e071c4b64f1b6ea5ddf528724fc793a0f0e36
libstdc++: Do not assume existence of char8_t codecvt facet

It is not required that codecvt<char8_t, char, mbstate_t> facet be
supported by the locale, nor is it added as part of the default locale.
This can lead to dangerous behaviour when static_cast.

libstdc++-v3/ChangeLog:

* include/bits/locale_classes.tcc: Remove check for
codecvt<char8_t, char, mbstate_t> facet.
libstdc++-v3/include/bits/locale_classes.tcc