After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744510 - RSVG-convert: don't see svgz mime under windows
RSVG-convert: don't see svgz mime under windows
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
2.40.x
Other Windows
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-14 04:36 UTC by Bakhtiar Hasmanan
Modified: 2017-12-13 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bakhtiar Hasmanan 2015-02-14 04:36:49 UTC
svgz failed to open by rsvg-convert because to MIME registered with svgz (only svg)

I suggest something like

@@ -227,12 +246,17 @@
                                                 NULL,
                                                 NULL))) {
                 const char *content_type;
-                char *gz_content_type;
-
                 content_type = g_file_info_get_content_type (file_info);
+#ifdef G_OS_WIN32
+/* Seems win32 don't have svgz mime registry, just verify the extension */
+                if (!stricmp (content_type, ".svgz"))
+                    compressed = TRUE;
+#else
+                char *gz_content_type;
                 gz_content_type = g_content_type_from_mime_type ("application/x-gzip");
                 compressed = (content_type != NULL && g_content_type_is_a (content_type, gz_content_type));
                 g_free (gz_content_type);
+#endif
                 g_object_unref (file_info);
             }
Comment 1 Bakhtiar Hasmanan 2015-02-14 04:37:45 UTC
^because to MIME > because no MIME
Comment 2 GNOME Infrastructure Team 2017-12-13 18:06:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/103.