msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Call New GetCultureInfo API When Validating Cultures

Open benvillalobos opened this issue 1 year ago • 6 comments

Fixes https://github.com/dotnet/msbuild/issues/3897

Context

Changes Made

Testing

Notes

Haven't tested this locally.

benvillalobos avatar Jul 27 '22 23:07 benvillalobos

Talked with Tarek, turns out we should be using a different API altogether: https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.getcultureinfo?view=net-6.0#system-globalization-cultureinfo-getcultureinfo(system-string-system-boolean)

benvillalobos avatar Jul 28 '22 18:07 benvillalobos

@tarekgh I tried out a few test cases for aliases in codingdinosaur's writeup, and I'm seeing interesting results:

image

The good news is they both see zh-TW as a valid culture, which is strictly improved from before 😄 any thoughts on the failing cases? are those aliases expected not to be detected?

benvillalobos avatar Aug 04 '22 00:08 benvillalobos

@BenVillalobos the failing cases is because the culture name using _ and not -.

tarekgh avatar Aug 04 '22 00:08 tarekgh

the failing cases is because the culture name using _ and not -.

thanks!

benvillalobos avatar Aug 04 '22 23:08 benvillalobos

This is the first I've seen CanShutdownServerProcess fail. This might be a flaky test, but it's too early to tell. It looks very unrelated to what this change is about.

benvillalobos avatar Aug 08 '22 18:08 benvillalobos

@BenVillalobos, I told it to rerun. I suspect flakiness.

@rokonec, see BenVillalobos's comment—second instance today.

Forgind avatar Aug 08 '22 18:08 Forgind