-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of locale-sensitive methods with undefined
locale may cause environment-sensitive bugs
#6016
Comments
As far as I can see, the problematic uses are Lines 193 to 195 in 6a4eb6c
and testing it with minimal hard-coding: Lines 9 to 10 in 6a4eb6c
Lines 75 to 82 in 6a4eb6c
|
Can this be closed now? |
I opened #6204 with the minimal fix for |
Describe the bug
I've mentioned this before tangentially in a couple of issues (ex), but it's probably worth its own issue.
Use of locale-sensitive methods, such as
toLocaleLowerCase
, with an unspecified (undefined
) locale may cause environment-sensitive bugs, because the default locale is host defined.Steps to Reproduce
For example, in
http/cookie.ts
, which is marked browser-compatible:std/http/cookie.ts
Line 361 in 6a4eb6c
about:preferences
Expected behavior
Consistent behavior in all locales
Environment
http/cookie
http/negotiation
text
The text was updated successfully, but these errors were encountered: