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 316816 - Unable to open UTF-16LE encoded file
Unable to open UTF-16LE encoded file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export Text
git master
Other All
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-09-20 22:46 UTC by Everett Starkweather
Modified: 2005-09-22 02:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Everett Starkweather 2005-09-20 22:46:08 UTC
Distribution/Version: XP Home SP2

When I attempt to open a TSV file created with SPB Finance Pocet PC software I 
get some characters in one field. The file opens fine in Open Office.
Comment 1 Morten Welinder 2005-09-21 01:20:36 UTC
We are going to need a sample file in order to get at this.

It would be best if you could create a sample file with nothing confidential
in it and attach it here.

If you only have files with confidential informtion in it, perhaps you could
send a copy to mwelinder@gmail.com and/or jody@gnome.org with a note that
says to delete the file right after we debug the issue.
Comment 2 Morten Welinder 2005-09-21 20:04:14 UTC
Ok, got a file.  There are several problems:

1. The file encoding is not guess right.  Since the encoding appears to be
   UTF-16LE, that is highly problematic.

2. Selecting "UTF-16BE" [yes, BE] in the gui for the text importer yields
   Pango warnings:
      (gnumeric:23131): Pango-WARNING **: Invalid UTF-8 string passed
      to pango_layout_set_text()

3. Selecting "UTF-16LE" decodes the file fine but the line count needs to be
   redone.  (It was done with the guessed encoding.)
Comment 3 Morten Welinder 2005-09-21 20:40:16 UTC
Actually, from the command line this loads fine for me.

How did you load the file?
Comment 4 Morten Welinder 2005-09-21 21:36:22 UTC
Fixed in Gnumeric and Goffice cvs HEAD.
Comment 5 Everett Starkweather 2005-09-21 22:12:58 UTC
I tried several approaches using the spreadsheet -- simply selecting the file 
gets a unsupported file format, any other option that I used that didn't get an 
error message ended with data in one field.
Comment 6 Andreas J. Guelzow 2005-09-22 02:22:18 UTC
The "unsupported file format" problem is 312347, a rather anoying bug imho.