Description: LibreOffice is not a good CSV editor because it effectively corrupts the CSV-based file format by switching the numbers to the locale's decimal separator on save. Steps to Reproduce: 1. Set locale to one that uses comma as decimal separator 2. Make sure LibreOffice is closed so that it is restarted in the above locale 3. Open a CSV file containing numbers with dot as decimal separator 4. Save (CTRL+S or Menu File / Save or the floppy disk icon) Actual Results: The CSV file is not the same anymore; the numbers are written out with comma as decimal separator. Expected Results: The CSV file should be effectively unchanged, using the same variant of the CSV file format: same separator between fields (columns), same decimal separator within numbers, same text encoding, ... If the original CSV was not fully internally consistent (such as non-uniform application of quoting of fields), it is OK to canonicalise this. Reproducible: Always User Profile Reset: No Additional Info: Version: 7.4.4.2 / LibreOffice Community Build ID: 40(Build:2) CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: fr-LU (fr_LU.UTF-8); UI: en-GB Debian package version: 1:7.4.4-3 Calc: threaded
Created attachment 185195 [details] Example of original CSV file (with dot as decimal separator)
Created attachment 185196 [details] CSV file saved by LibreOffice
Agree. IMO, CSV import should set the locale of the data to the value used in the import dialog. Maybe by setting corresponding changes in the default cell format. I don't recall any other "document-wide locale" setting.
See also: https://ask.libreoffice.org/t/zeros-disappearing-from-places-where-they-matter/87149