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 512801 - text wrongly detected as application/octet-stream
text wrongly detected as application/octet-stream
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.15.x
Other Linux
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-01-29 14:13 UTC by Sebastien Bacher
Modified: 2008-01-29 14:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sebastien Bacher 2008-01-29 14:13:58 UTC
using GNOME 2.21.90

$ echo -e 'sometext\nexample' > nautilus; gvfs-info nautilus  | grep content
  standard::content-type: application/octet-stream
  standard::fast-content-type: application/octet-stream

The result is that nautilus can't open the example
Comment 1 Alexander Larsson 2008-01-29 14:19:52 UTC
2008-01-29  Alexander Larsson  <alexl@redhat.com>

	* gcontenttype.c (looks_like_text):
	Don't treat whitespace as control chars.