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:
  Show dependency tree
 
Reported: 2008-01-29 14:13 UTC by Sebastien Bacher
Modified: 2008-01-29 14:19 UTC (History)
0 users

See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.