After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 136729 - CSV import puts all columns into one cell
CSV import puts all columns into one cell
Status: RESOLVED NOTABUG
Product: Gnumeric
Classification: Applications
Component: import/export Text
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-03-10 09:31 UTC by Ulrich.Windl
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
CSV file being used (Created by OpenOffice AFAIK) (17.70 KB, text/plain)
2004-03-10 09:34 UTC, Ulrich.Windl
Details

Description Ulrich.Windl 2004-03-10 09:31:57 UTC
When opening a CSV (comma separated values) file as CSV file, all values in
one line end up as comma-separated data in one cell. This is not how things
should be. Version of gnumeric is gnumeric2-1.1.20-36.
Comment 1 Ulrich.Windl 2004-03-10 09:34:42 UTC
Created attachment 25441 [details]
CSV file being used (Created by OpenOffice AFAIK)
Comment 2 Andreas J. Guelzow 2004-03-10 13:56:10 UTC
I will have to try it out later, but I suspect that in locale de the
default field separator is semicolon rather than comma since comma is
the `decimal point'. So if you want to use comma as in the given file
you should use the configurable text import.

Since ther is no data loss and you can open the file using
`configurable text import' I am changing the severity to normal.
Comment 3 Andreas J. Guelzow 2004-03-10 23:49:06 UTC
I can replicate this under the de_DE locale. I am not sure though
whether gnumeric's behavious is wrong or the translation of
comma-separated-values ought to be Semikolon-...
Comment 4 Morten Welinder 2004-03-11 00:12:11 UTC
This has the feel of a damned-if-you-do and damned-if-you-don't bug.
Comment 5 Ulrich.Windl 2004-03-11 07:22:01 UTC
Regarding locale settings:
LC_COLLATE=POSIX
LANG=de_DE@euro

Despite of those settings I think that CSV should, as the name
suggests, always use comma as a separator, regardless of what some
locale suggests. The "configurable text import" should be the fany
version if required.
Comment 6 Andreas J. Guelzow 2004-03-11 07:27:48 UTC
Any reasonable translation of csv has to retain `comma' since the
language is technically independent from the decimal point character.
So I would agree with Ulrich...
Comment 7 Ulrich.Windl 2004-03-11 10:36:39 UTC
I think I've found the source of confusion: MS-Excel/2000 actually
uses a semicolon (at least in the Germanized version) to separate
values when saving as "CSV", while OpenOffice seems to use a comma
actually. The other difference I've seen is that OpenOffice puts
double-quotes around string values, while MS-Excel does not.
Comment 8 Jody Goldberg 2004-03-11 15:38:18 UTC
May I assume that OOo uses a period as a decimal seperator for CSV
export no matter what the locale ?
Comment 9 Andreas J. Guelzow 2004-03-11 20:41:33 UTC
that would make to much sense. 

The following is in OO 1.1:

I exported a file with OO default settings for csv and get:

0,8,"hello","World!!"
0,511111111111111,,

where the first entry in each record is supposed to be a decmal number!
Comment 10 Ulrich.Windl 2004-03-12 07:15:32 UTC
I tested it at home: OpenOffice 1.1 uses a comma to separate values.
StarOffice 5.2 uses a TAB to separate values. Both Programs call the
format "CSV". Both programs were using German locale and were using
German translations (just in case that matters).
Comment 11 Andreas J. Guelzow 2004-03-12 13:52:48 UTC
Just to emphaisze it:

Openoffice's handling in locale de is broken: it uses comma to
separate fields but it does not escape the commas used as decimal
points, so as soon as you have one decimal number on import it is
impossible to decide whether a given comma is a field separator  or a
deciaml point. 

In gnumeric if you force comma to be the separator (via configurable
export) the decimal numbers are being quoted so it is clear which
commas are field separators.

I suggest we leave it as it is.
Comment 12 Andreas J. Guelzow 2004-05-21 17:27:18 UTC
Well, we seem to be doing the same thing as MS-Excel/2000. Open Office handling
of csv export in locale de is broken. So I see no reason why we should change
anything.