]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add pretty printer for std::locale
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Aug 2023 11:10:16 +0000 (12:10 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 24 Aug 2023 12:40:25 +0000 (13:40 +0100)
commit3d2e240af7704b7c4fc15fb3c8b282556841108d
tree9e9bf06ab661778961f1e1b1c1334cffc68a544e
parent701ce3c723623af13597c05df09a049c57c52fc0
libstdc++: Add pretty printer for std::locale

Print the locale's name, except when it uses the same named C locale for
all categories except one, in which case print something like:
std::locale = "en_GB.UTF-8" with "LC_CTYPE=en_US.UTF-8"

libstdc++-v3/ChangeLog:

* python/libstdcxx/v6/printers.py (StdLocalePrinter): New
printer class.
* testsuite/libstdc++-prettyprinters/locale.cc: New test.
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/locale.cc [new file with mode: 0644]