)]}'
{
  "commit": "bcd41a3d4808d37ff827dc055dd2b32e7be47078",
  "tree": "d95604840aafe19312c66a1c37442af75d8a1b25",
  "parents": [
    "7024087a9c9e4bd873916e74e7aa110cf3954b21"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 20 10:13:28 2026 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 20 10:13:28 2026 +0100"
  },
  "message": "[gdb/testsuite, Tcl 9.0] Avoid non-UTF-8 GDB IO (part 1)\n\nWhen running test-case gdb.python/py-source-styling.exp with Tcl 9.0, I get:\n...\npython gdb.execute(\u0027list 26\u0027)^M\n\u003cSNIP\u003e/* The following line contains a character that is non-utf-8.  This is a\n\u003cSNIP\u003e   critical part of the test as Python 3 can\u0027t convert this into a string\n\u003cSNIIP\u003e  using its default mechanism.  */\n\u003cSNIP\u003eFAIL: $exp: test_source_cache_style_tracking: \\\n  python gdb.execute(\u0027list 26\u0027) (timeout)\nERROR: i_read(spawn_id fd\u003d9): invalid or incomplete multibyte or wide character\n    while executing\n\"expect {\n-i exp9 -timeout 10\n        -re \".*A problem internal to GDB has been detected\" {\n            fail \"$message (GDB internal error)\"\n            gdb_internal_error...\"\n    (\"uplevel\" body line 1)\n    invoked from within\n\"uplevel $body\" POSIX EILSEQ {invalid or incomplete multibyte or wide \\\n  character} i_read(spawn_id fd\u003d9)\n: invalid or incomplete multibyte or wide character\nCouldn\u0027t send python gdb.execute(\u0027list 26\u0027, to_string\u003dFalse, styling\u003dTrue) to GDB.\n...\n\nI have tried a fix similar to the previous commit in default_gdb_spawn:\n...\n+    if {[tcl_version_at_least 9 0 0]} {\n+\tset fd [exp_open -leaveopen -i $res]\n+\tfconfigure $fd -encoding utf-8 -profile replace\n+    }\n+\n...\nbut that doesn\u0027t seem to work.\n\nWork around this by skipping the part that runs into this problem.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d33948\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "05fd077022bf075ea68604cdd4428c0014be6bbd",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.python/py-source-styling.exp",
      "new_id": "12d43e63ea84aefe0e3f25c146f110e2eb52062c",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.python/py-source-styling.exp"
    }
  ]
}
