Bug 312395

Summary: gdb: Fix UTF-16 pretty printer
Product: WebKit Reporter: Alicia Boya García <aboya>
Component: Tools / TestsAssignee: Alicia Boya García <aboya>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Alicia Boya García
Reported 2026-04-15 11:11:04 PDT
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.
Attachments
Alicia Boya García
Comment 1 2026-04-15 11:11:48 PDT
EWS
Comment 2 2026-04-16 06:01:38 PDT
Committed 311364@main (3fb078257aab): <https://commits.webkit.org/311364@main> Reviewed commits have been landed. Closing PR #62832 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-04-16 06:02:14 PDT
Note You need to log in before you can comment on or make changes to this bug.