Bug 137482 - Opening csv with semicolon delimiter formats column value wrong sometimes
Summary: Opening csv with semicolon delimiter formats column value wrong sometimes
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 17:33 UTC by nepi
Modified: 2020-10-14 21:28 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
dialog when opening csv file with correct formating (2.54 MB, image/png)
2020-10-14 17:34 UTC, nepi
Details
csv file (2.25 KB, text/csv)
2020-10-14 17:38 UTC, nepi
Details
Import Filter Setting for Text Field (53.49 KB, image/png)
2020-10-14 21:28 UTC, [REDACTED]
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nepi 2020-10-14 17:33:15 UTC
Description:
The wrong value is in column D. The last rows should show the value as "57,101", but Libreoffice makes it "57101". The preview dialog shows the separation correctly.
Seems as a format function is interfering with the value rendering. Because when I want to manually edit the value 57101 with entering a comma-sign after 57 it changes right back.

Tested with 7.0.2.2 and also 6.3

Actual Results:
field value shows 57101

Expected Results:
field value shows 57,101


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.2.2
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 16; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 nepi 2020-10-14 17:34:39 UTC
Created attachment 166369 [details]
dialog when opening csv file with correct formating
Comment 2 nepi 2020-10-14 17:37:23 UTC
The wrong value is in column D. The last rows should show the value as "57,101", but Libreoffice makes it "57101". The preview dialog shows the separation correctly.
Seems as a format function is interfering with the value rendering. Because when I want to manually edit the value 57101 with entering a comma-sign after 57 it changes right back.
Comment 3 nepi 2020-10-14 17:38:07 UTC
Created attachment 166370 [details]
csv file
Comment 4 [REDACTED] 2020-10-14 17:55:16 UTC
This is probably a usage error on import. Data in column D are imported using *Standard* setting (see attached screenshot https://bugs.documentfoundation.org/attachment.cgi?id=166369) for the column, which means that LibreOffice tries to detect numbers as such. 57,101 is English US format using ',' as thousands separator and LibreOffice recognizes that as a number. Hence it is imported correctly (as per settings) as '57101' The intention seems to be to import as text and import needs to be set to *Text* to achieve the desired result.
Comment 5 [REDACTED] 2020-10-14 21:28:27 UTC
Created attachment 166373 [details]
Import Filter Setting for Text Field

Please see the attachment for the import filter setting *Column type: Text* to import "57,101" as "57,101".