DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10559

[PATCH] parseLocale in I18nUtils.java

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From [EMAIL PROTECTED]  2002-07-09 07:50 -------
Michael,

I don't like depending on Regexp for such a simple task. Won't the same thing 
achieved by changing this line like this:
    private static final String LOCALE_DELIMITER   = "_@.-";
?

Could you please tell which browsers use @ and '.' in Accept-Language? I'll 
indicated that in JavaDocs. 

BTW, according to Servlet 2.3 specification and mentioned in it RFC 2616, 
request.getLocale() returns language codes that use '-' as separators and can 
contain an additional qualifier, e.g.:
en-GB;q=0.6. Can anybody confirm this? Or does servlet container remove those 
qualifiers?

Thanks for the patch, I'll correct the behavior as you've proposed.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to