Skip to content

[browser] Make SystemJS_GetLocaleInfo argument order consistent - #135983

Merged
lewing merged 1 commit into
mainfrom
lewing-fix-getlocaleinfo-arg-order
Oct 20, 2026
Merged

lewing merged 1 commit into
mainfrom
lewing-fix-getlocaleinfo-arg-order

Conversation

@lewing

@lewing lewing commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

SystemJS_GetLocaleInfo is declared in C and managed interop as (locale, culture, ...): the locale being described, then the display language. Both TS implementations and the CoreLib caller used (culture, locale, ...). The swaps cancel in-tree, but a caller following the declaration gets the wrong result (describing fr-FR in en-US returns anglais##États-Unis). This swaps the TS parameters to match and updates JSGetLocaleInfo/JSGetNativeDisplayName and their callers, so in-tree behavior is unchanged.

Resolves #135439

Note

This PR description was generated with GitHub Copilot.

The TS implementations and the managed caller used (culture, locale) while
the C declarations and interop signatures use (locale, culture). Swap the
order in the TS implementations (CoreCLR and Mono) and in the managed caller
so every layer agrees. No behavior change.

Fixes #135439

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 58481b1b-2e0e-4033-971e-7adef84564bf
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-globalization
See info in area-owners.md if you want to be subscribed.

@tarekgh tarekgh added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels Oct 16, 2026
@tarekgh
tarekgh deployed to copilot-pat-pool October 16, 2026 22:57 — with GitHub Actions Active
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@lewing

lewing commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

/ba-g All failures unrelated to this browser globalization change: HalfEstimateR2R (#135963, fixed by #135976) and ServerCertificates_Test (#135988) were main breakages; MutexTests and JIT_r (#135966) are known; Cookies_Http3 is an HTTP/3 network flake.

@lewing
lewing merged commit 9e26259 into main Oct 20, 2026
163 of 168 checks passed
@lewing
lewing deleted the lewing-fix-getlocaleinfo-arg-order branch October 20, 2026 16:26
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 21, 2026

This branch was successfully deployed

1 active deployment
copilot-pat-pool — 70928622 Deployed Oct 16, 2026 by tarekgh via conclusion #10607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect argument order for SystemJS_GetLocaleInfo

3 participants