Comment #2 on issue 4215 by [email protected]: Duplicate variant
and singleton subtags not detected if in different case
https://code.google.com/p/v8/issues/detail?id=4215
Both calls should throw a RangeError instead of returning "de", because the
given language tag is not valid per ECMA-402 (1st and 2nd ed.), 6.2.2
IsStructurallyValidLanguageTag:
---
6.2.2 IsStructurallyValidLanguageTag (locale)
The IsStructurallyValidLanguageTag abstract operation verifies that the
locale argument (which must be a
String value)
- represents a well-formed BCP 47 language tag as specified in RFC 5646
section 2.1, or successor,
- does not include duplicate variant subtags, and
- does not include duplicate singleton subtags.
---
"de-tester-Tester" violates the restriction: does not include duplicate
variant subtags
"de-DE-u-kn-true-U-kn-true" violates the restriction: does not include
duplicate singleton subtags
(Language tag have to be parsed case-insensitively per
http://tools.ietf.org/html/rfc5646#section-2.1.1)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.