Skip to content

df shouldn't use -h as it depends on locale #3086

Description

@danbulant

Check for other issues

  • I've checked for other issues, and none exist.

Issue description

df -h returns different number formats depending on user locale, which in certain european countries can be using , instead of a . as the separator, making the numbers wrong. Omitting -h shows the byte count as a single number that's easier to parse.

Steps to reproduce

  1. Set system locale to one using commas for decimal separators (most european)
  2. Open Spacedrive and check volume size

Platform and versions

  • OS: Linux NixOS

  • Spacedrive: 6dfeccf

    bun 1.3.13
    cargo 1.97.0 (c980f4866 2026-06-30)
    rustc 1.97.1 (8bab26f4f 2026-07-14)

Stack trace

Additional context

.args(["-h", "-T"]) // -T shows filesystem type

Code of Conduct

  • I agree to follow the Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions