Bug 13681 - D source detected as C source
Summary: D source detected as C source
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 11837
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-15 15:31 UTC by Robert DaSilva
Modified: 2010-02-01 05:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
a patch to freedesktop.org.xml (743 bytes, patch)
2007-12-15 15:33 UTC, Robert DaSilva
Details | Splinter Review
proposed patch (548 bytes, patch)
2010-01-29 12:43 UTC, Daniel Leidert
Details | Splinter Review
testcase (example from dsource.org) (1.90 KB, text/x-dsrc)
2010-01-29 12:45 UTC, Daniel Leidert
Details

Description Robert DaSilva 2007-12-15 15:31:00 UTC
+++ This bug was initially created as a clone of Bug #11837 +++

Most source files for curly bracket langs are listed as sub-types of x-csrc, but x-dsrc isn't. This causes nautilus to refuse to open D source file that start with comments. I'll attach a patch.
Comment 1 Robert DaSilva 2007-12-15 15:33:15 UTC
Created attachment 13133 [details] [review]
a patch to freedesktop.org.xml
Comment 2 Daniel Leidert 2010-01-29 12:43:36 UTC
Created attachment 32907 [details] [review]
proposed patch

I cannot reproduce the issue anymore. However, the proposed patch has been applied in Debian in May 2008 without any reported negative effects.
Comment 3 Daniel Leidert 2010-01-29 12:45:07 UTC
Created attachment 32908 [details]
testcase (example from dsource.org)
Comment 4 Bastien Nocera 2010-02-01 05:41:18 UTC
commit 80749cffbf41197c036daddd9f9739aaaf073737
Author: Daniel Leidert <daniel.leidert.spam@gmx.net>
Date:   Mon Feb 1 13:39:09 2010 +0000

    Make D sources a sub-class of C sources
    
    http://bugs.freedesktop.org/show_bug.cgi?id=13681


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.