Title: Powershell Hashtable Keys are case-sensitive on Ubuntu 18.04 · Issue #7761 · PowerShell/PowerShell · GitHub
Open Graph Title: Powershell Hashtable Keys are case-sensitive on Ubuntu 18.04 · Issue #7761 · PowerShell/PowerShell
X Title: Powershell Hashtable Keys are case-sensitive on Ubuntu 18.04 · Issue #7761 · PowerShell/PowerShell
Description: On a clean installation of Ubuntu 18.04 from Azure, creating a hashtable in script results in a hashtable with case-sensitive keys. The LANG environment variable is set to 'C.UTF-8' and both CultureInfo.CurrentCulture and CultureInfo.Cur...
Open Graph Description: On a clean installation of Ubuntu 18.04 from Azure, creating a hashtable in script results in a hashtable with case-sensitive keys. The LANG environment variable is set to 'C.UTF-8' and both Cultur...
X Description: On a clean installation of Ubuntu 18.04 from Azure, creating a hashtable in script results in a hashtable with case-sensitive keys. The LANG environment variable is set to 'C.UTF-8' and bot...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7761
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Powershell Hashtable Keys are case-sensitive on Ubuntu 18.04","articleBody":"On a clean installation of Ubuntu 18.04 from Azure, creating a hashtable in script results in a hashtable with case-sensitive keys.\r\n\r\nThe LANG environment variable is set to 'C.UTF-8' and both CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture report en-US-POSIX.\r\n\r\nThe result is scripts that are not case-strict when using hashtable keys will break.\r\n\r\n\r\nSteps to reproduce\r\n------------------\r\n```powershell\r\n$h = @{HostName = 'host'}\r\n$h.hostname\r\n$h.HostName\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nThe value 'host' is returned for both $h.HostName and $h.hostname\r\n\r\nActual behavior\r\n---------------\r\nNo value is returned for $h.HostName is 'host' while $h.hostname returns $null.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n Name Value\r\n---- -----\r\nPSVersion 6.1.0-rc.1\r\nPSEdition Core\r\nGitCommitId 6.1.0-rc.1\r\nOS Linux 4.15.0-1022-azure #23-Ubuntu SMP Thu Aug 16 15:19:42 UTC 2018\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/dantraMSFT","@type":"Person","name":"dantraMSFT"},"datePublished":"2018-09-11T19:52:43Z","url":"https://github.com/PowerShell/PowerShell/issues/7761"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c1176d6d-0d09-3dea-73e7-64428bfae43f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B19A:BB03C:1F62BC:2C3600:6AFD52B3 |
| html-safe-nonce | 8c2549f41668a4bcc0f33fa190dad12e8e2d455002617512bf46ef745cb1a7cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTlBOkJCMDNDOjFGNjJCQzoyQzM2MDA6NkFGRDUyQjMiLCJ2aXNpdG9yX2lkIjoiNTE2NjMxNTgxMDI0MjUxNTYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fb8872100b305d4d3cb6e422bc6332bd398052215ceed9f83c158d71960db112 |
| hovercard-subject-tag | issue:359198409 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/7761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3c0845fa0d0193180bc07f9b4fd8c6cfaa48f9ecd5bfe6a97b5b6fd74d85b6e/PowerShell/PowerShell/issues/7761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3c0845fa0d0193180bc07f9b4fd8c6cfaa48f9ecd5bfe6a97b5b6fd74d85b6e/PowerShell/PowerShell/issues/7761 |
| og:image:alt | On a clean installation of Ubuntu 18.04 from Azure, creating a hashtable in script results in a hashtable with case-sensitive keys. The LANG environment variable is set to 'C.UTF-8' and both Cultur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dantraMSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width