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 730453 - GLocalFile doesn't use file data for guessing content type on windows
GLocalFile doesn't use file data for guessing content type on windows
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gio
2.40.x
Other Windows
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on: 664043
Blocks:
 
 
Reported: 2014-05-20 15:12 UTC by Vasily Galkin
Modified: 2018-05-24 16:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vasily Galkin 2014-05-20 15:12:37 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).
Comment 1 Vasily Galkin 2014-05-20 15:14:53 UTC
added depend on g_content_type_guess problem
Comment 2 GNOME Infrastructure Team 2018-05-24 16:34:49 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/glib/issues/881.