** Changed in: glibc
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2058775
Title:
coreutils: printf formatting bug for nb_NO and nn_NO
dup
*** This bug has been marked as a duplicate of bug 28943 ***
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2058775
Title:
coreutils: printf formatting bug for
** Project changed: coreutils => glibc
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2058775
Title:
coreutils: printf formatting bug for nb_NO and nn_NO locales
Launchpad has imported 1 comments from the remote bug at
https://sourceware.org/bugzilla/show_bug.cgi?id=31542.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
** Bug watch added: Sourceware.org Bugzilla #31542
https://sourceware.org/bugzilla/show_bug.cgi?id=31542
** Also affects: coreutils via
https://sourceware.org/bugzilla/show_bug.cgi?id=31542
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are
Loading the test script output as text file in LibreOffice also shows
the same issue (screenshot attached). So, it is not a bug of Konsole or
XTerm. Probably, the 3-byte UTF-8 thousands separator character of the
locale is not useful. May be it should be a simple space, or a normal
UTF-8
In a hexdump, printf seems to add a 3 characters for the thousands
separator:
#!/bin/sh
for l in de_DE en_US nb_NO nn_NO ; do
echo "LC_NUMERIC=$l.UTF-8"
for n in 1 100 1000 1 10 100 1000 ; do
LC_NUMERIC=$l.UTF-8 /usr/bin/printf "<%'8d>" $n | hexdump -C
done
Launchpad suppresses the spaces, it seems. I attached a screenshot of
the terminal output to display the formatting issue.
** Attachment added: "Screenshot of the test script output"
Public bug reported:
I just discovered a printf bug for at least the nb_NO and nn_NO locales
when printing numbers with thousands separator. To reproduce:
#!/bin/bash
for l in de_DE en_US nb_NO ; do
echo "LC_NUMERIC=$l.UTF-8"
for n in 1 100 1000 1 10 100 1000 ; do
9 matches
Mail list logo