Invalid UTF cannot be pasted, because it is silently discarded, without a notification, or option to remove it.
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
How To Reproduce It
-
Enter an invalid codepoint into a file. I achieved this via normal usage:
-
#!/usr/bin/env pwsh run0 dnf5 install --refresh -y konsole-25.12.1-1.fc43.x86_64 && ` konsole --hold -e coredumpctl debug ` --debugger=gdb ` --debugger-arguments="<#-ex 'set pagination off'#> -ex 'thread apply all bt full' -ex quit" -
Select “File”.
-
Select “Save Output As…”
-
Select “HTML” in the resultant
QFileDialog'sQComboBox. -
Enter an ASCII filename.
-
Select “Save”.
-
-
Invoke the generated file in
code-1.108.2-1769004860.el8.x86_64. 1 -
Select
.*. -
#!/usr/bin/env pwsh wl-paste --primary | wl-copy && ` firefox 'https://gitlab.com/-/snippets/new#source-editor-blob_local_47:~:text=rich%20text%20editing-,Files,-Delete%20file' && \ wl-paste --type text/plain
An Example Project
The Actual, Erroneous Behaviour
I am unable to paste anything past an invalid codepoint, but am not informed, upon submission, that my pasted content has been truncated at that point.
The Expected Behaviour
Instead, I should be able to paste all selected content, then informed whether I want to remove unsubmittable data, upon submission.
Demonstrative Logs And Media
GitLab
18.9.0-pre2a4948d27fc
My Environment
Name : firefox
Version : 147.0.1
Release : 5.fc43
Architecture: x86_64
Install Date: Thu 29 Jan 2026 00:03:08 GMT
Size : 270811677
Signature :
RSA/SHA256, Tue 27 Jan 2026 19:09:41 GMT, Key ID 829b606631645531
Source RPM : firefox-147.0.1-5.fc43.src.rpm
Build Date : Tue 27 Jan 2026 10:25:44 GMT
Build Host : buildhw-x86-03.rdu3.fedoraproject.org
Packager : Fedora Project
Vendor : Fedora Project
Organisation
@gitlab-bot label typebug
@gitlab-bot label reproduced on GitLab.com