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

            Bug ID: 151370
           Summary: FILEOPEN RTF Document variables with accented
                    characters in their name/value imported incorrectly
           Product: LibreOffice
           Version: 7.5.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 150324

Created attachment 182851
  --> https://bugs.documentfoundation.org/attachment.cgi?id=182851&action=edit
Example file with accented characters in docvariable

This is a followup to bug 150267

When a document variable contains accented characters in the name or value, the
import is incorrect and only the part starting with the last accented character
is imported.

1, Open attached RTF file in Word and then in Writer
2/a, In Word go to the Developer ribbon, Visual Basic button
2/b, Under ThisDocument create and run the following macro:

Sub GetSetDocVars()
   For Each myVar In ActiveDocument.Variables
       MsgBox "Name =" & myVar.Name & vbCr & "Value = " & myVar.Value
   Next myVar
End Sub

This should print in the popup dialog the name
(LocalCharsÁrvízturoTükörfúrógép) and value (árvízturo tükörfúrógép) of the
document variable, full of accented characters.

3/a In Writer go to the Fields dialog (Ctrl-F2) and to Variables tab - User
field type.
3/b Observe the name and value is just "ép" so the last two chars.

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: cc038c471e96d766db404388b140364614898bf2
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=150324
[Bug 150324] [META] RTF (text) Field related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to