From nobody Sat Dec 17 00:46:05 2022 X-Original-To: doc@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 4NYnMf0Nf9z1CVPM 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 4NYnMd5G0Wz4N2L 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=FwU4/eYMdbVNAO0T4qUAHcfr+Y3LD1qKmQ69nAjKhW4=; b=wo7qUqT31vnFeAPxo4OlXGR+e53ch+6WlLjjdtPhmVcJ0HXSZLlvgNMFtyJcobcrR7DW+c UAsHw2k8yAE12lk12RAummyzIgUxf/7t+eLAo+Oxs20Kz1DGdh4uVN64LLCTzNepXT9E4W vZk8xN3FrCflEoLAmWERriuFfeCJsph0IvHNk2wIS0jEzRNt0JwPrBim7GgSy6ttAbRRg7 XeLrULZRPCcEv0YCxtl6z2hgVYCVeZ9hyHzDQeKziela/iv/frHk5N5JxtrLI64ZZBHZNL KeDzA/vL/yKEHjIgK9XC26XfDQ/DQGddiJvltjZeLKVBZUK/Ue0UYcgTBo/r6w== 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=ueZlDngHg2PdCrNt6fu4BwFjmqG/4rSs5X5YpZbAiCYk9e286Ns1BYzSDkrP/rXZiZdexA 2D10O3ENaeU4H06v4j21Ev/vnMMzfizBy2NxveTbsIE0JW4NG+3k7ZvWDC0OGpaZ9rr9Ei msFCbUOYh4SefU+dGsk1rwOC8h6uCjkskjzHGHufjr4QPX5U6wYCliiu7HCoJHzRg7Zad9 UF6zB9UWgvchrjThHw19ZnCpr3f/meP/+p18yI9UQj0prmgbG4P31oh8hLWGyMsKlpoTcZ j8tVtIUGcv8Ht+wpmpxB/A9b+CCEBu1hmqtbJsHfnL0CGVNGjuY51f4VKnicHg== 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 4NYnMd4CmGzY91 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 2BH0k5gh056773 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 2BH0k5Hf056772 for doc@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: doc@FreeBSD.org Subject: [Bug 268421] ATAN2(3) manpage contains UTF8 character codes Date: Sat, 17 Dec 2022 00:46:05 +0000 X-Bugzilla-Reason: CC 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@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 on the CC list for the bug.=