From 740230c870a1a0eefe84c1bd86f7f11d268f97f8 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Mon, 3 Jan 2022 09:44:32 -0800 Subject: [PATCH] [PTRun][Calculator]fix copy/paste culture bug (#15207) * changing culture info * Update ResultHelper.cs Remove comment --- .../Microsoft.PowerToys.Run.Plugin.Calculator/ResultHelper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ResultHelper.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ResultHelper.cs index dc023fb72d..fb81e51f6f 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ResultHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ResultHelper.cs @@ -46,8 +46,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator { try { - // Using CurrentUICulture since this is user facing - Clipboard.SetText(roundedResult?.ToString(CultureInfo.CurrentUICulture.NumberFormat)); + Clipboard.SetText(roundedResult?.ToString(CultureInfo.CurrentCulture)); ret = true; } catch (ExternalException)