bugPSPP - Bugs: bug #41973, Text files are not displayed in...

 
 

bug #41973: Text files are not displayed in file selection window, then using "text file" filter

Submitter:  Mindaugas <embar>
Submitted:  Thu 27 Mar 2014 12:26:36 PM UTC
   
 
Category:  Graphical User Interface Severity:  5 - Average
Status:  Cannot Reproduce Assigned to:  jmd
Open/Closed:  Open Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 10 Apr 2014 06:39:21 AM UTC, comment #10: 

I thought that the /* notation should have been understood as a wildcard by most operating systems, but I may be mistaken.

If the userbase thinks that all the text filters should be combined into one, then I have no strong objection to that.

John Darrington <jmd>
Group administrator
Wed 09 Apr 2014 03:54:14 PM UTC, comment #9: 

Why not to use this?:

filter = gtk_file_filter_new ();
  gtk_file_filter_set_name (filter, _("Text Files"));
  gtk_file_filter_add_mime_type (filter, "text/plain");
  gtk_file_filter_add_mime_type (filter, "text/csv");
  gtk_file_filter_add_mime_type (filter, "text/tab-separated-values");
  gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);

Mindaugas <embar>
Sun 06 Apr 2014 08:55:30 AM UTC, comment #8: 

@John

I think I don't understand your question.

I never tried to register the mime-type "text/*".
Looking in the mswindows registry I always see a mimetype linked to just 1 extension. I see no example of "<something>/*". Also I see no mimetype "text/*" in the IANA database. 

Is it really a mimetype? If so does anybody have an idea how I can register it in MSWindows?


Harry Thijssen <unknown_one>
Sun 06 Apr 2014 05:21:41 AM UTC, comment #7: 

harry,

Looking at your .nsi file there is no entry for text/*

Did you try entering that or was there a reason why you left it out?

John Darrington <jmd>
Group administrator
Sat 05 Apr 2014 09:21:19 PM UTC, comment #6: 

I'm tempted to merge "Text Files", "Text (.txt) Files", and "Plain Text (ASCII) Files" into a single selection that matches both mime type "text/" and extensions .txt and .TXT.

I'd like John's opinion on that first.  John?

Ben Pfaff <blp>
Group administrator
Sat 05 Apr 2014 08:42:20 PM UTC, comment #5: 

The mime types for
 ".txt"  "text/plain"
 ".text" "text/plain"
 ".csv"  "text/csv"
 ".tsv"  "text/tab-separated-values"
are defined and as far as I know PSPP/MSWindows handles the mimetypes correct but maybe there is a problem with the wildcard in text\*
 


Harry Thijssen <unknown_one>
Sat 05 Apr 2014 08:02:06 PM UTC, comment #4: 

"Text Files" selects all files that match a mime type "text/*".
"Text (*.txt) Files" selects files whose names end in .txt or .TXT.
If Windows doesn't handle mime types well, I guess we could make the former do both: files that match either the mime type or the extension.

Ben Pfaff <blp>
Group administrator
Sat 05 Apr 2014 06:44:59 PM UTC, comment #3: 

Hi

I don't see .txt files if the filter is "Text Files", but when I use the filter "Text (.txt) Files" I can see .txt files.

Any Idea what the intended difference between these 2 filters is?


Harry Thijssen <unknown_one>
Sat 05 Apr 2014 04:49:41 PM UTC, comment #2: 

Yes, this bug is in Windows compilation.
It does not affect Linux installation.

Mindaugas <embar>
Sat 05 Apr 2014 04:35:59 PM UTC, comment #1: 

.txt files show up OK here.  I guess that this must be a porting problem.  You are using Windows?  I will ask Harry Thijssen to take a look.

Ben Pfaff <blp>
Group administrator
Thu 27 Mar 2014 12:26:36 PM UTC, original submission:  

Go meniu File > Import data.
Go to folder with text files (*.txt).
PSPPIRE can not see any these files.
It can see files, if I select other file filter.

Mindaugas <embar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by unknown_one (Posted a comment)
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by embar (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-05 blp Assigned toNone jmd
    2014-04-05 blp StatusNone Cannot Reproduce

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code