[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

A minor problem in mime-type comparison

From: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2002-11-18 11:22:11 CET

kfogel@tigris.org wrote:
> + && (strcmp (mime_type, "image/x-xbitmap") != 0)
> + && (strcmp (mime_type, "image/x-xpixmap") != 0)

Um, last time this was discussed, I think everybody came to the
conclusion that the MIME-type can have attributes. So, just like we
can have:

  text/plain; charset=utf-8

We can have:

  image/x-xbitmap; version=2

or something. So these string compares here can fail.

Should we get actual MIME-type parsing functions implemented somewhere
before something else requires them again - or just fix this thing
here with a small hack?

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 18 11:23:08 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.