Received: (qmail 24303 invoked by uid 2012); 21 Dec 1998 15:51:14 -0000 Message-Id: <19981221155114.24302.qmail@hyperreal.org> Date: 21 Dec 1998 15:51:14 -0000 From: Sven Neuhaus Reply-To: sven@fuzzy.ping.de To: apbugs@hyperreal.org Subject: Multiple AddLanguage with the same file extension may be confusing X-Send-Pr-Version: 3.2 >Number: 3570 >Category: mod_mime >Synopsis: Multiple AddLanguage with the same file extension may be confusing >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: doc-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 21 09:10:00 PST 1998 >Last-Modified: Thu Apr 29 12:57:30 PDT 1999 >Originator: sven@fuzzy.ping.de >Organization: >Release: 1.3.3 >Environment: Any OS >Description: If you have multiple AddLanguage with the same file extension, the LAST one will be used for "reverse" lookups (extension to language mapping), but all of them will be used for "forward" lookups (language to extension). This does not seem to be mentioned in the documentation. It would be very helpful if the default srm.conf had a note added to explain this behaviour. >How-To-Repeat: If someone is not aware of this, she might use AddLanguage en .en AddLanguage en-us .en AddLanguage en-uk .en Then, the language reported for all documents with the .en ending would be "en-uk". >Fix: Add a note in the default srm.conf.dist and document the behaviour in the mod_mime documentation .../mod/mod_mime.html#addlanguage >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: coar State-Changed-When: Thu Apr 29 12:57:28 PDT 1999 State-Changed-Why: This note has been added to the mom_mime documentation for the next release after 1.3.6. The config files have not been updated, though, because this behaviour occurs for several other directives and documenting only one isn't the Right Thing. People can read the docco if things seem confusing; the config files contain comments, not documentation. Thanks for the report and for using Apache! >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]