[Libreoffice-bugs] [Bug 141209] URP bridge disposed by invalid UTF-16 (lone low surrogate) in Writer document
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 24 08:22:32 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=141209
Miklos Vajna <vmiklos at collabora.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |sbergman at redhat.com
--- Comment #1 from Miklos Vajna <vmiklos at collabora.com> ---
Patch to insert the problematic string on F12 into Writer in debug mode:
diff --git a/sw/source/uibase/docvw/edtwin.cxx
b/sw/source/uibase/docvw/edtwin.cxx
index 93560ec91f3b..6dee14bc7668 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1458,6 +1458,13 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt)
if ( getenv("SW_DEBUG") && rKEvt.GetKeyCode().GetCode() == KEY_F12 )
{
+ // xéx
+ // std::vector<sal_Unicode> aChars = {0x0078, 0x00e9, 0x0078, 0x0000};
+ // x, low surrogate, x
+ std::vector<sal_Unicode> aChars = {0x0078, 0xdf09, 0x0078, 0x0000};
+ rSh.Insert2(OUString(aChars.data()));
+ return;
+
if( rKEvt.GetKeyCode().IsShift())
{
GetView().GetDocShell()->GetDoc()->dumpAsXml();
That being said, I can reproduce this. CC Stephan (just FYI)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210324/a69ef3e9/attachment.htm>
More information about the Libreoffice-bugs
mailing list