GNOME Bugzilla – Bug 730453
GLocalFile doesn't use file data for guessing content type on windows
Last modified: 2018-05-24 16:34:49 UTC
From a user point of view the problem appears in meld application: Steps: 1.Open meld 2.Turn on syntax highlighting in preferences 3. start comparison of two xml files with non-xml extension (.csproj for example). Result: they are not syntax-highlighted. Expected: they are syntax-highlighted, on linux this functionality works fine. Note: for file with correct extensions syntax highlighting works There is two reasons for this: First: on windows glocalfileinfo's get_content_type doesn't use non-fast path at all. I failed to find a good reason for that, except that data-based content type detection is not implemented on windows version of g_content_type_guess now. https://github.com/GNOME/glib/blob/glib-2-40/gio/glocalfileinfo.c#L1243 Second: the mentioned g_content_type_guess problem (would add dependency on that bug).
added depend on g_content_type_guess problem
-- 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/glib/issues/881.