GNOME Bugzilla – Bug 661910
Dots spits up when opening extension-less files
Last modified: 2011-10-29 19:41:46 UTC
Steps to reproduce: 1. Create a document in gedit and save it without a file extension. 2. Open the document in Dots Expected results: The file would be opened. Actual results: The file is not opened and the following traceback is shown: Traceback (most recent call last):
+ Trace 228817
self.document = document_new (filename)
if mime_type.startswith("text/"):
Created attachment 199121 [details] [review] proposed fix Fall back to guessing plaintext. (Also nuked some print statements whilst I was in there.)
Comment on attachment 199121 [details] [review] proposed fix Looks great, please go ahead and commit. Thanks!
Comment on attachment 199121 [details] [review] proposed fix http://git.gnome.org/browse/dots/commit/?id=c94862ab88ddcc5c48e559a37e3819a8bed64e8b