Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3fb078257aab04823b4452ed0ad2d1b38e38269a
      
https://github.com/WebKit/WebKit/commit/3fb078257aab04823b4452ed0ad2d1b38e38269a
  Author: Alicia Boya Garcia <[email protected]>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M Tools/gdb/webkit.py

  Log Message:
  -----------
  gdb: Fix UTF-16 pretty printer
https://bugs.webkit.org/show_bug.cgi?id=312395

Reviewed by Adrian Perez de Castro.

ustring_to_string() (the function used for printing UTF-16 strings) was
wrongfully re-encoding a text string back into bytes, causing an error
later when concatenated with another text string.

This patch also removes comments about Unicode vs non-Unicode strings in
both ustring_to_string and lstring_to_string because they do not
represent how strings work in Python 3: both functions must return
regular strings.

* Tools/gdb/webkit.py:
(ustring_to_string): remove incorrect .encode('utf-8'), update doc
comment.
(lstring_to_string): update doc comment.

Canonical link: https://commits.webkit.org/311364@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to