Hi Harry, I added the Key
application/x-spss-sav with String Extension set to .sav in the registry in HKEY_CLASSES_ROOT\MIME\Database\Content Type and then the file open dialog shows the .sav files also when the filter „Data and Syntax“ is applied. So the problem could be fixed on Windows 7 by adding this key to the registry. See https://msdn.microsoft.com/en-us/library/ms775148(v=vs.85).aspx The .zsav file is always shown because there is an explicit search for this extension in the filter setup. See: http://git.savannah.gnu.org/cgit/pspp.git/tree/src/ui/gui/psppire-window.c#n657 Only the .sav files and .por files are searched via mime type. Fritz > Am 07.01.2018 um 12:14 schrieb Friedrich Beckmann <[email protected]>: > > Hi Harry, > > the discussion about the mime type problem on MacOS is here: > > https://savannah.gnu.org/bugs/?52323 > > The changes are pretty recent and are to my knowledge not backported > to 2.54 yet. However the file filter problems for .sav files which are related > to mime-type handling (i.e. missing connection between mime-type and file type > extension .sav) had to be handled by adding the mime definition on MacOS via > the Info.plist file which is part of the application bundle. > > I guess this has to be done also on Windows but I am not familiar with the > way how to do it there. You mentioned the registry but does that mean that > the mime type is connected to the file extension? > > According to the glib/gio code here: > > https://github.com/GNOME/glib/blob/master/gio/gcontenttype-win32.c#L316 > > the registry entry should be located here: > > https://msdn.microsoft.com/en-us/library/ms775148(v=vs.85).aspx > > For the file filtering to work, there should be the mime type > > application/x-spss-sav > > connected to the „.sav“ file extension > > Fritz > >> Am 06.01.2018 um 21:45 schrieb Harry Thijssen <[email protected]>: >> >> Hi Friedrich, >> >> It seems there is even in glib 2.52 a problem with the mime-types, but I >> couldn't find a reference on the internet yet. I can workaround by patching >> pspp-windows.c and add the file extensions. >> >> However if I try to import a ods file I get an empty screen etc like Gene >> described. If I hit contine I het a crash. Does the same happen on MacOS? >> >> Have fun > _______________________________________________ pspp-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/pspp-dev
