Bug 150151 - pasting text from writer misses a lot of characters When pasted into impress!
Summary: pasting text from writer misses a lot of characters When pasted into impress!
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.4.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.5.0 target:7.4.1
Keywords: bibisected, bisected, regression
: 150221 150562 150745 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-07-26 11:33 UTC by Andy
Modified: 2022-10-18 06:00 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2022-07-26 11:33:40 UTC
Description:
when copying some text from a writer doc, if you try to paste it into an impress file not as an ole object, but as the content of a impress text object, a lot of characters are missing: all the letters with an accent (very frequent in Italian!), and symbols (e.g. the apostrophe '; the ordinal sign °).
The pasted text misses all such characters, without any warning.

Steps to Reproduce:
1.open any writer file, select some text containing letter with an accent or special characters like ' or ° and copy it
2.Move to impress, create a text object and paste the copied text
3.you get the text  minus all accented letters and symbols

Actual Results:
Your text data is severely corrupted without any warning

Expected Results:
You should get the FULL text you copied in the impress text object


Reproducible: Always


User Profile Reset: No



Additional Info:
This is a regression, this copy and paste mechanism worked well in previous releases (I do not actually know which version it started to show up)
Comment 1 Mike Kaganski 2022-07-26 11:43:41 UTC
Repro with Version: 7.4.0.1 (x64) / LibreOffice Community
Build ID: 43e5fcfbbadd18fccee5a6f42ddd533e40151bcf
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (ru_RU); UI: en-US
Calc: CL

Selecting "open any writer file, select some text containing letter with an accent or special characters like ' or ° and copy it" from comment 0, pasting as plain text to Writer, then selecting it there, copying, and pasting (Ctrl+V) into a box in Impress, lost the "°" (but not "'").
Comment 2 Mike Kaganski 2022-07-26 13:37:44 UTC
Regression after commit 09558e2f45e27d572fd261562c884c2d2cc896a7
  Author Luboš Luňák <l.lunak@collabora.com>
  Date   Tue Mar 01 13:57:26 2022 +0100
    avoid a temporary buffer, append to the resulting one (tdf#145862)
Comment 3 Timur 2022-07-26 13:44:40 UTC
This:
 šđčćž ŠĐČĆŽ !”#$%&/()=?*,.-;:_  ' ° ~ˇ^˘°˛`˙’˝”¸
pastes this:
 š  !#$%&/()=?*,.-;:_  '  ~^`
Comment 4 Andy 2022-07-27 09:53:03 UTC
I just wanted to remind to those using Libreoffice in English that while in that language accented letters and the apostrophe  are practically non-existent, in other languages they are everywhere, so that the problem is WAY bigger than in English ;-(
Comment 5 Andy 2022-08-01 11:33:24 UTC Comment hidden (noise)
Comment 6 Luboš Luňák 2022-08-12 11:11:30 UTC
*** Bug 150221 has been marked as a duplicate of this bug. ***
Comment 7 Commit Notification 2022-08-12 13:35:13 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c62a987ebce52f7e30afb1f6bce4c7bd3ac45644

revert direct append to aToken in SvRTFParser::ScanText() (tdf#150151)

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Kamil Landa 2022-08-13 10:43:07 UTC
Verified, fixed in 7.5.0.0.alpha0+

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: f4027dd967a3292cfba689ca735d839b16ac2d92
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL
Comment 9 Commit Notification 2022-08-15 11:39:31 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/7ca35790effb9a5a1ee17bd9a669fc2c38fcb99f

revert direct append to aToken in SvRTFParser::ScanText() (tdf#150151)

It will be available in 7.4.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2022-08-16 05:54:10 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3dec8709c1cba25b62492354fe75e6a41a6dfe40

tdf#150151: sw: Add UItest

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Timur 2022-08-24 12:48:32 UTC
*** Bug 150562 has been marked as a duplicate of this bug. ***
Comment 12 Timur 2022-09-03 08:47:43 UTC
*** Bug 150745 has been marked as a duplicate of this bug. ***