You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Nuutti Kotivuori <na...@iki.fi> on 2002/11/18 10:22:11 UTC

A minor problem in mime-type comparison

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