Skip to content
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

Fix for Ctor_Brush_Width test on Non-English Windows #60502

Merged
merged 1 commit into from
Oct 16, 2021
Merged

Fix for Ctor_Brush_Width test on Non-English Windows #60502

merged 1 commit into from
Oct 16, 2021

Conversation

AlexRadch
Copy link
Contributor

Fix for #60480 issue

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 16, 2021
@ghost
Copy link

ghost commented Oct 16, 2021

Tagging subscribers to this area: @safern, @tarekgh
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix for #60480 issue

Author: AlexRadch
Assignees: -
Labels:

area-System.Drawing, community-contribution

Milestone: -

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@danmoseley danmoseley merged commit 972891f into dotnet:main Oct 16, 2021
Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

yield return new object[] { new SolidBrush(Color.Red), 0, PenType.SolidColor };
yield return new object[] { new SolidBrush(Color.Red), -1, PenType.SolidColor };
// Issue on Non-English Windows with brush width < 1. See https://github.com/dotnet/runtime/issues/60480
if (Environment.OSVersion.Platform != PlatformID.Win32NT || CultureInfo.InstalledUICulture.TwoLetterISOLanguageName == "en")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we usually use, !PlatformDetection.IsWindows to detect if running or not on windows on our tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I change Windows OS checking to OperatingSystem.IsWindows() or not?

@ghost ghost locked as resolved and limited conversation to collaborators Nov 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Drawing community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants