Changed nroff script again.
This commit is contained in:
parent
bdc8a81a09
commit
eedfd3d838
@ -3,7 +3,7 @@
|
|||||||
Summary: A document formatting system
|
Summary: A document formatting system
|
||||||
Name: groff
|
Name: groff
|
||||||
Version: 1.18.1.4
|
Version: 1.18.1.4
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
URL: http://groff.ffii.org
|
URL: http://groff.ffii.org
|
||||||
@ -233,7 +233,8 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 16 2007 Marcela Maslanova <mmaslano@redhat.com> - 1.18.1.4-6
|
* Thu Aug 16 2007 Marcela Maslanova <mmaslano@redhat.com> - 1.18.1.4-7
|
||||||
|
- rebuild
|
||||||
- another encoding are print correct with nroff
|
- another encoding are print correct with nroff
|
||||||
- Resolves: rhbz#251064
|
- Resolves: rhbz#251064
|
||||||
|
|
||||||
|
9
nroff
9
nroff
@ -4,8 +4,7 @@
|
|||||||
prog="$0"
|
prog="$0"
|
||||||
charset_in=iso-8859-1
|
charset_in=iso-8859-1
|
||||||
charset_out=`locale charmap 2>/dev/null`
|
charset_out=`locale charmap 2>/dev/null`
|
||||||
opts=
|
opts="-mtty-char -Tutf8"
|
||||||
othercoding=0
|
|
||||||
|
|
||||||
# Default device.
|
# Default device.
|
||||||
# First try the "locale charmap" command, because it's most reliable.
|
# First try the "locale charmap" command, because it's most reliable.
|
||||||
@ -51,6 +50,7 @@ case "`locale charmap 2>/dev/null`" in
|
|||||||
esac ;;
|
esac ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
for i
|
for i
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
@ -67,7 +67,7 @@ do
|
|||||||
-[iptSUC] | -[mrno]*)
|
-[iptSUC] | -[mrno]*)
|
||||||
opts="$opts $1" ;;
|
opts="$opts $1" ;;
|
||||||
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon | -Tkorean)
|
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon | -Tkorean)
|
||||||
othercoding=1
|
opts=
|
||||||
T=$1 ;;
|
T=$1 ;;
|
||||||
-T*)
|
-T*)
|
||||||
# ignore other devices
|
# ignore other devices
|
||||||
@ -120,9 +120,6 @@ export LC_ALL=en_US.UTF-8
|
|||||||
|
|
||||||
# This shell script is intended for use with man, so warnings are
|
# This shell script is intended for use with man, so warnings are
|
||||||
# probably not wanted. Also load nroff-style character definitions.
|
# probably not wanted. Also load nroff-style character definitions.
|
||||||
if [ "$othercoding" == 0 ]; then
|
|
||||||
opts="-mtty-char -Tutf8"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $charset_in = utf-8 -a $charset_out = UTF-8 ]; then
|
if [ $charset_in = utf-8 -a $charset_out = UTF-8 ]; then
|
||||||
if [ $TMPFILE = buf ]; then
|
if [ $TMPFILE = buf ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user