Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2016 22:44:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208966] [patch] man(groff) not supporting (pl_PL.)UTF-8 input
Message-ID:  <bug-208966-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208966-8>