Skip to content

Conversation

@TTtie
Copy link

@TTtie TTtie commented Dec 6, 2025

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

The ProgressBar#adjustFormattedSize function currently expects a decimal dot when adding the additional ".0" to the size. This, however, breaks when a region with a non-dot decimal separator is used:

A screenshot showing kernel download progress with .0 appended to the end while having a decimal part

This PR makes the function use the decimal separator of the current locale instead, making it work as intended under environments that don't use the decimal dot:

A screenshot showing kernel download progress showing the comma

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

…decimal separator

The `ProgressBar#adjustFormattedSize` function currently expects a
decimal dot when adding the additional ".0" to the size. This, however,
breaks when a region with a non-dot decimal separator is used.

This commit makes the function use the decimal separator of the current
locale instead, making it work as intended under environments that don't
use the decimal dot.
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