Commit 30ddd928 authored by Chyla Zbigniew's avatar Chyla Zbigniew

Accept .gnumeric, .xml, .xml.gz not "everything but .xml".

* src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
"everything but .xml".
parent 45a6dfad
2001-10-01 Zbigniew Chyla <cyba@gnome.pl>
* src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
"everything but .xml".
2001-09-30 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-graph.c (gnm_graph_vector_as_string) : screw it.
......
2001-10-01 Zbigniew Chyla <cyba@gnome.pl>
* src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
"everything but .xml".
2001-09-30 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-graph.c (gnm_graph_vector_as_string) : screw it.
......
2001-10-01 Zbigniew Chyla <cyba@gnome.pl>
* src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
"everything but .xml".
2001-09-30 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-graph.c (gnm_graph_vector_as_string) : screw it.
......
2001-10-01 Zbigniew Chyla <cyba@gnome.pl>
* src/xml-io.c (xml_probe): Accept .gnumeric, .xml, .xml.gz not
"everything but .xml".
2001-09-30 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-graph.c (gnm_graph_vector_as_string) : screw it.
......
......@@ -3011,12 +3011,12 @@ xml_probe (GnumFileOpener const *fo, const gchar *filename, FileProbeLevel pl)
GnumericXMLVersion version;
if (pl == FILE_PROBE_FILE_NAME) {
char const * extension = g_extension_pointer (filename);
if (extension == NULL)
return FALSE;
return (g_strcasecmp (extension, "gnumeric") == 0 ||
g_strcasecmp (extension, "xml.gz") == 0 ||
g_strcasecmp (extension, "xml"));
char const *extension = g_extension_pointer (filename);
return (extension != NULL &&
g_strcasecmp (extension, "gnumeric") == 0 ||
g_strcasecmp (extension, "xml.gz") == 0 ||
g_strcasecmp (extension, "xml") == 0);
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment