Bug 231

Summary: lacking text/x-csharp mimetype
Product: shared-mime-info Reporter: Jeroen Zwartepoorte <jeroen>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: alexl
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jeroen Zwartepoorte 2004-02-26 00:03:24 UTC
<mime-type type="text/x-csharp">
    <comment>C# source code</comment>
    <comment xml:lang="no">C#-kildekode</comment>
    <glob pattern="*.cs" />
  </mime-type>

Something like that should be added to freedesktop.org.xml. This is a regression
for GNOME which previously defined this mimetype before shared-mime-info was used.
Comment 1 Jeroen Zwartepoorte 2004-03-05 00:29:43 UTC
Hmm, Alex Larsson added the imo incorrect mimetype "text/x-csharpsrc" to
shared-mime-info.

I believe this is incorrect because there aren't any C# "header" files. The
mimetype of C files is text/x-csrc and text/x-chdr (same for C++) because they
are different files.

C#, like Java only has source files, no header files. So i believe the mimetype
for C# should be text/x-csharp (like Java's mimetype is text/x-java).

Can this be fixed please before 2.6.0 is rolled out?
Comment 2 Alexander Larsson 2004-03-05 02:38:52 UTC
I picked this purely to be simlar to existing mimetypes. There are no headers
for ada either, and still we have text/x-adasrc. However, we also have
text/x-pascal and text/x-java, so it seems we're not very consistant.

I'm fine with any of these.
Comment 3 Jeroen Zwartepoorte 2004-03-05 02:58:51 UTC
So what do you propose? Leaving the mimetype as it is? Or to "fix" it now and be
consistent? (i vote for the latter)
Comment 4 Alexander Larsson 2004-03-05 03:54:19 UTC
If we only change the csharp mimetype now there is no way to be consistent with
the other mimetypes (see e.g. java vs ada), and i don't think we can change the
older mimetypes (that could break apps).

We just have to pick a version for csharp. I don't care which one.
Comment 5 Jeroen Zwartepoorte 2004-03-05 04:01:07 UTC
Let's pick text/x-csharp then. gtksourceview for gnome 2.6 already uses this
mimetype.
Comment 6 Alexander Larsson 2004-03-05 05:39:50 UTC
Ok, i changed this.

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.