René's URL Explorer Experiment


Title: Get-Culture and $PSCulture do not (consistently) reflect in-session changes to another culture · Issue #3831 · PowerShell/PowerShell · GitHub

Open Graph Title: Get-Culture and $PSCulture do not (consistently) reflect in-session changes to another culture · Issue #3831 · PowerShell/PowerShell

X Title: Get-Culture and $PSCulture do not (consistently) reflect in-session changes to another culture · Issue #3831 · PowerShell/PowerShell

Description: Note: Perhaps this is by design (although there's at least a buggy inconsistency), given that there's currently no PowerShell mechanism for in-session switching to another culture. If so, it should at least be documented. Steps to reprod...

Open Graph Description: Note: Perhaps this is by design (although there's at least a buggy inconsistency), given that there's currently no PowerShell mechanism for in-session switching to another culture. If so, it should...

X Description: Note: Perhaps this is by design (although there's at least a buggy inconsistency), given that there's currently no PowerShell mechanism for in-session switching to another culture. If so, i...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3831

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Culture and $PSCulture do not (consistently) reflect in-session changes to another culture","articleBody":"Note: Perhaps this is by design (although there's at least a buggy inconsistency), given that there's currently no _PowerShell_ mechanism for _in-session_ switching to another culture. If so, it should at least be documented.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n[pscustomobject] @{ Test = 'initial'; Name = (Get-Culture).Name}\r\n[cultureinfo]::currentculture = 'fr-FR'; [pscustomobject] @{ Test = '$PSCulture'; Name =$PSCulture }, [pscustomobject] @{ Test = 'GetCulture'; Name = (Get-Culture).Name }, [pscustomobject] @{ Test = '$host.CurrentCulture'; Name = $host.CurrentCulture.Name }, [pscustomobject] @{ Test = '.NET'; Name = [cultureinfo]::currentculture.name }\r\n```\r\n\r\nNote: \r\n*  If you try the above _interactively_, be sure to execute the 2nd line above _on a single line_.\r\n* The output below:\r\n  * assumes that `en-US` is the initial culture at session startup time.\r\n  * differs between PowerShell Core and Windows PowerShell: in Core, `Get-Culture` and `$host.CurrentCulture` reflect the switch, but `$PSCulture` doesn't, whereas in Windows PowerShell none of the PS cmdlets/properties do.\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n\r\n```none\r\nTest                 Name \r\n----                 ---- \r\ninitial              en-US\r\n$PSCulture           fr-FR\r\nGetCulture           fr-FR\r\n$host.CurrentCulture fr-FR\r\n.NET                 fr-FR\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n* PowerShell Core: Windows, macOS, Ubuntu\r\n\r\n```none\r\nTest                 Name \r\n----                 ---- \r\ninitial              en-US\r\n$PSCulture           en-US\r\nGetCulture           fr-FR\r\n$host.CurrentCulture fr-FR\r\n.NET                 fr-FR\r\n```\r\n\r\n* Windows PowerShell 5.1\r\n\r\n```none\r\nTest                 Name \r\n----                 ---- \r\ninitial              en-US\r\n$PSCulture           en-US\r\nGetCulture           en-US\r\n$host.CurrentCulture en-US\r\n.NET                 fr-FR\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nPowerShell Core v6.0.0-beta (v6.0.0-beta.1) on macOS 10.12.5\r\nPowerShell Core v6.0.0-beta (v6.0.0-beta.1) on Ubuntu 16.04.1 LTS\r\nPowerShell Core v6.0.0-beta (v6.0.0-beta.1) on Microsoft Windows 10 Pro (64-bit; v10.0.14393)\r\nWindows PowerShell v5.1.14393.1198 on Microsoft Windows 10 Pro (64-bit; v10.0.14393)\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2017-05-20T16:44:13Z","url":"https://github.com/PowerShell/PowerShell/issues/3831"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:84d04afb-52d7-d318-6747-ff3d72f3c0c7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2E0:F4A12:282CDF:35E3C4:6AFD35BC
html-safe-noncea62b22905f8b299ea98629f17a030f18d5bb0849a09945f2a49430c29b6a9f4a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkUwOkY0QTEyOjI4MkNERjozNUUzQzQ6NkFGRDM1QkMiLCJ2aXNpdG9yX2lkIjoiMzYwMjQ2MDc5NDA1NjE2MDcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb14203ccab1c0bb7e9e3c94d304b65fb5ecb9b447074077c449a32633bbfcd55
hovercard-subject-tagissue:230164902
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/3831/issue_layout
twitter:imagehttps://opengraph.githubassets.com/47695061810ac04a2aa6ad85fe8774cc84427edd38f5a5b226ef861dd50cbba5/PowerShell/PowerShell/issues/3831
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/47695061810ac04a2aa6ad85fe8774cc84427edd38f5a5b226ef861dd50cbba5/PowerShell/PowerShell/issues/3831
og:image:altNote: Perhaps this is by design (although there's at least a buggy inconsistency), given that there's currently no PowerShell mechanism for in-session switching to another culture. If so, it should...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemklement0
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/3831#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F3831
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F3831
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/3831
Reloadhttps://github.com/PowerShell/PowerShell/issues/3831
Reloadhttps://github.com/PowerShell/PowerShell/issues/3831
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/3831
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/3831
#10138https://github.com/PowerShell/PowerShell/pull/10138
Get-Culture and $PSCulture do not (consistently) reflect in-session changes to another culturehttps://github.com/PowerShell/PowerShell/issues/3831#top
#10138https://github.com/PowerShell/PowerShell/pull/10138
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issue-230164902
Nexthttps://github.com/PowerShell/PowerShell/issues/3831?timeline_page=1
Ilya (iSazonov)https://github.com/iSazonov
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#event-1090598061
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302887296
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302887840
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302888937
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302889579
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on May 20, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302891631
Michael Klement (@mklement0)https://github.com/mklement0
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on May 21, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302911130
to ConsoleHost.cshttps://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs#L867
value is cached in NativeCultureResolver.cshttps://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs#L195
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on May 21, 2017https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-302941979
Michael Klement (mklement0)https://github.com/mklement0
on Jul 26, 2017https://github.com/PowerShell/PowerShell/issues/3831#event-1179191932
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Oct 21, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-431664115
Michael Klement (@mklement0)https://github.com/mklement0
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Oct 21, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-431668558
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Oct 21, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-431683627
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Ilya (iSazonov)https://github.com/iSazonov
Review - CommitteeThe PR/Issue needs a review from the PowerShell Committeehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Committee%22
on Oct 21, 2018https://github.com/PowerShell/PowerShell/issues/3831#event-1916732587
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Oct 22, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-431875682
#3833 (comment)https://github.com/PowerShell/PowerShell/issues/3833#issuecomment-431837446
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Oct 24, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-432506770
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
#3833 (comment)https://github.com/PowerShell/PowerShell/issues/3833#issuecomment-431837446
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Nov 26, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-441754746
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Nov 26, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-441763790
Bruce Payette (@BrucePay)https://github.com/BrucePay
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Nov 26, 2018https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-441827629
Ilya (iSazonov)https://github.com/iSazonov
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on Nov 27, 2018https://github.com/PowerShell/PowerShell/issues/3831#event-1988693158
https://github.com/BrucePay
Bruce Payette (BrucePay)https://github.com/BrucePay
on Jan 22, 2019https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-456596727
Ilya (iSazonov)https://github.com/iSazonov
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
on Jan 23, 2019https://github.com/PowerShell/PowerShell/issues/3831#event-2090577172
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Jan 23, 2019https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-457007516
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Review - CommitteeThe PR/Issue needs a review from the PowerShell Committeehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Committee%22
on Jan 23, 2019https://github.com/PowerShell/PowerShell/issues/3831#event-2093118508
Ilya (iSazonov)https://github.com/iSazonov
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#10138https://github.com/PowerShell/PowerShell/pull/10138
on Oct 7, 2019https://github.com/PowerShell/PowerShell/issues/3831#event-2691084185
Ilya (iSazonov)https://github.com/iSazonov
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Oct 7, 2019https://github.com/PowerShell/PowerShell/issues/3831#event-2691085847
https://github.com/xjcl
Jan-Frederik Konopka (xjcl)https://github.com/xjcl
on Oct 13, 2023https://github.com/PowerShell/PowerShell/issues/3831#issuecomment-1761471407
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/3831
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/3831
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.