Bug 48731 - FIELOPEN: CSV: leading apostrophe is stripped if numeric value follows
Summary: FIELOPEN: CSV: leading apostrophe is stripped if numeric value follows
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Eike Rathke
URL:
Whiteboard: target:3.6.0 target:7.2.0
Keywords:
Depends on:
Blocks: 39868
  Show dependency treegraph
 
Reported: 2012-04-15 05:47 UTC by Eike Rathke
Modified: 2021-05-03 17:55 UTC (History)
0 users

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 Eike Rathke 2012-04-15 05:47:47 UTC
In CSV import a leading ' apostrophe is stripped if the field content continues with a numeric value, e.g. '3

This is related to
https://issues.apache.org/ooo/show_bug.cgi?id=60110
but the LibreOffice implementation already does not remove the apostrophe anymore from textual values, only from otherwise numeric values.
See test case https://issues.apache.org/ooo/attachment.cgi?id=37545
Comment 1 Not Assigned 2012-04-15 06:01:04 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=5a560e4300295629592716697f13bc803bdeba3c

resolved fdo#48731 in CSV import do not strip leading apostrophe
Comment 2 Commit Notification 2021-05-03 17:55:25 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6ba33f724986752ceffa27b4928d140a4b948ca7

tdf#48731: sc_subsequent_filters: Add unittest

It will be available in 7.2.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.