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

Submitted by:  Mindaugas <embar>
Submitted on:  Thu Mar 27 12:26:36 2014  
Category: Graphical User InterfaceSeverity: 5 - Average
Status: Cannot ReproduceAssigned to: John Darrington <jmd>
Open/Closed: OpenRelease: None
Effort: 0.00

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Thu Apr 10 06:39:21 2014, 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>
Project AdministratorIn charge of this item.
Wed Apr 9 15:54:14 2014, 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 Apr 6 08:55:30 2014, comment #8:


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 Apr 6 05:21:41 2014, comment #7:


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>
Project AdministratorIn charge of this item.
Sat Apr 5 21:21:19 2014, 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>
Project Administrator
Sat Apr 5 20:42:20 2014, 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 Apr 5 20:02:06 2014, 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>
Project Administrator
Sat Apr 5 18:44:59 2014, comment #3:


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 Apr 5 16:49:41 2014, comment #2:

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

Mindaugas <embar>
Sat Apr 5 16:35:59 2014, 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>
Project Administrator
Thu Mar 27 12:26:36 2014, 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Apr 5 21:21:19 2014blpAssigned toNone=>jmd
    Sat Apr 5 16:35:59 2014blpStatusNone=>Cannot Reproduce

    Back to the top

    Powered by Savane 3.1-cleanup1