Branch: refs/heads/webkitglib/2.54
Home: https://github.com/WebKit/WebKit
Commit: 11de907ddb27027bbafe845a010aa6bc3be9f840
https://github.com/WebKit/WebKit/commit/11de907ddb27027bbafe845a010aa6bc3be9f840
Author: Claudio Saavedra <[email protected]>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M Source/JavaScriptCore/API/glib/JSCException.cpp
M Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp
Log Message:
-----------
REGRESSION(308608@main): [GLib] jsc_exception_report() garbles non-ASCII
characters
https://bugs.webkit.org/show_bug.cgi?id=326080
Reviewed by Patrick Griffis.
The source URI, the error message and the backtrace are UTF-8 C strings, but
308608@main appends them to the StringBuilder as spans of char, which the
string adapters treat as Latin-1. The final utf8() conversion then encodes
each byte of a multi-byte sequence separately, so any non-ASCII character in
a URI or message comes out double-encoded. Decode the three strings as UTF-8
before appending them.
main fixed this as part of 322035@main, which depends on string types the
2.54 branch does not have, so this is a targeted fix for the branch. The
test case 322035@main added for this is brought over unchanged.
* Source/JavaScriptCore/API/glib/JSCException.cpp:
(jsc_exception_report):
* Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
(testJSCExceptions):
Canonical link: https://commits.webkit.org/317695.399@webkitglib/2.54
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications