From nobody Tue Nov 01 00:46:37 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N1WYT5gcPz4gy7r; Tue, 1 Nov 2022 00:46:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N1WYT440Dz3RTF; Tue, 1 Nov 2022 00:46:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667263597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zqCyxJWPRrIJUr7buehQq/tR02d122i9LvreOQvtpDo=; b=IoFcdIIfAZjjwzUAkGb0tFT2R/u5FNRYXtsEi9K70B8JWYAFczAUcn0iJPoiUfQcjX39hi NVfIDkNbh+tSCTokWC2cdIsmwX6+r8pa9Qs/SUKdO6/+wIoDtUf9v5hPigbppkv/T4V6d6 d5wjlv9vjaRjxcoaLg5unpWUhlhW0Lu6WHYYjlSkiow6UwrxFPurl9FP7EyZ3xBYo3C4Pf zLMGU+3jY5kKrnyTjfDSx8SBf1l/HQHOdwY2Kc+QqrqEEl4A20Fxu/EjPE+kPRH21zKGsh 2qw6qri1x0DlqBeHQC4EDKOC1T+T4pxu/41jdZvpnl7jqHpYsQrBHH+KTX/DTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N1WYT3B0tzx4y; Tue, 1 Nov 2022 00:46:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A10kbm2042165; Tue, 1 Nov 2022 00:46:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A10kbdK042164; Tue, 1 Nov 2022 00:46:37 GMT (envelope-from git) Date: Tue, 1 Nov 2022 00:46:37 GMT Message-Id: <202211010046.2A10kbdK042164@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: b37c1241fee1 - stable/13 - strfmon(3): Fix # explanation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b37c1241fee1921dd752375cc925195b7a0fcce8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667263597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zqCyxJWPRrIJUr7buehQq/tR02d122i9LvreOQvtpDo=; b=k3ignisFo3q4m03q66HSoFxJS9YC+e6m0ALSl3RC6eov7P+cmqDqd28e/XpzxEp7XyEQEK Pk3XrC01UuGQS8ZEhjqN8SksC9Lhl6KOlS2t0fuV85aGkTBJ+z9nCxv4brA+dcDfAQz2B0 9cUKUENuhWK4oe971UgnUkoKb+caKpgbnBsH+Lday3VJ4wx3XFrgib31iBeOGHEJq3TswO 0iaf8QsEPm+4VNaxFKbv0DsKCHIsctC+5Eniu6r2lzHz5DOOwzQYIItJIrtS1yIFcvny1N Ui9cAdLufpfLN/rsl/tYrJGE94Xtyy8LI8db1psmTOtZ18b0HprtVs+wT1TswQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667263597; a=rsa-sha256; cv=none; b=VPDP7H9nfZ9kqZTn9irpaMz4SMoaBrGJ2HDb8nl0v3RYD6raSTP/3gQN/zyMXGAjrrwllH 2ecb6FFd22qKSGGfRPjF8PxyUHus7aHa8P4oGYzBTqV7KjbYcivdX/1NuQR9gD2m+uaruK qSzBug42JRdJXDS7B6WU+kiKtp0Qude/IRSC+I1oTVhL4oSDHpBz6AEK7rIIwchftGIUbj affpLvWX3PFuhxHis6SE6QG6MlsXHPRnEAZWjJ5RaClbPQ4miB180pU2aX6nGflQknU6Aa g5Sd6+LgZx+eTsH/ySfztOqLr2xW5e5k8kjkaTk/p4ccBQOlj1X29n0d9wUFTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b37c1241fee1921dd752375cc925195b7a0fcce8 commit b37c1241fee1921dd752375cc925195b7a0fcce8 Author: Jose Luis Duran AuthorDate: 2022-10-13 16:11:31 +0000 Commit: Konstantin Belousov CommitDate: 2022-11-01 00:44:42 +0000 strfmon(3): Fix # explanation (cherry picked from commit 7cfd67ce96d97c263c2c56c5c437426463467689) --- lib/libc/stdlib/strfmon.3 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3 index d6dcf693b80e..27dbbe49071f 100644 --- a/lib/libc/stdlib/strfmon.3 +++ b/lib/libc/stdlib/strfmon.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 25, 2012 +.Dd October 26, 2022 .Dt STRFMON 3 .Os .Sh NAME @@ -98,7 +98,13 @@ By default, there is no minimum width. A .Sq Cm # sign followed by a decimal number specifying the maximum -expected number of digits after the radix character. +expected number of digits before the radix character. +When this option is used, values that do not exceed the +specified number of digits are formatted so they will be +correctly aligned with other values printed using the same +format. +This includes always leaving space for a possible sign +indicator, even if none is needed for a particular value. .It A .Sq Cm \&.