-
Notifications
You must be signed in to change notification settings - Fork 997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception on keyboard layout switch with InvariantGlobalization #9191
Comments
@Olina-Zhang is there enough information for your team to go off of here for repro? |
@elachlan here is repro dotnet new winforms -o winformsInvariantRepro && cd winformsInvariantRepro
dotnet build /p:InvariantGlobalization=true && dotnet run --no-build
# change input language confirmed for |
@OwnageIsMagic verified .Net 7.0 and 8.0 using above CLI, no exception, did you use some winforms controls? |
@Olina-Zhang add additional input language to Windows here |
@elachlan problem is obvious from stacktrace provided winforms/src/System.Windows.Forms/src/System/Windows/Forms/InputLanguageChangedEventArgs.cs Lines 35 to 38 in 761aebd
calls InputLanguage.Culture which passing LCID to CultureInfo .ctor
that ends up here https://github.com/dotnet/runtime/blob/73cb995cff35b053d5b0d3daf319ac33769657d0/src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.cs#L860-L872 |
@DJm00n is your PR touching this stuff? |
@elachlan the line is mostly the same since 2018 |
There is potential workaround using |
@OwnageIsMagic thanks for the explaination. @DJm00n if your code is touching that area, then it might be a good idea to fix it whilst you are working on it. |
This comment was marked as resolved.
This comment was marked as resolved.
@OwnageIsMagic thanks! Yeah I am just a community member. Feel free to link the opened issue here. |
@elachlan @DJm00n This issue can now be worked around by setting |
@OwnageIsMagic and @elachlan you guys did all the work for us 😸 . Thanks a ton! |
.NET version
Microsoft.WindowsDesktop.App 7.0.5
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No response
Issue description
Steps to reproduce
The text was updated successfully, but these errors were encountered: