<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This still isn’t working on Fedora 31 (x86_64):<div class=""><br class=""></div><div class=""><a href="https://gist.github.com/davezarzycki/1e2d91792df37c0c0295fda3414519fa" class="">https://gist.github.com/davezarzycki/1e2d91792df37c0c0295fda3414519fa</a></div><div class=""><br class=""></div><div class="">Everything was fine before r373452. Can we please revert r373452?</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 3, 2019, at 11:02 AM, David Zarzycki via libcxx-commits <<a href="mailto:libcxx-commits@lists.llvm.org" class="">libcxx-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Still doesn’t work. Maybe we should revert r373452<br class=""><br class=""><blockquote type="cite" class="">On Oct 3, 2019, at 9:19 AM, Fangrui Song via libcxx-commits <<a href="mailto:libcxx-commits@lists.llvm.org" class="">libcxx-commits@lists.llvm.org</a>> wrote:<br class=""><br class="">Author: maskray<br class="">Date: Wed Oct  2 23:19:50 2019<br class="">New Revision: 373570<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=373570&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=373570&view=rev</a><br class="">Log:<br class="">Fix libc++ pretty printer test for Python 3 after D67238 (take 2)<br class=""><br class="">In both Python 2 and Python 3, gdb.Value.string returns a 'str'. We just<br class="">need to delete a `encode("utf-8")` which would return a 'bytes' in<br class="">Python 3.<br class=""><br class="">Modified:<br class="">   libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py<br class=""><br class="">Modified: libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py?rev=373570&r1=373569&r2=373570&view=diff" class="">http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py?rev=373570&r1=373569&r2=373570&view=diff</a><br class="">==============================================================================<br class="">--- libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py (original)<br class="">+++ libcxx/trunk/test/pretty_printers/gdb_pretty_printer_test.py Wed Oct  2 23:19:50 2019<br class="">@@ -46,12 +46,10 @@ class CheckResult(gdb.Command):<br class="">            gdb.newest_frame().select()<br class=""><br class="">            expectation_val = compare_frame.read_var("expectation")<br class="">+            check_literal = expectation_val.string(encoding="utf-8")<br class="">            if "PrettyPrintToRegex" in compare_frame.name():<br class="">-                check_literal = expectation_val.string()<br class="">                test_fails = not re.match(check_literal, value)<br class="">            else:<br class="">-                check_literal_string = expectation_val.string(encoding="utf-8")<br class="">-                check_literal = str(check_literal_string.encode("utf-8"))<br class="">                test_fails = value != check_literal<br class=""><br class="">            if test_fails:<br class=""><br class=""><br class="">_______________________________________________<br class="">libcxx-commits mailing list<br class=""><a href="mailto:libcxx-commits@lists.llvm.org" class="">libcxx-commits@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-commits<br class=""></blockquote><br class="">_______________________________________________<br class="">libcxx-commits mailing list<br class=""><a href="mailto:libcxx-commits@lists.llvm.org" class="">libcxx-commits@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-commits<br class=""></div></div></blockquote></div><br class=""></div></body></html>