Re: New versions of gnumeric don't recognize the type of the file



On Sun, Feb 29, 2004 at 11:53:55AM -0600, gkanis cems umn edu wrote:
Hi,

I have asked this question before, but since I had not subscribed I was not 
able to answer to your questions or even to give an example.
As the title says gnumeric does not recognize the type of the file I want to 
import. I attach a file so that you can check it for yourself. Let me clarify 
something here: Gnumeric has no problem opening excel or gnumeric files. The 
file I have attached is a txt file (some data).
Currently, I am using gnumeric 1.2.0 because it works without any problems, 
with regard to file autorecognizition. I had installed gnumeric 
1.2.2-1.2.4-1.2.6 but all of them failed to import the file. The error 
message was "not supported file" or something like that. However, these 
versions of gnumeric can import the file if a select the type of the file.

I am using Gentoo.

I do not know what other informations you might need to identify the problem, 
but I will be glad to provide you with all kind of informations.

Thank you in advance for your time and help,
Vasilis


   1.0000000000000000E-02 :   2.1193795527852770 :  -2.5315328011685296 :  -8.2969010853721969E-04
   1.5090000000000001 :   1.2804472773959756E-05 :  -4.5409672416076668E-05 :  -1.1799168530627262E-05
   3.0080000000000000 :   1.3447421427924859E-06 :  -9.8789635705673210E-06 :  -1.1054802534464176E-06
   4.5070000000000006 :   1.8987713838862237E-06 :  -1.0090546429693335E-05 :  -9.6996099873442077E-07
   6.0060000000000002 :   4.6476667256141775E-06 :  -2.1452072004658774E-05 :  -2.2465836080355793E-06
   7.5050000000000008 :   1.7294507195120732E-05 :  -7.3976643381397107E-05 :  -8.2409287722455988E-06
   9.0040000000000013 :   8.5967270785054209E-05 :  -3.5032545676439537E-04 :  -4.0687682947010893E-05
  10.5030000000000001 :   5.2501565875510774E-04 :  -2.0687166036924397E-03 :  -2.4750273263403637E-04
  12.0020000000000007 :   3.7371388022369957E-03 :  -1.4366143525732757E-02 :  -1.7572539720815984E-03
  13.5010000000000012 :   2.9942631471621631E-02 :  -0.1129495193485995 :  -1.4054652386231090E-02
  15.0000000000000018 :   0.2635781393434841 :  -0.9795484724603494 :  -0.1235629314642693

Ahhhh I see what you want.  For 1.2.1 I made the text probe routine
more anal.  It will only guess *.csv, and *.tsv as potential text
import targets.  So for now you can just rename the files.  For
1.2.7 (due this weekend) I'll relax that a bit and

1) accept *.txt
2) Re-enable the content probe to accept files that have no nul
   characters in the first 80 bytes.  It's a kludge, but it's not
   too bad.  Lets see how that holds up.

PS
    In the future it would be easier for us if you file these with
    bugzilla.gnome.org

Thanks

Attachment: stf-probe.c
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]