Thread overview
MIME type for d-source files?
Oct 08, 2004
Thomas Kuehne
Oct 09, 2004
Helmut Leitner
Oct 09, 2004
Thomas Kuehne
Oct 09, 2004
Thomas Kuehne
Oct 14, 2004
Alex Vincent
October 08, 2004
Hi,

is there any mime type in common use for d-source files?

If there isn't any, how about "text/x-d"?

Thomas


October 09, 2004

Thomas Kuehne wrote:
> 
> Hi,
> 
> is there any mime type in common use for d-source files?
> 
> If there isn't any, how about "text/x-d"?
> 
> Thomas

I'm no specialist on mime types, but this feels wrong intuitively.

Maybe
   text/plain;charset=utf-8

But there are specialists for Unicode/UTF issues here in this newsgroup, who will know what to use.

-- 
Helmut Leitner    leitner@hls.via.at
Graz, Austria   www.hls-software.com
October 09, 2004
Helmut Leitner schrieb
> > is there any mime type in common use for d-source files?
> >
> > If there isn't any, how about "text/x-d"?
>
> I'm no specialist on mime types, but this feels wrong intuitively.
>
> Maybe
>    text/plain;charset=utf-8
>

I dissagree :)

1) souce files can be utf-8/16/32.

2) As you can see in KDE/Gnome and e.g.
http://oregonstate.edu/cws/tutorials/faq/mime-types.html this kind of
definition is quite common (at least in the *nix world) for other
programming languages:
text/x-c++hdrtext/x-c++src	 text/x-java text/x-pascalThomas


October 09, 2004
Helmut Leitner schrieb
> > is there any mime type in common use for d-source files?
> >
> > If there isn't any, how about "text/x-d"?
>
> I'm no specialist on mime types, but this feels wrong intuitively.
>
> Maybe
>    text/plain;charset=utf-8
>

I dissagree :)

1) souce files can be utf-8/16/32.

2) As you can see in KDE/Gnome and e.g. http://oregonstate.edu/cws/tutorials/faq/mime-types.html this kind of definition is quite common (at least in the *nix world) for other programming languages:

text/x-c++hdr
text/x-c++src
text/x-java
text/x-pascal

3) providing a mime type can be very usefull in automated environments (e.g
version control or backup systems)

Thomas



October 14, 2004
Thomas Kuehne wrote:
> Hi,
> 
> is there any mime type in common use for d-source files?
> 
> If there isn't any, how about "text/x-d"?
> 
> Thomas
> 
> 
There's nothing wrong with that particular content-type.  I might prefer application/x-d, but that implies a working application, not source code.