From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: Philippe =?UTF-8?Q?B=C3=A9n=C3=A9zech?= Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 09 Mar 2021 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 47023@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16153060041910 (code B ref -1); Tue, 09 Mar 2021 16:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2021 16:06:44 +0000 Received: from localhost ([127.0.0.1]:47767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJesd-0000Uj-0C for submit@debbugs.gnu.org; Tue, 09 Mar 2021 11:06:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:34794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJbx9-0003hZ-12 for submit@debbugs.gnu.org; Tue, 09 Mar 2021 07:59:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJbx8-0001Z5-Mz for bug-coreutils@gnu.org; Tue, 09 Mar 2021 07:59:10 -0500 Received: from smtp-outgoing-1901.laposte.net ([160.92.124.105]:59680 helo=smtp-outgoing.laposte.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lJbx5-0006a5-KH for bug-coreutils@gnu.org; Tue, 09 Mar 2021 07:59:10 -0500 X-mail-filterd: {"version":"1.2.2", "queueID":"4DvwJG75HNzSgpP", "contextId":"54dce772-2e72-4f39-a38e-6970eef614ef"} Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0112.laposte.net (SMTP Server) with ESMTP id 4DvwJG75HNzSgpP for ; Tue, 9 Mar 2021 13:58:54 +0100 (CET) X-mail-filterd: {"version":"1.2.2", "queueID":"4DvwJG6P11zSgpN", "contextId":"41635ec7-2693-4824-9e3f-d3a30f3ca7a6"} X-lpn-mailing: LEGIT X-lpn-spamrating: 40 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgeduledrudduiedggeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecunfetrffquffvgfdpqfgfvfdpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefvhffukffffgggtgesrgdtreertdefjeenucfhrhhomheprfhhihhlihhpphgvpgeurohnroiivggthhcuoehphhhilhhiphhpvgdrsggvnhgviigvtghhsehlrghpohhsthgvrdhnvghtqeenucggtffrrghtthgvrhhnpeehueeihfdtheeikeejhfehudeifffgtefhgfejvdekieffudfhffetheffkeevgfenucfkphepkedurdeiiedrudekhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedrtddruddvngdpihhnvghtpeekuddrieeirddukeehrddvfedupdhmrghilhhfrhhomhepphhhihhlihhpphgvrdgsvghnvgiivggthheslhgrphhoshhtvgdrnhgvthdprhgtphhtthhopegsuhhgqdgtohhrvghuthhilhhssehgnhhurdhorhhg Received: from [192.168.0.12] (81-66-185-231.rev.numericable.fr [81.66.185.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mlpnf0112.laposte.net (SMTP Server) with ESMTPSA id 4DvwJG6P11zSgpN for ; Tue, 9 Mar 2021 13:58:54 +0100 (CET) From: Philippe =?UTF-8?Q?B=C3=A9n=C3=A9zech?= Message-ID: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> Date: Tue, 9 Mar 2021 13:58:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------E009157CB2B624406587CFB0" Content-Language: fr-FR DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=lpn-wlmd; t=1615294736; bh=3ne+MNMq6iNlgcIig/tV7ABzjgDGdQjuj9rvQsNM8/Q=; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Language; b=KyW/qL1/QwmLvvVEtR0Xp0VRJoHwcwN47qNVozfztJh0h37KDxhiQnLIVXe4QuPtgcTwMV+M/d8Y4r8hLfwy5vG1HWYJLA0Hb+OAJSLkJUWh/V2p/frIDDTPzjCA5StvX/dGwNn7SAkWo7nMPS4BOIc4AjbfCVVCSS39RrxwqZcAXY4Xtv2qit4emjhbF4/yDEDprWdmqliZ0wqyFQ5gZgPIW8ZiFw6O/CfkGHaKaGj3PSu7GCoKZNceGNU1yR4GuVkEw7wE+20Ttf1x7eGa3NcwnvWaZzMX0gqDB16fXa3MUzGK6gLGxcWXtUKDuLpLswJK3g3d3MY3ljTpC3t/Hg==; Received-SPF: pass client-ip=160.92.124.105; envelope-from=philippe.benezech@laposte.net; helo=smtp-outgoing.laposte.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Tue, 09 Mar 2021 11:06:42 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This is a multi-part message in MIME format. --------------E009157CB2B624406587CFB0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Dear maintener, I found a reproducible bug in df utility, installed in debian stable $ df --version |head -1 df (GNU coreutils) 8.30 $ cat /etc/debian_version 10.8 df displays G instead of GM as unit size for Gigabytes in power of 1000=20 (but the value is correct) $ df -BGB /home Sys. de fichiers blocs de 1GB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 sur /dev/mapper/ssd2 421GB 355GB 45GB 89% /home $ df -H /home Sys. de fichiers Taille Utilis=C3=A9 Dispo Uti% Mont=C3=A9 sur /dev/mapper/ssd2 421G 355G 45G 89% /home As a remark, the display is ok (no bug) with TeraBytes, MegaBytes and=20 KiloBytes in power of 1000 $ df -BTB /home Sys. de fichiers blocs de 1TB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 sur /dev/mapper/ssd2 1TB 1TB 1TB 89% /home $ df -BMB /home Sys. de fichiers blocs de 1MB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 su= r /dev/mapper/ssd2 420611MB 354492MB 44682MB 89% /home $ df -BKB /home Sys. de fichiers blocs de 1kB Utilis=C3=A9 Disponible Uti% Mont=C3=A9= sur /dev/mapper/ssd2 420610057kB 354491245kB 44681065kB 89% /home Best regards --------------E009157CB2B624406587CFB0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Dear maintener,

I found a reproducible bug in df utility, installed in debian stable

$ df --version |head -1
df (GNU coreutils) 8.30
$ cat /etc/debian_version
10.8

df displays G instead of GM as unit size for Gigabytes in power of 1000 (but the value is correct)

$ df -BGB /home
Sys. de fichiers blocs de 1GB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 sur
/dev/mapper/ssd2        421GB   355GB       45GB  89% /home

$ df -H /home
Sys. de fichiers Taille Utilis=C3=A9 Dispo Uti% Mont=C3=A9 sur
/dev/mapper/ssd2   421G    355G   45G  89% /home

As a remark, the display is ok (no bug) with TeraBytes, MegaBytes and KiloBytes in power of 1000

$ df -BTB /home
Sys. de fichiers blocs de 1TB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 sur
/dev/mapper/ssd2          1TB     1TB        1TB  89% /home

$ df -BMB /home
Sys. de fichiers blocs de 1MB  Utilis=C3=A9 Disponible Uti% Mont=C3=A9 su=
r
/dev/mapper/ssd2     420611MB 354492MB    44682MB  89% /home

$ df -BKB /home
Sys. de fichiers blocs de 1kB     Utilis=C3=A9 Disponible Uti% Mont=C3=A9=
 sur
/dev/mapper/ssd2  420610057kB 354491245kB 44681065kB  89% /home

Best regards


--------------E009157CB2B624406587CFB0-- From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 09 Mar 2021 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Philippe =?UTF-8?Q?B=C3=A9n=C3=A9zech?= , 47023@debbugs.gnu.org Received: via spool by 47023-submit@debbugs.gnu.org id=B47023.161531951514698 (code B ref 47023); Tue, 09 Mar 2021 19:52:02 +0000 Received: (at 47023) by debbugs.gnu.org; 9 Mar 2021 19:51:55 +0000 Received: from localhost ([127.0.0.1]:48007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJiOZ-0003ou-09 for submit@debbugs.gnu.org; Tue, 09 Mar 2021 14:51:55 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:40683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJiOW-0003ob-LA; Tue, 09 Mar 2021 14:51:53 -0500 Received: by mail-wm1-f42.google.com with SMTP id y124-20020a1c32820000b029010c93864955so7763522wmy.5; Tue, 09 Mar 2021 11:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+u57h7D0zp9RE90dI+Sf4Pcm7A2WFOtM44NYXmK4ynU=; b=UpjI0AscDNBn3jHfsAEJY2/pCpslPmuPHprYtanGae8Q8nB/PU3/A9ReKMl5/TAfCO iF5Mt0hGi4f4UfPnikzePufyXWm0ESmOJ4yOeMjImYDPBo/meCBO4hG78plJY0/WS739 9ofxooLnmToZacxw4oaoKrohwrfmyemqp1rEfb3EbIsF3IS5DfPURh0AteRObhJaDT4h j0Hn06eGX3qFe6ciSp+ThhKKjZvBrEt9rqW3wGDL1F7yesG5zkQxiVVW+Ohl3KdzZ43E v198bCAYPrAj8foPo/y3peBuh5LquirK9x2e6PAZ6BOgopWTzW4PkuFglP1bemO+RZIW raIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+u57h7D0zp9RE90dI+Sf4Pcm7A2WFOtM44NYXmK4ynU=; b=XuxxiQ4vA3ua1/0ZgeAIHUhggqVwpaiGMUtvA0EsD+GM0NM9iDg6phKRygqcRreitQ 95aztGnXZTZX4Fj54PC1xwR5AyEtfZLWMi2s1aGgMDkr5ian65EC55r7vOkdxMxnBWhQ CxRBsPtM5eXPQzHnGl0655zaSOmO2btNwc8R0uP2O2KgH3fAXVsedZMcpeWfzOp1L2r6 iGFM0vBUAE78rIdRrM2aP1RhJ+JBtgMgnCOXk4YJY1vhOWF6WgNuhuwgaY4Aj0Vgt4bJ x05H8HYMvpHd8ZisU66ACTo9PYnKz3QunZMFoNDjOCDT5zYwX6pBinc3pOPj0LwKelQf aB9g== X-Gm-Message-State: AOAM533gIxVp3nDT4qKuUdOSwvjQEf4N3TZmdj2eGjfmCT22BK+369an AIJUg2LGcMO6t/d6Tx6ihFOCQy5ZS//+Ng== X-Google-Smtp-Source: ABdhPJxwzvz5mDosKzsWCJRdGcOdviC4NU43Kev/DTUvHgodepOJjCUEVpN1gHiQ3sC/8e1FMPVXtA== X-Received: by 2002:a7b:c151:: with SMTP id z17mr5845603wmi.189.1615319506457; Tue, 09 Mar 2021 11:51:46 -0800 (PST) Received: from localhost.localdomain (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227]) by smtp.googlemail.com with UTF8SMTPSA id q25sm5298256wmq.15.2021.03.09.11.51.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Mar 2021 11:51:46 -0800 (PST) References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> From: =?UTF-8?Q?P=C3=A1draig?= Brady Message-ID: Date: Tue, 9 Mar 2021 19:51:45 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 In-Reply-To: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) unarchive 18119 forcemerge 18119 47023 stop On 09/03/2021 12:58, Philippe Bénézech via GNU coreutils Bug Reports wrote: > Dear maintener, > > I found a reproducible bug in df utility, installed in debian stable > > $ df --version |head -1 > df (GNU coreutils) 8.30 > $ cat /etc/debian_version > 10.8 > > df displays G instead of GM as unit size for Gigabytes in power of 1000 > (but the value is correct) This is not restricted to G > $ df -BGB /home > Sys. de fichiers blocs de 1GB Utilisé Disponible Uti% Monté sur > /dev/mapper/ssd2 421GB 355GB 45GB 89% /home > > $ df -H /home > Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur > /dev/mapper/ssd2 421G 355G 45G 89% /home In summary df -H is outputting with a concise single letter, which is indistinguishable from that of df -h. I agree that's not ideal as the output can't be interpreted without the command as context. I.e. it restricts usage to direct command line usage. A possible change we could make here would be to use GB, MB etc. if --si is specified. But also -h and -H are not really useful outside of direct cli usage, I'm 50:50 on changing this. This was originally discussed at https://bugs.gnu.org/18119 Mentioned there is an option to use the new numfmt functionality to provide more control and unambiguous output. BTW the fact that a B suffix implies SI units is awkward in the first place, which I've documented the reasons for at: https://www.pixelbeat.org/docs/coreutils-gotchas.html#units cheers, Pádraig From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 09 Mar 2021 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix To: Philippe =?UTF-8?Q?B=C3=A9n=C3=A9zech?= , 47023@debbugs.gnu.org Received: via spool by 47023-submit@debbugs.gnu.org id=B47023.161532217026836 (code B ref 47023); Tue, 09 Mar 2021 20:37:02 +0000 Received: (at 47023) by debbugs.gnu.org; 9 Mar 2021 20:36:10 +0000 Received: from localhost ([127.0.0.1]:48056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJj5O-0006yl-FD for submit@debbugs.gnu.org; Tue, 09 Mar 2021 15:36:10 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJj5M-0006yX-9N for 47023@debbugs.gnu.org; Tue, 09 Mar 2021 15:36:09 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2E7F11600FC; Tue, 9 Mar 2021 12:36:02 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pWoOwOiODOXK; Tue, 9 Mar 2021 12:36:00 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4FA421600F3; Tue, 9 Mar 2021 12:36:00 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id y0jgmDdFEPTl; Tue, 9 Mar 2021 12:36:00 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2DC131600D4; Tue, 9 Mar 2021 12:36:00 -0800 (PST) References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <953d6bbe-cbf1-796e-46b7-9e50e3e92704@cs.ucla.edu> Date: Tue, 9 Mar 2021 12:35:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 3/9/21 4:58 AM, Philippe B=C3=A9n=C3=A9zech via GNU coreutils Bug Repo= rts wrote: >=20 > df displays G instead of GM as unit size for Gigabytes in power of 1000= =20 > (but the value is correct) >=20 > $ df -BGB /home > Sys. de fichiers blocs de 1GB Utilis=C3=A9 Disponible Uti% Mont=C3=A9 s= ur > /dev/mapper/ssd2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 421GB=C2=A0=C2= =A0 355GB=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 45GB=C2=A0 89% /home >=20 > $ df -H /home > Sys. de fichiers Taille Utilis=C3=A9 Dispo Uti% Mont=C3=A9 sur > /dev/mapper/ssd2=C2=A0=C2=A0 421G=C2=A0=C2=A0=C2=A0 355G=C2=A0=C2=A0 45= G=C2=A0 89% /home I don't see a bug here. First, I assume you meant to write "GB" rather=20 than "GM". Second, "df -BGB" is documented to append units (in this=20 case, "GB") to the output number, whereas "df -H" is merely documented=20 to append a size indication (in this case, "G"). From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> In-Reply-To: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> Resent-From: Glenn Golden Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 Mar 2021 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix To: 47023@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Reply-To: gdg@zplane.com Received: via spool by submit@debbugs.gnu.org id=B.16153878222891 (code B ref -1); Wed, 10 Mar 2021 14:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2021 14:50:22 +0000 Received: from localhost ([127.0.0.1]:49478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK0AH-0000kZ-JH for submit@debbugs.gnu.org; Wed, 10 Mar 2021 09:50:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:35256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK0AG-0000kS-AV for submit@debbugs.gnu.org; Wed, 10 Mar 2021 09:50:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK0AF-0006DO-7g for bug-coreutils@gnu.org; Wed, 10 Mar 2021 09:50:19 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK0AC-0003ff-V0 for bug-coreutils@gnu.org; Wed, 10 Mar 2021 09:50:18 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3A5A55C0125 for ; Wed, 10 Mar 2021 09:50:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 10 Mar 2021 09:50:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zplane.com; h= date:from:to:subject:message-id:reply-to:mime-version :content-type:content-transfer-encoding; s=fm2; bh=MydDJKc7xTPl5 eOdUGYR+haD+5LcgpLN4j2WyejVum4=; b=bNCJ991fSPbbkV0ExXejHhbcAQOPO /LPaDRmyKfo0XWIWeZT0QGpxh00ZLH7+rjC5ShfGvmHGRNmRYslOVo5F3Xbt0o52 f+5g3Pb1tMLS3q3ScQFMr6QJM1MTodKH0HrgB0V6BlkRuiL9cTDPwfa2WBlc2Wu5 sEU2TqZO2gzgPElIVKNayI20XarIFkGOo3dwGxMs/VuicksE43mPCkEal0W7a+Kn ToFvmBjG3f/qU76NFRUrTSRlAewkLP8w9UdWFAP+GF7J91toCtbYWAG+HZOfCTxV DQlxZ/PEqA4GHtBuOPgm+r3CX8p9wZ9egG6/61iP7UaZR7b5DSGh9ZhBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:reply-to:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=MydDJKc7xTPl5eOdUGYR+haD+5LcgpLN4j2WyejVum4=; b=q+6HfyBL N+GMFqGzYFCgb9KbnrqZwcDk5g2xRxMaSwqdANBjY0IjaB4puG7ZMXuCFmhDt8rC CiJEWPqd+MJV//WmoIcyThPpOSPn6cHuxiqI8zaK7/Ny38U2u9guCBVnxhVNCv8h PDM5ui1Q1UB17oGCmDJ4bW2FLLz0QeVf10sg3HpOmf9qdfBtFvN/5521j+EN9qNv LobiBqbxv7LjB5JOKFSNekwnqpo2wJQkrCMNJlOen40nuj53VOG30gswkRcROplm XOtAqwNisbf8/1QoXvJrdx+iiooBd9F5efH1eButgQoW2lRYIsj4p9O/0va6jrvR ahZHmxrXhXW7Dg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkrhggtggugfgfsehtqh dttddtredunecuhfhrohhmpefilhgvnhhnucfiohhluggvnhcuoehgughgseiiphhlrghn vgdrtghomheqnecuggftrfgrthhtvghrnhepuddtvedvtddugfekkedvleevvdevheelud efvdeffefggfefkedvieeiueekffffnecuffhomhgrihhnpehgnhhurdhorhhgpdhpihig vghlsggvrghtrdhorhhgnecukfhppeeijedrudejiedrfeejrdegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghgughesiihplhgrnhgvrdgt ohhm X-ME-Proxy: Received: from huh.zplane.com (c-67-176-37-4.hsd1.co.comcast.net [67.176.37.4]) by mail.messagingengine.com (Postfix) with ESMTPA id 022D7240067 for ; Wed, 10 Mar 2021 09:50:16 -0500 (EST) Received: by huh.zplane.com (Postfix, from userid 501) id 96F17638BD; Wed, 10 Mar 2021 07:50:14 -0700 (MST) Date: Wed, 10 Mar 2021 07:50:14 -0700 From: Glenn Golden Message-ID: <20210310145014.GM6453@huh.zplane.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=66.111.4.25; envelope-from=gdg@zplane.com; helo=out1-smtp.messagingengine.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_C=1.486, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) P=E1draig, Philippe, Paul - P=E1draig Brady [Tue, 9 Mar 2021 19:51:45 +0000]: >=20 > > On 09/03/2021 12:58, Philippe B=E9n=E9zech via GNU coreutils Bug Report= s wrote: > > Dear maintener, > >=20 > > I found a reproducible bug in df utility, installed in debian stable > >=20 > > $ df --version |head -1 > > df (GNU coreutils) 8.30 > > $ cat /etc/debian_version > > 10.8 > >=20 > > df displays G instead of GM as unit size for Gigabytes in power of 1000 > > (but the value is correct) >=20 > This is not restricted to G >=20 > > $ df -BGB /home > > Sys. de fichiers blocs de 1GB Utilis=E9 Disponible Uti% Mont=E9 sur > > /dev/mapper/ssd2 421GB 355GB 45GB 89% /home > >=20 > > $ df -H /home > > Sys. de fichiers Taille Utilis=E9 Dispo Uti% Mont=E9 sur > > /dev/mapper/ssd2 421G 355G 45G 89% /home > > >=20 > In summary df -H is outputting with a concise single letter, which is > indistinguishable from that of df -h. I agree that's not ideal as the > output can't be interpreted without the command as context. I.e. it > restricts usage to direct command line usage. A possible change we could > make here would be to use GB, MB etc. if --si is specified. But also -h > and -H are not really useful outside of direct cli usage, I'm 50:50 on > changing this. >=20 > This was originally discussed at https://bugs.gnu.org/18119 >=20 It was brought up again more recently (Sept. 2020) here: https://lists.gnu.org/archive/html/coreutils/2020-09/msg00001.html The above post provided an extensive background and history of the issue, and a suggested patchset. > > Mentioned there is an option to use the new numfmt functionality > to provide more control and unambiguous output. >=20 > BTW the fact that a B suffix implies SI units is awkward in the first > place, which I've documented the reasons for at: >=20 > https://www.pixelbeat.org/docs/coreutils-gotchas.html#units >=20 Agree 100% with your statements therein. (And your above document is referenced as [2] in the above-mentioned posting from September). Imo, it would be a Very Nice Thing if the program behavior of --si would be brought into accordance with your documentation above (and with Section 2.3 of coreutils.info, which says essentially the same things) rather than having two sets of mutually conflicting documentation co-existing within coreutils. The proposed patchset does that. See above posting for details. It's very long, but it lays out the entire story from start to finish, with all known back references that I'm aware o= f. - Glenn Golden From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: L A Walsh Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 Mar 2021 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix Cc: gdg@zplane.com, 47023@debbugs.gnu.org X-Debbugs-Original-Cc: Glenn Golden , Coreutils Received: via spool by submit@debbugs.gnu.org id=B.16154116441639 (code B ref -1); Wed, 10 Mar 2021 21:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2021 21:27:24 +0000 Received: from localhost ([127.0.0.1]:52005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK6MV-0000QM-VM for submit@debbugs.gnu.org; Wed, 10 Mar 2021 16:27:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:41022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK6MU-0000QF-MM for submit@debbugs.gnu.org; Wed, 10 Mar 2021 16:27:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK6MU-0005ql-GL for bug-coreutils@gnu.org; Wed, 10 Mar 2021 16:27:22 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:58278 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK6MS-0003Eh-II for bug-coreutils@gnu.org; Wed, 10 Mar 2021 16:27:22 -0500 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 12ALRFSA075137; Wed, 10 Mar 2021 13:27:17 -0800 Message-ID: <604939B3.9060502@tlinx.org> Date: Wed, 10 Mar 2021 13:27:15 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> <20210310145014.GM6453@huh.zplane.com> In-Reply-To: <20210310145014.GM6453@huh.zplane.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, MISSING_HEADERS=1.021, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 2021/03/10 06:50, Glenn Golden wrote: > P=C3=A1draig, Philippe, Paul - > > P=C3=A1draig Brady [Tue, 9 Mar 2021 19:51:45 +0000]: > =20 >>> On 09/03/2021 12:58, Philippe B=C3=A9n=C3=A9zech via GNU coreutils Bu= g Reports wrote: >>> Dear maintener, >>> >>> I found a reproducible bug in df utility, installed in debian stable >>> >>> $ df --version |head -1 >>> df (GNU coreutils) 8.30 >>> $ cat /etc/debian_version >>> 10.8 >>> >>> df displays G instead of GM as unit size for Gigabytes in power of 10= 00 >>> (but the value is correct) >>> =20 ---- The documentation says: -h, --human-readable print sizes in powers of 1024 (e.g., 1023M) -H, --si print sizes in powers of 1000 (e.g., 1.1G) How is this a bug? If the idea is to print a scaling factor and use the minimum space necessary (1 byte for the prefix), it seem to be doing exactly what it is documented to do. Side rant: Using decimal prefixes with a binary unit (1B=3D2**3 bits) defeats the purpose of using a common multiplier for metric. Since computers use base-2, similar prefixes should be used. Just because the disk-industry bought and paid for the ruling to use base-10 doesn't mean that memory comes in units of 1-million, 1-billion or 1-trillion bytes or that disk space is organized in decimal units. I find it amazing that it is the French who most often vocalize support for the capitalistic-backed decision.=20 *sigh* Second, minor, side rant: Would be nice if more attention was paid to fixing mailers encoding "P=C3=A1draig" and "B=C3=A9n=C3=A9zech" as "P=EF=BF=BDdr= aig" and "B=EF=BF=BDn=EF=BF=BDzech" *double sigh* :-) From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: Glenn Golden Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 Mar 2021 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix To: L A Walsh Cc: 47023@debbugs.gnu.org Reply-To: gdg@zplane.com Received: via spool by 47023-submit@debbugs.gnu.org id=B47023.16154141855466 (code B ref 47023); Wed, 10 Mar 2021 22:10:01 +0000 Received: (at 47023) by debbugs.gnu.org; 10 Mar 2021 22:09:45 +0000 Received: from localhost ([127.0.0.1]:52043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK71U-0001Q6-Pw for submit@debbugs.gnu.org; Wed, 10 Mar 2021 17:09:45 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK71T-0001Pt-BS for 47023@debbugs.gnu.org; Wed, 10 Mar 2021 17:09:44 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0FB7F5C0172; Wed, 10 Mar 2021 17:09:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 10 Mar 2021 17:09:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zplane.com; h= date:from:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=3CwLeuJopYcCPJgiOD0RlowsWqwYFZhWfQ/By0b0 jmg=; b=zlddthfumegICxi9or6ABZF11ihX//empvDFoYL91TmTOS67nKwm/Poq hKH5Uu6H6zT1AKQCnMwGp4WTNgoqUv2LMT0QiVantcEwb7iDNMnPDUqvLDDgtFar 8plHj3whaCSMKUporDG9shIgkma8jbIasxjy9NaRTeaWQIRI/D3WCtCdtXtK/bo8 xHEiL1bTTiPCe9oT6IdYzkR/UOmtZ0TZUWAOQ/il6CxZ2MYfWXYCQgM9bk95xU4P zkvt/A9iYZpGuYtNpu4IykATajfb8DMCTi+eHL4TVS2Y6OJv4sPPMQdG4sqnzLgR NBJRKKeoVtTeXgHE6IgMRXUETMxxVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :reply-to:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=3CwLeuJopYcCPJgiOD0RlowsWqwYF ZhWfQ/By0b0jmg=; b=Dk2DlzxoAnBeAteL2godFUEC/DjXqPNgiF9vD7Mf9R/ap YAs2ChINDMwx8ZX/QI6ErfWjBPcBXV327ueoVaxTACUJnkFB/GdP7ST21DXVh5Sv ocERXOLDbhmhySm3DxkQDDm1GDYoMgl5l08ZEiKpHbPk1vcLQvBSEOXdxtKTvvPE J8IX9WCKih6CzPWum92KAp2a/hAT/z+kwg8HyPmhxhpkfxWha4em0jvJDSgsd8Pb A4Z0X+mkek35OJa+T5xY1DNwCrzdDjxefaGP51AtazDD8hre15/WSPYCp0KGFboz LuigwZbB+3gCUcHeDV+7PURJaca1bNC2n0e8bKtRQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgudehkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhrfhggtggugfgjfg esthhqtddttderjeenucfhrhhomhepifhlvghnnhcuifholhguvghnuceoghgughesiihp lhgrnhgvrdgtohhmqeenucggtffrrghtthgvrhhnpeetgfeuuedtjeevvdegieekieffte euvdeujeeufeefffeikeehheeuvdeugeeiffenucffohhmrghinhepghhnuhdrohhrghen ucfkphepieejrddujeeirdefjedrgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehgughgseiiphhlrghnvgdrtghomh X-ME-Proxy: Received: from huh.zplane.com (c-67-176-37-4.hsd1.co.comcast.net [67.176.37.4]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CBBD240054; Wed, 10 Mar 2021 17:09:37 -0500 (EST) Received: by huh.zplane.com (Postfix, from userid 501) id 2E843638BD; Wed, 10 Mar 2021 15:09:36 -0700 (MST) Date: Wed, 10 Mar 2021 15:09:36 -0700 From: Glenn Golden Message-ID: <20210310220936.GA3599@huh.zplane.com> References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> <20210310145014.GM6453@huh.zplane.com> <604939B3.9060502@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <604939B3.9060502@tlinx.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) L A Walsh [2021-03-10 13:27:15 -0800]: > On 2021/03/10 06:50, Glenn Golden wrote: > > P=C3=A1draig, Philippe, Paul - > >=20 > > P=C3=A1draig Brady [Tue, 9 Mar 2021 19:51:45 +0000]: > > > > On 09/03/2021 12:58, Philippe B=C3=A9n=C3=A9zech via GNU coreutils = Bug Reports wrote: > > > > Dear maintener, > > > >=20 > > > > I found a reproducible bug in df utility, installed in debian stable > > > >=20 > > > > $ df --version |head -1 > > > > df (GNU coreutils) 8.30 > > > > $ cat /etc/debian_version > > > > 10.8 > > > >=20 > > > > df displays G instead of GM as unit size for Gigabytes in power of = 1000 > > > > (but the value is correct) > ---- > The documentation says: >=20 > -h, --human-readable > print sizes in powers of 1024 (e.g., 1023M) >=20 > -H, --si > print sizes in powers of 1000 (e.g., 1.1G) >=20 > How is this a bug? >=20 > If the idea is to print a scaling factor and use the minimum > space necessary (1 byte for the prefix), it seem to be doing > exactly what it is documented to do. >=20 If you read the referenced post https://lists.gnu.org/archive/html/coreutils/2020-09/msg00001.html you'll understand what the issue is. > > Side rant: > Using decimal prefixes with a binary unit (1B=3D2**3 bits) > defeats the purpose of using a common multiplier for metric. > Since computers use base-2, similar prefixes should be used. > Just because the disk-industry bought and paid for the > ruling to use base-10 doesn't mean that memory comes in > units of 1-million, 1-billion or 1-trillion bytes or > that disk space is organized in decimal units. >=20 We've been thru all this before. See https://lists.gnu.org/archive/html/coreutils/2020-09/msg00007.html >=20 > Second, minor, side rant: > Would be nice if more attention was paid to fixing mailers encoding > "P=C3=A1draig" and "B=C3=A9n=C3=A9zech" as "P=EF=BF=BDdraig" and "B=EF= =BF=BDn=EF=BF=BDzech" > If you see substitute encodings like that, it strongly suggests the problem is your MUA, not mine. My posting to the list (the one you quote from above) shows the accented characters correctly. I'll be happy to send you a screen= shot if you wish. - Glenn Golden From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: L A Walsh Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 Mar 2021 22:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix Cc: gdg@zplane.com, 47023@debbugs.gnu.org X-Debbugs-Original-Cc: Glenn Golden , Coreutils Received: via spool by submit@debbugs.gnu.org id=B.16154166589265 (code B ref -1); Wed, 10 Mar 2021 22:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2021 22:50:58 +0000 Received: from localhost ([127.0.0.1]:52090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK7fO-0002PL-4a for submit@debbugs.gnu.org; Wed, 10 Mar 2021 17:50:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:49660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK7fM-0002PE-Rb for submit@debbugs.gnu.org; Wed, 10 Mar 2021 17:50:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK7fM-0006Ik-Im for bug-coreutils@gnu.org; Wed, 10 Mar 2021 17:50:56 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:33740 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK7fK-0001ZD-Oh for bug-coreutils@gnu.org; Wed, 10 Mar 2021 17:50:56 -0500 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 12AMooDH079842; Wed, 10 Mar 2021 14:50:52 -0800 Message-ID: <60494D4A.4090003@tlinx.org> Date: Wed, 10 Mar 2021 14:50:50 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> <20210310145014.GM6453@huh.zplane.com> <604939B3.9060502@tlinx.org> <20210310220936.GA3599@huh.zplane.com> In-Reply-To: <20210310220936.GA3599@huh.zplane.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, MISSING_HEADERS=1.021, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 2021/03/10 14:09, Glenn Golden wrote: > >> Second, minor, side rant: >> Would be nice if more attention was paid to fixing mailers encoding= >> "P=C3=A1draig" and "B=C3=A9n=C3=A9zech" as "P=EF=BF=BDdraig" and "B= =EF=BF=BDn=EF=BF=BDzech" >> >=20 > If you see substitute encodings like that, it strongly suggests the pro= blem > is your MUA, not mine.=20 ---- It's yours. You are using a local 8-bit encoding, whereas everyone else was using UTF-8. Your mailer re-encoded their messages into one of the 8-bit western encodings, whereas most people use UTF-8 these days, so while their original messages with accents came through just fine in UTF-8, your re-encoding into Western didn't display properly. From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 10 Mar 2021 23:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix To: L A Walsh Cc: gdg@zplane.com, 47023@debbugs.gnu.org Received: via spool by 47023-submit@debbugs.gnu.org id=B47023.161541849912110 (code B ref 47023); Wed, 10 Mar 2021 23:22:02 +0000 Received: (at 47023) by debbugs.gnu.org; 10 Mar 2021 23:21:39 +0000 Received: from localhost ([127.0.0.1]:52116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK894-00039G-TC for submit@debbugs.gnu.org; Wed, 10 Mar 2021 18:21:39 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:47606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK892-000391-Kz for 47023@debbugs.gnu.org; Wed, 10 Mar 2021 18:21:37 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 785A5160100; Wed, 10 Mar 2021 15:21:30 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pmmLcCYjBUZy; Wed, 10 Mar 2021 15:21:29 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8386C160109; Wed, 10 Mar 2021 15:21:29 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jBUzsuVXVtJa; Wed, 10 Mar 2021 15:21:29 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5B401160100; Wed, 10 Mar 2021 15:21:29 -0800 (PST) References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> <20210310145014.GM6453@huh.zplane.com> <604939B3.9060502@tlinx.org> <20210310220936.GA3599@huh.zplane.com> <60494D4A.4090003@tlinx.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Wed, 10 Mar 2021 15:21:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <60494D4A.4090003@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 3/10/21 2:50 PM, L A Walsh wrote: > You are using a local 8-bit encoding, whereas everyone else was > using UTF-8.=C2=A0 Your mailer re-encoded their messages into one > of the 8-bit western encodings, whereas most people use UTF-8 > these days, so while their original messages with accents came > through just fine in UTF-8, your re-encoding into Western didn't > display properly. Although his email did reencode those names into ISO 8859-1 which is=20 more likely to cause problems than cure them these days, it still=20 displays well on my MUA (Thunderbird) because its header said=20 "Content-Type: text/plain; charset=3Diso-8859-1". His email is also=20 displaying properly in the archive=20 , as the=20 archiving software reencodes those names back into UTF-8 and the web=20 page uses "Content-Type: text/html; charset=3Dutf-8" for all the emails. Possibly your email client is programmed to ignore encodings in incoming=20 "Content-Type" lines; that would explain the glitches you saw. From unknown Tue Sep 09 08:08:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47023: df utilility displays G instead of GM as unit size for Gigabytes in power of 1000 Resent-From: L A Walsh Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 11 Mar 2021 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47023 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: wontfix To: Paul Eggert Cc: gdg@zplane.com, 47023@debbugs.gnu.org X-Debbugs-Original-Cc: gdg@zplane.com, Coreutils Received: via spool by submit@debbugs.gnu.org id=B.161543600014233 (code B ref -1); Thu, 11 Mar 2021 04:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2021 04:13:20 +0000 Received: from localhost ([127.0.0.1]:52361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKChM-0003hV-2s for submit@debbugs.gnu.org; Wed, 10 Mar 2021 23:13:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:37406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKChK-0003hN-RQ for submit@debbugs.gnu.org; Wed, 10 Mar 2021 23:13:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKChK-0001Qo-M4 for bug-coreutils@gnu.org; Wed, 10 Mar 2021 23:13:18 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:46934 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKChI-0003x7-5Y for bug-coreutils@gnu.org; Wed, 10 Mar 2021 23:13:18 -0500 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 12B4D4mU098367; Wed, 10 Mar 2021 20:13:06 -0800 Message-ID: <604998D1.9070603@tlinx.org> Date: Wed, 10 Mar 2021 20:13:05 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <91273fc2-249d-0ccc-3cbd-2c08fcb85fdf@laposte.net> <20210310145014.GM6453@huh.zplane.com> <604939B3.9060502@tlinx.org> <20210310220936.GA3599@huh.zplane.com> <60494D4A.4090003@tlinx.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 2021/03/10 15:21, Paul Eggert wrote: > Although his email did reencode those names into ISO 8859-1 which is > more likely to cause problems than cure them these days, it still > displays well on my MUA (Thunderbird) because its header said > "Content-Type: text/plain; charset=iso-8859-1". His email is also > displaying properly in the archive > , as the > archiving software reencodes those names back into UTF-8 and the web > page uses "Content-Type: text/html; charset=utf-8" for all the emails. > > Possibly your email client is programmed to ignore encodings in incoming > "Content-Type" lines; that would explain the glitches you saw. ---- I also have Tbird, and for content I can adapt it but usually have it set to ignore non-UTF-8 these days, as occasionally, someone has an old mailer that sends out 8-bit encoding and Tbird would seamlessly adapt and send the email back out in the same format. I didn't want to pass on bad encodings when I replied to such items to a list, so I changed that default. However, what Tbird doesn't handle well is local encodings used in the 'To' or subject lines since there is no encoding line for those. In a text archive it can convert and display both in UTF-8 format, but even if I set Tbird to respond in the same encoding, it won't fix the encodings in the header as the content-type: text/plain doesn't apply to the headers. So while archives and the email text can be fixed, the text in the headers often can't. The only thing to do is bring it to their attention and hope they have the technical skills to set their mailer to use UTF-8.