diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b94e30f12a8..3980774df93 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-02-22 Tom Honermann + + * python/libstdcxx/v6/printers.py (register_type_printers): Add type + printers for u8string and u8string_view. + 2019-02-22 Tom Honermann * testsuite/18_support/byte/ops.cc: Validate diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 967d03a43c7..8f16b53c953 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1640,7 +1640,7 @@ def register_type_printers(obj): return # Add type printers for typedefs std::string, std::wstring etc. - for ch in ('', 'w', 'u16', 'u32'): + for ch in ('', 'w', 'u8', 'u16', 'u32'): add_one_type_printer(obj, 'basic_string', ch + 'string') add_one_type_printer(obj, '__cxx11::basic_string', ch + 'string') # Typedefs for __cxx11::basic_string used to be in namespace __cxx11: @@ -1690,7 +1690,7 @@ def register_type_printers(obj): # Add type printers for experimental::basic_string_view typedefs. ns = 'experimental::fundamentals_v1::' - for ch in ('', 'w', 'u16', 'u32'): + for ch in ('', 'w', 'u8', 'u16', 'u32'): add_one_type_printer(obj, ns + 'basic_string_view', ns + ch + 'string_view')