From owner-freebsd-bugs@freebsd.org Sun May 27 10:42:43 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4EBAFEFE31E for ; Sun, 27 May 2018 10:42:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D904D7B352 for ; Sun, 27 May 2018 10:42:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 929AFEFE31D; Sun, 27 May 2018 10:42:42 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B10DEFE31C for ; Sun, 27 May 2018 10:42:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0088C7B350 for ; Sun, 27 May 2018 10:42:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 25EC0EA34 for ; Sun, 27 May 2018 10:42:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w4RAgfNg022113 for ; Sun, 27 May 2018 10:42:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4RAgfDC022112 for bugs@FreeBSD.org; Sun, 27 May 2018 10:42:41 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 228539] [PATCH] for /usr/bin/man when using multibyte characters (utf-8). Date: Sun, 27 May 2018 10:42:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: satoumc@as.airnet.ne.jp 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 attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2018 10:42:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228539 Bug ID: 228539 Summary: [PATCH] for /usr/bin/man when using multibyte characters (utf-8). Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: satoumc@as.airnet.ne.jp Created attachment 193757 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193757&action= =3Dedit patch itself. The /usr/bin/man command has the following problems, when using the manual source files of UTF-8 encoding, source written in the multi-byte characters language. A: When using the 'mandoc' command in man command A1: Folding of the character strings are quite low quality, and the text formats are often corrupted. B: When using the 'groff' command in man command (it is used when a problem occurs in mandoc) B1: Command can not recognize that the source is UTF-8 and users can not read because the outputs are garbled. B2: Folding of the character string is quite low quality, and the text formats are often corrupted. B3: The new mdoc(7) format is not supported. I made a patch to solve these problems. It is very short. - User can select whether to use 'mandoc' or 'groff', with the environment variable MANPROC. - Use the new groff with appropriate options (-D$nroff_dev, -mandoc). - User can give necessary options to groff with the environment variable MANROFFOPT. User can avoid the problems as follows: A1: User can solve it by setting MANPROC=3D"groff" and letting groff handle the process. After the 'mandoc' command is improved in the future, user can undo it. B1: By setting -D$nroff_dev with new groff, it will be solved automaticall= y. B2: In the Japanese-speaking area, problems can be solved if the user sets MANROFFOPT=3D"-mja". Perhaps users want to use "-mfr" in French-speaking countries and "-mde" in German-speaking countries. B3: Because we set -mandoc instead of -man with newer groff, It automatically identifies man(7) and mdoc(7) and performs appropriate formatting. There is no change for this modification to English-speaking users who currently have no problem, No new problems will occur for them. --=20 You are receiving this mail because: You are the assignee for the bug.=