https://bugs.documentfoundation.org/show_bug.cgi?id=152694

            Bug ID: 152694
           Summary: Problem copying text from Writer to TRichViewEdit
                    (.rtf)
           Product: LibreOffice
           Version: 7.3.7.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: voskovshu...@gmail.com

Description:
We have a problem using Libre Office Writer in conjunction with our
Delphi-based Medical Inormation System (MIS). 
Some doctors previously used to keep their exam protocols (in Cyrillic
codepage) in .ODT files, and now copy/paste some pieces of text from these
files into fields of MIS screen forms. In some cases they get garbaged text
there.

We’ve investigated this situation and are able to provide detailed information
in order to ask you to fix this problem. Description follows.


Steps to Reproduce:
There is some .ODT file
1. There is some .ODT file. I open it with Writer, copy the contents.
2. I paste it into the RTF text editor window in our MIS (which is based on
TRichViewEdit – Delphi environment component) - there is no problem yet, text
is pasted as expected.
3. Then in Writer editor I change font of the source text from Times New Roman
to any other font with Cyrillic codepage, even to the same Times New Roman.
4. After this I copy the same text, paste it into the same RTF editor windiw,
but in this case the font and non-printable characters look differently.
Moreover, if I then change font to any other in TRichViewEdit editor window,
all the consequent chars are inserted in Japaneese codepage.
5.  In order to investigate the issue I save this test to file 1.rtf and then
open it with Notepad++, plain test editor. The picture is as  follows.
For the first time the text was copied using the font \f1 with the attribute
\lang1049, that corresponds to Cyrillic codepage. The second time, after I’ve
changed the font, the text was pasted using the font \f2 with attribute
\lang1041 (Japanese language) fcharset128 (Japanese codepage). It seems this
fact causes the text to be garbaged.

Actual Results:
After I’ve changed the font, the text was pasted using the font \f2 with
attribute \lang1041 (Japanese language) fcharset128 (Japanese codepage).

Expected Results:
After changing the font, the text will be inserted in the \f1 font with the
\lang1049 attribute, which corresponds to the Cyrillic code page.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.3.7.2 (x64) / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to