You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetClipboardText() is not properly supporting UTF-8 string data on PLATFORM_WEB. E.g.: passing an unescaped char (like \n, \x0A, 0x0A) to it causes the program/game to crash on web.
Issue description
SetClipboardText()
is not properly supportingUTF-8
string data onPLATFORM_WEB
. E.g.: passing an unescaped char (like\n
,\x0A
,0x0A
) to it causes the program/game to crash on web.Relevant parts of code: L2142-L2153 and L2150-L2151. I'll investigate further.
Environment
Platform: Web
Browser: Chromium
Version: 115.0.5790.170 (64-bit)
OS: Linux Mint 21.1 (64-bit)
Platform: Web
Browser: Firefox
Version: 115.1.0esr (64-bit)
OS: Linux Mint 21.1 (64-bit)
Code Example
Minimal reproduction code to test the issue:
Edit 1: updated code example for clarity.
Edit 2: added UTF-8 literals test to code example.
The text was updated successfully, but these errors were encountered: