Skip to content

Commit 8ddc5ab

Browse files
committed
Add comments for (disabled) locale::encoding() test
1 parent b3a2da7 commit 8ddc5ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/test/std/localization/locales/locale/locale.members/encoding.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
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>
@@ -30,8 +27,10 @@
3027
using id = std::text_encoding::id;
3128

3229
int 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();

0 commit comments

Comments
 (0)