Bug 158679

Summary: Calc Import - Text Import Dialog corrupts fixed width data, removes characters between the delimiters
Product: LibreOffice Reporter: Tom Daly <tom>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal    
Priority: medium    
Version: 7.6.4.1 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 91121    

Description Tom Daly 2023-12-13 11:04:41 UTC
Description:
Fixed width data delimited by commas, for example:

"ABCDEF:  ",201  ,200  ,0   ,"XX     ",224   ,"12345XYZ    ",99

The quotation marks, which are part of the data, are removed by the import process. 




Steps to Reproduce:
Using the example data provided:

1.menu: edit/paste special/paste special/use text import dialog
2.select "fixed width"
3.place a marker before and after each comma
4.click OK

Actual Results:
The quotation marks, which are part of the data, are removed by the import process. 

Expected Results:
The data is fixed width. The data between the delimiters must not be modified.

Referring to the example data:

Column A should contain
"ABCDEF:  "

Column E should contain
"XX     " 

The quotation marks are part of the data and should appear in the cell. 


Reproducible: Always


User Profile Reset: No

Additional Info:
This also happens in version 7.4. I updated to 7.6 and the defect exists in both versions. 

-------

Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 2; OS: Linux 5.9; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

-------

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 2; OS: Linux 5.9; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

-------

Selecting column type "Standard" or Text" during import makes no difference. 

Also, switching from "Fixed width" to "Separated by" and setting "String delimiter" to nothing then switching back to "Fixed width" for the rest of the dialog makes no difference.
Comment 1 ady 2023-12-13 11:41:37 UTC
While I can arrive to the desired result using the "Separated by" alternative, I guess that's not the point of the report.

I'm not sure whether there is some set of options that would achieve the desired result using "Fixed width".

Perhaps some of the grayed out options should rather be available for the "Fixed width" alternative too?

Setting as NEW.