Correctly handle multiple accept-language headers rather than just using the first header to determine the user's preferred Locale.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1622302 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56848
Improve handling of accept-language headers

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1622303 13f79535-47bb-0310-9956-ffa450edef68
Fix parsing bug when quality ends in invalid character(s)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1622304 13f79535-47bb-0310-9956-ffa450edef68
Merged revision 1622297 from tomcat/trunk:
Fix some potential resource leaks when reading property files. Reported by Coverity Scan.


git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1622306 13f79535-47bb-0310-9956-ffa450edef68