On Wednesday 19 August 2009, David Faure wrote:
> I made the changes in the spec, in the definition of the two mimetypes,
> and in update-mime-database.c (for parsing, and globs2 generation).
> Please find patch attached (I can commit if you're ok with it).

I forgot one thing. For "foo.C" not to match the glob "*.c", we should
make that one case-sensitive as well.

Updated patch for freedesktop.org.xml.in attached.

-- 
David Faure, [email protected], sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Index: freedesktop.org.xml.in
===================================================================
RCS file: /cvs/mime/shared-mime-info/freedesktop.org.xml.in,v
retrieving revision 1.416
diff -u -p -r1.416 freedesktop.org.xml.in
--- freedesktop.org.xml.in	31 Jul 2009 15:13:45 -0000	1.416
+++ freedesktop.org.xml.in	19 Aug 2009 22:59:24 -0000
@@ -26,6 +26,7 @@
   <!ELEMENT glob EMPTY>
   <!ATTLIST glob pattern CDATA #REQUIRED>
   <!ATTLIST glob weight CDATA #IMPLIED>
+  <!ATTLIST glob case-sensitive CDATA #IMPLIED>
 
   <!ELEMENT magic (match)+>
   <!ATTLIST magic priority CDATA #IMPLIED>
@@ -1268,7 +1269,7 @@ command to generate the output files.
       <match type="string" value="Core\001" offset="0"/>
       <match type="string" value="Core\002" offset="0"/>
     </magic>
-    <glob pattern="core"/>
+    <glob pattern="core" case-sensitive="true"/>
   </mime-type>
   <mime-type type="application/x-cpio">
     <_comment>CPIO archive</_comment>
@@ -4292,7 +4293,7 @@ command to generate the output files.
     <glob pattern="*.cpp"/>
     <glob pattern="*.cxx"/>
     <glob pattern="*.cc"/>
-    <glob pattern="*.C"/>
+    <glob pattern="*.C" case-sensitive="true"/>
     <glob pattern="*.c++"/>
   </mime-type>
   <mime-type type="text/x-changelog">
@@ -4331,7 +4332,7 @@ command to generate the output files.
     <_comment>C source code</_comment>
     <sub-class-of type="text/plain"/>
     <alias type="text/x-c"/>
-    <glob pattern="*.c"/>
+    <glob pattern="*.c" case-sensitive="true"/>
     <magic priority="30">
       <match type="string" value="/*" offset="0"/>
       <match type="string" value="//" offset="0"/>
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to