Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90886 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]
[patch]
sys-apps/groff/files/groff-1.19.2-nroff-manpage.patch
groff-1.19.2-nroff-manpage.patch (text/plain), 1.73 KB, created by
Sergey Belyashov
on 2006-07-04 11:55:07 UTC
(
hide
)
Description:
sys-apps/groff/files/groff-1.19.2-nroff-manpage.patch
Filename:
MIME Type:
Creator:
Sergey Belyashov
Created:
2006-07-04 11:55:07 UTC
Size:
1.73 KB
patch
obsolete
>diff -ruN groff-1.19.2.orig/src/roff/nroff/nroff.sh groff-1.19.2/src/roff/nroff/nroff.sh >--- groff-1.19.2.orig/src/roff/nroff/nroff.sh 2005-06-17 11:19:11.000000000 +0400 >+++ groff-1.19.2/src/roff/nroff/nroff.sh 2006-07-04 22:37:12.000000000 +0400 >@@ -5,7 +5,8 @@ > # 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. >-case "`exec 2>/dev/null ; locale charmap`" in >+out_locale="`exec 2>/dev/null ; locale charmap`" >+case ${out_locale} in > UTF-8) > T=-Tutf8 ;; > ISO-8859-1 | ISO-8859-15) >@@ -35,6 +36,7 @@ > esac ;; > esac > opts= >+manpage= > > # `for i; do' doesn't work with some versions of sh > >@@ -53,6 +55,8 @@ > exit 1 ;; > -[iptSUC] | -[dMmrno]*) > opts="$opts $1" ;; >+ --manpage) >+ manpage=yes ;; > -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047) > T=$1 ;; > -T*) >@@ -69,7 +73,7 @@ > exit 0 ;; > --help) > echo "usage: nroff [-CchipStUv] [-dCS] [-MDIR] [-mNAME] [-nNUM] [-oLIST]" >- echo " [-rCN] [-Tname] [FILE...]" >+ echo " [-rCN] [-Tname] [--manpage] [FILE...]" > exit 0 ;; > --) > shift >@@ -91,9 +95,19 @@ > @GROFF_BIN_PATH_SETUP@ > 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+"$@"} >+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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104593
:
68246
|
68247
|
72589
|
72830
|
90884
| 90886