File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libcxx/test/std/localization/locales/locale/locale.members Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111// REQUIRES: std-at-least-c++26
1212// REQUIRES: locale.en_US.UTF-8
1313// UNSUPPORTED: no-localization
14+ // UNSUPPORTED: android
1415
1516// class locale
1617
1718// text_encoding encoding() const
1819
19- // Concerns:
20- // 1. Default locale returns a text_encoding representing "ASCII"
21- // 2. Locale built with en_US.UTF-8 returns text_encoding representing "UTF-8"
22-
2320#include < cassert>
2421#include < locale>
2522#include < text_encoding>
3027using id = std::text_encoding::id;
3128
3229int main (int , char **) {
30+ // FIXME: enable once locale::encoding() is implemented
3331#if false
3432 {
33+ // 1. Default locale returns a text_encoding representing "ASCII"
3534 std::locale loc;
3635
3736 auto te = loc.encoding ();
@@ -41,6 +40,7 @@ int main(int, char**) {
4140 }
4241
4342 {
43+ // 2. Locale built with en_US.UTF-8 returns text_encoding representing "UTF-8"
4444 std::locale utf8Locale (LOCALE_en_US_UTF_8);
4545
4646 auto te = utf8Locale.encoding ();
You can’t perform that action at this time.
0 commit comments