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 27 Mar 2014 12:26:36 PM UTC  
 
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 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 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project 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>
Project 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 File(s):
   
   
Comment:
   

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 05 Apr 2014 09:21:19 PM UTCblpAssigned toNone=>jmd
    Sat 05 Apr 2014 04:35:59 PM UTCblpStatusNone=>Cannot Reproduce

    Back to the top


    Powered by Savane 3.1-cleanup1