mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
Fix Group-Object so output uses current culture (#20608)
This commit is contained in:
1 parent
e946b560a3
commit
edfc3bd992
1 file changed
+2
-2
@@ -153,7 +153,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
|
||||
foreach (object item in propertyValueItems)
|
||||
{
|
||||
sb.Append(CultureInfo.InvariantCulture, $"{item}, ");
|
||||
sb.AppendFormat(CultureInfo.CurrentCulture, $"{item}, ");
|
||||
}
|
||||
|
||||
sb = sb.Length > length ? sb.Remove(sb.Length - 2, 2) : sb;
|
||||
@@ -161,7 +161,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append(CultureInfo.InvariantCulture, $"{propValuePropertyValue}, ");
|
||||
sb.AppendFormat(CultureInfo.CurrentCulture, $"{propValuePropertyValue}, ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user