Powershell And Thai Culture
on PowerShell by Stefan Farnik
In work, we stumbled across some discrepancy when using PowerShell on clients which use the th-Th
culture locale.
For me, when I run PowerShell at my client and type
$host
I can see, that the de-AT
locale (CurrentCulture) is used:
Name : ConsoleHost
Version : 5.1.18290.1000
InstanceId : 16d3ef7b-5ab3-4d53-b248-bdaa0db35c2f
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : de-AT
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Thai culture configured in Windows
However, when using clients in Thailand which have the th-TH
locale configured, the output states that the CurrentCulture is en-US
, there is a fallback in place somehow.