[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50336: Width format specifier is calculated wrong for nb_NO locale
From: |
Carl-Erik Kopseng |
Subject: |
bug#50336: Width format specifier is calculated wrong for nb_NO locale |
Date: |
Thu, 2 Sep 2021 14:49:43 +0200 |
I just noticed that the width specifier for numeric parameters does some
weird calculations when the specified locale is `nb_NO.utf8`. For instance,
the number formatting rules for US and NO both result in the same number of
characters (with ' ' instead of ','), but the Norwegian version lacks two
spaces in the padded output. This must be a bug, no?
```
$ LC_NUMERIC=en_US.utf8 printf "%'7d%s\n" 1234 XXX
1,234XXX
$ LC_NUMERIC=nb_NO.utf8 printf "%'7d%s\n" 1234 XXX
1 234XXX
```
Package: coreutils
Essential: yes
Priority: required
Section: utils
Installed-Size: 8248
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Architecture: amd64
Multi-Arch: foreign
Version: 8.32-4ubuntu2
Pre-Depends: libacl1 (>= 2.2.23), libattr1 (>= 1:2.4.44), libc6 (>= 2.32),
libgmp10, libselinux1 (>= 3.1~)
Filename: pool/main/c/coreutils/coreutils_8.32-4ubuntu2_amd64.deb
Size: 1353100
MD5sum: 1818b348429f95bffb99fe80bf965b5c
Description: GNU core utilities
Original-Maintainer: Michael Stone <mstone@debian.org>
SHA1: d56d97d420f317d7988e77e957bce95c630bc20a
SHA256: 1c04fd5a7d4f343beed3b56e37c105f5dffbc58728ab3a6d6bd05bfab8ab289c
SHA512:
b2ef6a601307cadfcd6bf072e59a306d54267294bdd635fab44f70b0cdccb871b64c15644fac0fdd342e4a1eb19145f155588ba97ede04ba683d5bf72c9995c4
Homepage: http://gnu.org/software/coreutils
Task: minimal
Description-md5: d0d975dec3625409d24be1238cede238
--
Carl-Erik Kopseng
- bug#50336: Width format specifier is calculated wrong for nb_NO locale,
Carl-Erik Kopseng <=