From e937ae9565908e1e41b34bbc9ba78875e00df5ae Mon Sep 17 00:00:00 2001 From: Parker Bibus Date: Tue, 16 Dec 2025 11:00:16 -0800 Subject: [PATCH 1/3] Explicitly set culture in the Wasm test driver. --- .../benchmarkapps/Wasm.Performance/Driver/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs index cd2edbe5b129..477d014ea93b 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Globalization; using System.Reflection; using System.Runtime.ExceptionServices; using System.Text; @@ -20,6 +21,10 @@ public class Program public static async Task Main(string[] args) { + // Set culture to en-US to avoid invalid @posix suffix. Fixes https://github.com/dotnet/aspnetcore/issues/64450 + CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); + CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo("en-US"); + // This cancellation token manages the timeout for the stress run. // By default the driver executes and reports a single Benchmark run. For stress runs, // we'll pass in the duration to execute the runs in seconds. This will cause this driver From 54da4e6cfbc42d23b2896c73c5b195a9a8e8904b Mon Sep 17 00:00:00 2001 From: Parker Bibus Date: Tue, 16 Dec 2025 11:19:11 -0800 Subject: [PATCH 2/3] Try Locale in browser NewPageAsync. --- .../benchmarkapps/Wasm.Performance/Driver/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs index 477d014ea93b..b08b12bc6cfc 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs @@ -84,7 +84,10 @@ public static async Task Main(string[] args) var timeForEachRun = TimeSpan.FromMinutes(3); var launchUrl = $"{testAppUrl}?resultsUrl={UrlEncoder.Default.Encode(receiverUrl)}#automated"; - var page = await browser.NewPageAsync(); + var page = await browser.NewPageAsync(new() + { + Locale = "en-US", + }); await page.GotoAsync(launchUrl); page.Console += WriteBrowserConsoleMessage; From 29e154841901c3f26052fc06a2ed05e79941bd20 Mon Sep 17 00:00:00 2001 From: Parker Bibus Date: Tue, 16 Dec 2025 11:33:17 -0800 Subject: [PATCH 3/3] Revert "Explicitly set culture in the Wasm test driver." This reverts commit e937ae9565908e1e41b34bbc9ba78875e00df5ae. --- .../benchmarkapps/Wasm.Performance/Driver/Program.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs index b08b12bc6cfc..a93abfb0b062 100644 --- a/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs +++ b/src/Components/benchmarkapps/Wasm.Performance/Driver/Program.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Globalization; using System.Reflection; using System.Runtime.ExceptionServices; using System.Text; @@ -21,10 +20,6 @@ public class Program public static async Task Main(string[] args) { - // Set culture to en-US to avoid invalid @posix suffix. Fixes https://github.com/dotnet/aspnetcore/issues/64450 - CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("en-US"); - CultureInfo.CurrentUICulture = CultureInfo.GetCultureInfo("en-US"); - // This cancellation token manages the timeout for the stress run. // By default the driver executes and reports a single Benchmark run. For stress runs, // we'll pass in the duration to execute the runs in seconds. This will cause this driver