From owner-freebsd-bugs@freebsd.org Thu Apr 21 22:44:01 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F07F7B18569 for ; Thu, 21 Apr 2016 22:44:01 +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 mx1.freebsd.org (Postfix) with ESMTPS id C77C41768 for ; Thu, 21 Apr 2016 22:44:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u3LMi1SB067777 for ; Thu, 21 Apr 2016 22:44:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 208966] [patch] man(groff) not supporting (pl_PL.)UTF-8 input Date: Thu, 21 Apr 2016 22:44:01 +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: 10.3-RELEASE X-Bugzilla-Keywords: easy, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cocsackie@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter 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.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2016 22:44:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208966 Bug ID: 208966 Summary: [patch] man(groff) not supporting (pl_PL.)UTF-8 input Product: Base System Version: 10.3-RELEASE Hardware: Any OS: Any Status: New Keywords: easy, patch Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: cocsackie@gmail.com `Man` uses `groff`, which is accepting only ascii as input - for example UT= F-8 characters are not displayed correctly. Current version of `groff` is 1.19.= 2, which doesn't support -k, -K and -D flags. Those flags are supported by `gr= off` version 1.22.3 located in ports. Flags mentioned use `preconv` to escape characters from the outside of ascii. `Preconv` is already present in the FreeBSD. How-To-Repeat: 1. create man page inside localized man directory MANPATH/pl.UTF-8/man1/manproblem.1.gz with polish letters (=C4=99=C3=B3=C4= =85=C5=9B=C5=82=C5=BC=C5=BA=C4=87=C5=84) 2. Properly setup locale, fonts, keyboardmapping, etc. export LANG=3Dpl_PL.UTF-8 3. Show man page: man manproblem Proposed solutions: 1. Use newer version of `groff` and update `man` script (-D flag says to use `preconv` as preprocessor to `groff` as well as specifies input encoding - = this was already proposed option in linked bug issue): 333c333 < NROFF=3D"$NROFF -D$nroff_dev -T$nroff_dev" --- > NROFF=3D"$NROFF -T$nroff_dev" 2. Use `preconv` as preprocessor and update `man` script (doesn't require to use port version of `groff`): 333c333 < NROFF=3D"$NROFF -T$nroff_dev" --- > NROFF=3D"$PRECONV -D$nroff_dev | $NROFF -T$nroff_dev" 941a942 > PRECONV=3Dpreconv --=20 You are receiving this mail because: You are the assignee for the bug.=