Bug 127938 - preserve CSV delimiter
Summary: preserve CSV delimiter
Status: RESOLVED DUPLICATE of bug 152336
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-03 06:41 UTC by arshamatonyan
Modified: 2022-12-01 09:59 UTC (History)
2 users (show)

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 arshamatonyan 2019-10-03 06:41:57 UTC
Description:
then opening file as csv , calc doesnt preserve document delimiter. so then saving the document it overrides delimiter set default in calc.
unless one saves with "Save As" and tickes filter checkbox, he will get delimiter selection option.

Steps to Reproduce:
1.open calc and fill some data in the cells
2.press "Save As" to save the document as "Text CSV", make sure you ticked "edit filter settings" 
3. in opened dialog select "Field delimiter" from "," to ";" and press ok.
4. open saved document with notepad or any text editor. now the file has been saved as text and fields separeted with ";" delimiter. close the document.
5. click "Save" in Calc. open the saved document again with text editor, now you notice that delimiter changed to ","

Actual Results:
,,,,,,,,,

Expected Results:
;;;;;;;;


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Oliver Brinzing 2019-10-03 07:55:41 UTC
I cannot confirm this, the choosen field delimiter is saved in user configuration for me:

<item oor:path="/org.openoffice.Office.Calc/Dialogs/CSVExport">
  <prop oor:name="FieldSeparator" oor:op="fuse">
    <value>;</value>
  </prop>
</item>

Which LO Version did you use?
Please copy information from Menu Help/About LibreOffice

but what i noticed:

If one opens a saved *.csv file and enables several delimiters in Text Import dialog, e.g.:

(*) Separated by:
[x]Tab [ ]Comma [x]Semicolon

LO seems to use the first delimiter on save. In my case the delimiter changed from a semicolon to tab.

maybe also related to:
Bug 121880 - Set semicolon ; as default Field Delimiter for CSV instead of comma , (avoid confusion for French and other)
Comment 2 QA Administrators 2020-04-01 03:35:15 UTC Comment hidden (obsolete)
Comment 3 Timur 2020-04-01 16:32:00 UTC
Oliver explained all.
But we may consider a duplicate.

*** This bug has been marked as a duplicate of bug 121880 ***
Comment 4 Mike Kaganski 2022-12-01 09:59:33 UTC

*** This bug has been marked as a duplicate of bug 152336 ***