From nobody Sat Dec 17 00:46:05 2022 X-Original-To: bugs@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 4NYnMf0KZfz1CVSN for ; Sat, 17 Dec 2022 00:46:06 +0000 (UTC) (envelope-from bugzilla-noreply@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 4NYnMd5xJbz4N2M for ; Sat, 17 Dec 2022 00:46:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671237965; 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=oU9EuUBdnVEKZkPx5CW4vzI7k9k2WwQTjfNyTX5quXI=; b=kdbqHG13s3cb1uFCknHmTU83YjfrbxcXOpDoH9sIvVBi7DeWGXTIoqUqQLxIBURiSPcZGm XXt8RjNf4JfkYnk/zrk+Gk82mOtAT8NeaPr/2rnJJEBoFBZqdlez8lhQiOM9CqnQbEDtQs 0GLyA7VxJ6YeG35bfn32iRSEwbQh9jCfgt8ruRK4IJNe9hYBTvfpj7229r/wNBwrLHBEav fAMAb9Ht24VMsyu44wyRypW78vJ0ubWFU5RmbCzBAE+6rx2QdWMfzPtpqBrFhCsCKcr8fF La95QLLvz4dw6SJmIj3UOr+th15BAjQMaQ+9dvSOdEUWt+HXaHH9n5eKI66l/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671237965; a=rsa-sha256; cv=none; b=kigrjgbI5TP7NbTa2WxSAqgE1Ipfdz3cxm83hfnZ8Zq6YXzzuWrA5pJBKidvHMQ2Fzczth FKuNsM31h2BVkwEpU8p45OnggaXgrCe36qD2GdX6nKNcGAa2/vJZPGbmZtWAhuRsuT0zFE aSke6Dv/YKxwKRDHH2VOEZKtbzLfj8nn/Y//SOmuKeIv7fuV1jRl/gFgfomrBq55SAk4eg yLoB1oV4mOi6o58yrxhrrmX5/To78HE1MFj1YjaJy1NDiEu3kkVAVNOdP2bo2EZQkUXw6v YSoc2tNcCTAxesShpENS2wBoOPBD25vQaDxnzGU5OH1fGMy/pyzEETFX8tOELg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4NYnMd4sKTzY9h for ; Sat, 17 Dec 2022 00:46:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BH0k5es056777 for ; Sat, 17 Dec 2022 00:46:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BH0k5Ve056776 for bugs@FreeBSD.org; Sat, 17 Dec 2022 00:46:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268421] ATAN2(3) manpage contains UTF8 character codes Date: Sat, 17 Dec 2022 00:46:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dclarke@blastwave.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268421 Bug ID: 268421 Summary: ATAN2(3) manpage contains UTF8 character codes Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Manual Pages Assignee: bugs@FreeBSD.org Reporter: dclarke@blastwave.org CC: doc@FreeBSD.org Looking at the manpage for ATAN2(3) where I see the strange usage of some UTF8 characters where a trivial asterisk '*' would be fine. This page does not render on my XTerm with a whole collection of fonts available.=20 $ uname -apKU=20 FreeBSD callisto 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64 amd64 1301000 1301000 $ man atan2 | grep 'satisfy' | hdump -Ax -t x1 -v 0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 10: 73 61 74 69 73 66 79 20 78 20 3d 20 72 e2 88 97 20: 63 6f 73 20 74 68 65 74 61 20 61 6e 64 20 79 20 30: 3d 20 72 e2 88 97 73 69 6e 20 74 68 65 74 61 2e 40: 20 20 54 68 65 73 65 20 65 71 75 61 74 69 6f 6e 50: 73 0a 52:=20 $ There we see the strange UTF-8 char byte sequence "e2 88 97". On NetBSD 9.3 I see :=20 NOTES The function atan2() defines "if x > 0," atan2(0, 0) =3D 0 on a VAX de= spite that previously atan2(0, 0) may have generated an error message. The reasons for assigning a value to atan2(0, 0) are these: 1. Programs that test arguments to avoid computing atan2(0, 0) must be indifferent to its value. Programs that require it= to be invalid are vulnerable to diverse reactions to that invalidity on diverse computer systems. 2. The atan2() function is used mostly to convert from rectangular (x,y) to polar (r,theta) coordinates that must satisfy x =3D r*cos theta and y =3D r*sin theta. These equ= ations are satisfied when (x=3D0,y=3D0) is mapped to (r=3D0,theta= =3D0) on a VAX. In general, conversions to polar coordinates should be computed thus: r :=3D hypot(x,y); ... :=3D sqrt(x*x+y*y) theta :=3D atan2(y,x). 3. The foregoing formulas need not be altered to cope in a reasonable way with signed zeros and infinities on a machine that conforms to IEEE 754; the versions of hypot(3) and atan2() provided for such a machine are designed to handle = all cases. That is why atan2(+-0, -0) =3D +-pi for instance. = In general the formulas above are equivalent to these: r :=3D sqrt(x*x+y*y); if r =3D 0 then x :=3D copysign= (1,x); Those are trivial asterisk chars 0x2A ASCII and they work everywhere. --=20 Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional --=20 You are receiving this mail because: You are the assignee for the bug.=