openzfs/zfs

ZFS command output uses wrong comma separator

开放

#16,987 创建于 2025年1月23日

 (3 条评论) (0 个反应) (1 位负责人)C (1,703 个派生)batch import
Type: Defectgood first issue

仓库指标

星标
 (9,908 个星标)
PR 合并指标
 (平均合并 5天 21小时) (30 天内合并 62 个 PR)

描述

Distribution Name | Ubuntu/Arch Linux Distribution Version | 22.04.5/Current Kernel Version | 5.15.0/6.6.72 Architecture | amd64 OpenZFS Version | 2.1.5/2.3.0

openzfs’ supposedly human readable output uses a full stop rather than a comma as the decimal separator even in locales that require the latter.

Besides being an aesthetic problem this makes sort useless: `$ zfs list -o used | sort -h USED 12K 536K 897K 239M 239M 5.38M 7.43M 10.3G 10.3G 3.07G 3.07G 42.2G 42.2G 62.8G 6.81G 6.82G

$ export LANG=C $ zfs list -o used | sort -h USED 12K 536K 897K 5.38M 7.43M 239M 239M 3.07G 3.07G 6.81G 6.82G 10.3G 10.3G 42.2G 42.2G 62.8G`

Problem doesn’t exist in illumos’ zfs.

贡献者指南