Hi folks, The mimedb application will hang when it encounters a certain type of XML mime file. Here's an example of a file that screws up mimedb on the latest version of fish:
<?xml version="1.0" encoding="utf-8"?> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-ruby"> <!--Created automatically by update-mime-database. DO NOT EDIT!--> <sub-class-of type="application/x-executable"/> <sub-class-of type="text/plain"/> <comment xml:lang="en_GB">Ruby script</comment> <comment>Ruby XML Template</comment> </mime-type> If I were to save that under /usr/share/mime/application/x-ruby.xml, and then run "mimedb -d .rb", the task would hang. The problem seems to be the ending <comment>, which doesn't have a xml:lang attribute. If this comment is removed, or if the language-less comment is placed before the en_GB comment, then everything's fine. I'd guess it's a problem with the regular expressions in mimedb.c -- James Reeves ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
