Re: Questions regarding the shared mime spec

2011-10-02 Thread David Faure
On Saturday 01 October 2011 17:08:43 Johannes Pfau wrote: Maybe the testsuite has a different understanding of match-by-name than me: My library allows to explicitly do the matching by filename only (useful when a file doesn't exist (yet)). No, that's correct, we all have the same

Re: Questions regarding the shared mime spec

2011-10-02 Thread David Faure
On Saturday 01 October 2011 17:08:43 Johannes Pfau wrote: When checking multiple mime.cache files: Should I check those one after one or should I first do glob matches in all databases, then magic matches in all data bases, etc? The definitions in later levels override those in earlier levels.

Re: Questions regarding the shared mime spec

2011-10-01 Thread Johannes Pfau
Am 25.09.2011 09:08, schrieb David Faure: Hi Johannes, Many questions in a single email :-) On Tuesday 09 August 2011 18:54:34 Johannes Pfau wrote: The LiteralList: Is it safe to assume that the list is consistent? I.e. could there be a case insensitive Hello entry and another,

Re: Questions regarding the shared mime spec

2011-10-01 Thread Johannes Pfau
Am 26.09.2011 10:07, schrieb Alexander Larsson: On Sun, 2011-09-25 at 09:08 +0200, David Faure wrote: Hi Johannes, [skipping a few questions about mime.cache which I don't know yet] ReverseSuffixTreeNode.CHARACTER: What encoding is used? I guess UTF32? UTF-8, rather? I don't think this code

Re: Questions regarding the shared mime spec

2011-09-29 Thread David Faure
On Monday 26 September 2011 10:07:45 Alexander Larsson wrote: The text check should be done in xdg_mime_get_mime_type_for_data, not just _xdg_mime_cache_get_mime_type_for_data, in case some directory doesn't have a cache file and we fall back on using the magic file. Indeed, I missed a code

Re: Questions regarding the shared mime spec

2011-09-26 Thread Alexander Larsson
On Sun, 2011-09-25 at 09:08 +0200, David Faure wrote: Hi Johannes, [skipping a few questions about mime.cache which I don't know yet] ReverseSuffixTreeNode.CHARACTER: What encoding is used? I guess UTF32? UTF-8, rather? I don't think this code uses UTF-32 anywhere. Not sure it was tested

Re: Questions regarding the shared mime spec

2011-09-26 Thread Bastien Nocera
On Mon, 2011-09-26 at 10:07 +0200, Alexander Larsson wrote: On Sun, 2011-09-25 at 09:08 +0200, David Faure wrote: snip I just committed it, but I'm attaching the patch so that Alexander or Bastien can review it, this is my first commit to xdgmime [which seems to still be in CVS? I

Re: Questions regarding the shared mime spec

2011-09-25 Thread David Faure
Hi Johannes, Many questions in a single email :-) On Tuesday 09 August 2011 18:54:34 Johannes Pfau wrote: The LiteralList: Is it safe to assume that the list is consistent? I.e. could there be a case insensitive Hello entry and another, conflicting, case insensitive hello entry? Can the

Questions regarding the shared mime spec

2011-08-09 Thread Johannes Pfau
Hi, I'm writing a MIME implementation for the D programming language. As I want to eventually submit this for inclusion in the D standard library it must be boost licensed and I therefore can't look at existing implementations. This means I can only use the specification and the mime test database