Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72830 Details for
Bug 104593
man-pages-ru-0.98 & man-1.6a are incompatible
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
new nroff version which fixes problems with russian man pages on unicode boxes
nroff (text/plain), 2.63 KB, created by
Sergey Belyashov
on 2005-11-13 08:42:50 UTC
(
hide
)
Description:
new nroff version which fixes problems with russian man pages on unicode boxes
Filename:
MIME Type:
Creator:
Sergey Belyashov
Created:
2005-11-13 08:42:50 UTC
Size:
2.63 KB
patch
obsolete
>#! /bin/sh ># Emulate nroff with groff. > >prog="$0" ># Default device. ># First try the "locale charmap" command, because it's most reliable. ># On systems where it doesn't exist, look at the environment variables. >out_locale="`exec 2>/dev/null ; locale charmap`" >case ${out_locale} in > UTF-8) > T=-Tutf8 ;; > ISO-8859-1 | ISO-8859-15) > T=-Tlatin1 ;; > IBM-1047) > T=-Tcp1047 ;; > *) > case "${LC_ALL-${LC_CTYPE-${LANG}}}" in > *.UTF-8) > T=-Tutf8 ;; > iso_8859_1 | *.ISO-8859-1 | *.ISO8859-1 | \ > iso_8859_15 | *.ISO-8859-15 | *.ISO8859-15) > T=-Tlatin1 ;; > *.IBM-1047) > T=-Tcp1047 ;; > *) > case "$LESSCHARSET" in > utf-8) > T=-Tutf8 ;; > latin1) > T=-Tlatin1 ;; > cp1047) > T=-Tcp1047 ;; > *) > T=-Tascii ;; > esac ;; > esac ;; >esac >opts= >manpage= > ># `for i; do' doesn't work with some versions of sh > >for i > do > case $1 in > -c) > opts="$opts -P-c" ;; > -h) > opts="$opts -P-h" ;; > -[eq] | -s*) > # ignore these options > ;; > -[dMmrnoT]) > echo "$prog: option $1 requires an argument" >&2 > exit 1 ;; > -[iptSUC] | -[dMmrno]*) > opts="$opts $1" ;; > --manpage) > manpage=yes ;; > -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047) > T=$1 ;; > -T*) > # ignore other devices > ;; > -u*) > # Solaris 2.2 through at least Solaris 9 `man' invokes > # `nroff -u0 ... | col -x'. Ignore the -u0, > # since `less' and `more' can use the emboldening info. > # However, disable SGR, since Solaris `col' mishandles it. > opts="$opts -P-c" ;; > -v | --version) > echo "GNU nroff (groff) version 1.19.2 (Gentoo)" > exit 0 ;; > --help) > echo "usage: nroff [-CchipStUv] [-dCS] [-MDIR] [-mNAME] [-nNUM] [-oLIST]" > echo " [-rCN] [-Tname] [--manpage] [FILE...]" > exit 0 ;; > --) > shift > break ;; > -) > break ;; > -*) > echo "$prog: invalid option $1" >&2 > exit 1 ;; > *) > break ;; > esac > shift >done > ># Set up the `GROFF_BIN_PATH' variable ># to be exported in the current `GROFF_RUNTIME' environment. > >GROFF_RUNTIME="${GROFF_BIN_PATH=/usr/bin}:" >export GROFF_BIN_PATH > >in_locale=${out_locale} > >if [ ${manpage} ]; then > case "`exec 2>/dev/null ; locale language`" in > Russian) > in_locale="KOI8-R" ;; > esac > T=-Tlatin1 >fi > ># This shell script is intended for use with man, so warnings are ># probably not wanted. Also load nroff-style character definitions. > >PATH="$GROFF_RUNTIME$PATH" groff -mtty-char $T $opts ${1+"$@"} \ > | iconv -f ${in_locale} -t ${out_locale} > ># eof
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 104593
:
68246
|
68247
|
72589
|
72830
|
90884
|
90886