Skip to content

Use the supplied culture for Padding numbers - #15515

Open
XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-padding-converter-culture-nov27
Open

XFEstudio wants to merge 1 commit into
dotnet:mainfrom
XFEstudio:fix/winforms-padding-converter-culture-nov27

Conversation

@XFEstudio

@XFEstudio XFEstudio commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

Use the supplied culture for both integer formatting and the list separator in PaddingConverter.

Customer Impact

A culture with a custom negative sign could not parse the converter’s own output. Negative values now round trip using the supplied culture.

Regression?

Introduction point unknown. Reproduced on .NET 10 and current main.

Risk

Limited to formatting the four numbers. Existing list separators and spacing are preserved.

Test methodology

The new test failed on the original code. All 53 PaddingConverter tests passed after the fix with 0 skipped. The original test project built with 0 warnings and 0 errors. Windows validation.

Test environment(s)

Windows x64 Debug, .NET 12 repository SDK.

Developed with AI assistance and independently reviewed by an AI agent.

Microsoft Reviewers: Open in CodeFlow

@XFEstudio
XFEstudio requested a review from a team as a code owner November 27, 2026 06:01
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.23472%. Comparing base (d7f39b1) to head (3043668).

Additional details and impacted files
@@              Coverage Diff              @@
##                main      #15515   +/-   ##
=============================================
  Coverage   41.23472%   41.23472%           
=============================================
  Files            247         247           
  Lines           9897        9897           
  Branches        1049        1049           
=============================================
  Hits            4081        4081           
  Misses          5621        5621           
  Partials         195         195           
Flag Coverage Δ
Debug 41.23472% <ø> (ø)
production 43.92353% <ø> (ø)
test 19.92786% <ø> (ø)
unit 43.92353% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant