Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193973 - sys-apps/man: JNROFF hack for japanese env
Summary: sys-apps/man: JNROFF hack for japanese env
Status: RESOLVED DUPLICATE of bug 104882
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 10:28 UTC by MATSUU Takuto (RETIRED)
Modified: 2007-09-28 23:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
man-1.6e-r4.ebuild.patch (man-1.6e-r4.ebuild.patch,805 bytes, patch)
2007-09-27 10:29 UTC, MATSUU Takuto (RETIRED)
Details | Diff
files/man-1.6e-jnroff.patch (man-1.6e-jnroff.patch,745 bytes, patch)
2007-09-27 10:29 UTC, MATSUU Takuto (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUU Takuto (RETIRED) gentoo-dev 2007-09-27 10:28:48 UTC
in some japanese env situations, man doesn't work well because charset issue.
it needs to convert charset before applying groff.

please apply the patch.

Steps to Reproduce
1.env LANG=ja_JP.eucJP xterm -e man man (success)
2.env LANG=ja_JP.UTF-8 xterm -e man man (fail)
3.env LANG=ja_JP.eucJP xterm -e man login (fail)
4.env LANG=ja_JP.UTF-8 xterm -e man login (fail)

Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Timestamp of tree: Wed, 26 Sep 2007 16:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ja_JP.UTF-8"
LINGUAS="ja"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/secondlife /usr/portage/local/layman/haskell /home/matsuu/work/matsuu/gentoo"
SYNC="rsync://192.168.1.1/gentoo-portage"
USE="X acl acpi alsa anthy apache2 arts berkdb bitmap-fonts bzip2 cairo caps cdr cjk cli cracklib crypt ctype cups curl dba dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox foomaticdb fortran gdbm gif gnome gnutls gpm gstreamer gtk hal hpn iconv immqt-bc ipv6 isdnlog java jpeg kde kerberos lcms logrotate mad midi mikmod mono mozdevelop mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pop ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby scim sdl session sidebar snmp sockets spell spl sqlite ssl svg tcpd thunderbird tiff truetype truetype-fonts type1-fonts uim unicode vorbis win32codecs x86 xml xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja" USERLAND="GNU" VIDEO_CARDS="via"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2007-09-27 10:29:29 UTC
Created attachment 132016 [details, diff]
man-1.6e-r4.ebuild.patch
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2007-09-27 10:29:52 UTC
Created attachment 132018 [details, diff]
files/man-1.6e-jnroff.patch
Comment 3 SpanKY gentoo-dev 2007-09-27 13:21:04 UTC
i really dont think this is specific to japanese at all

*** This bug has been marked as a duplicate of bug 104882 ***
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2007-09-28 23:14:49 UTC
man already has japanese hack as JNROFF(see the patch) but it doesn't work well.
Its true that full utf8 support is better way to support all languages, but man (and groff) has no good utf8 support for a long time.
Its real way to support japanese and its no affect to other languages (see the patch).