-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon) weren't
supported in nroff script.
This commit is contained in:
parent
19207b66bf
commit
bdc8a81a09
@ -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: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
URL: http://groff.ffii.org
|
URL: http://groff.ffii.org
|
||||||
@ -233,6 +233,10 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 16 2007 Marcela Maslanova <mmaslano@redhat.com> - 1.18.1.4-6
|
||||||
|
- another encoding are print correct with nroff
|
||||||
|
- Resolves: rhbz#251064
|
||||||
|
|
||||||
* Mon Jul 2 2007 Marcela Maslanova <mmaslano@redhat.com> - 1.18.1.4-5
|
* Mon Jul 2 2007 Marcela Maslanova <mmaslano@redhat.com> - 1.18.1.4-5
|
||||||
- Resolves: rhbz#245934
|
- Resolves: rhbz#245934
|
||||||
|
|
||||||
|
58
nroff
58
nroff
@ -4,7 +4,52 @@
|
|||||||
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="-mtty-char -Tutf8"
|
opts=
|
||||||
|
othercoding=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.
|
||||||
|
case "`locale charmap 2>/dev/null`" in
|
||||||
|
UTF-8)
|
||||||
|
T=-Tutf8 ;;
|
||||||
|
ISO-8859-1)
|
||||||
|
T=-Tlatin1 ;;
|
||||||
|
IBM-1047)
|
||||||
|
T=-Tcp1047 ;;
|
||||||
|
EUC-JP)
|
||||||
|
T=-Tnippon ;;
|
||||||
|
EUC-KR)
|
||||||
|
T=-Tkorean ;;
|
||||||
|
*)
|
||||||
|
case "${LC_ALL-${LC_CTYPE-${LANG}}}" in
|
||||||
|
*.UTF-8)
|
||||||
|
T=-Tutf8 ;;
|
||||||
|
iso_8859_1 | *.ISO-8859-1)
|
||||||
|
T=-Tlatin1 ;;
|
||||||
|
*.IBM-1047)
|
||||||
|
T=-Tcp1047 ;;
|
||||||
|
ja_JP.ujis | ja_JP.eucJP)
|
||||||
|
T=-Tnippon ;;
|
||||||
|
ko_KR.eucKR)
|
||||||
|
T=-Tkorean ;;
|
||||||
|
*)
|
||||||
|
case "$LESSCHARSET" in
|
||||||
|
utf-8)
|
||||||
|
T=-Tutf8 ;;
|
||||||
|
latin1)
|
||||||
|
T=-Tlatin1 ;;
|
||||||
|
cp1047)
|
||||||
|
T=-Tcp1047 ;;
|
||||||
|
japanese)
|
||||||
|
T=-Tnippon ;;
|
||||||
|
ko)
|
||||||
|
T=-Tkorean ;;
|
||||||
|
*)
|
||||||
|
T=-Tascii8 ;;
|
||||||
|
esac ;;
|
||||||
|
esac ;;
|
||||||
|
esac
|
||||||
|
|
||||||
for i
|
for i
|
||||||
do
|
do
|
||||||
@ -13,7 +58,7 @@ do
|
|||||||
opts="$opts -P-c" ;;
|
opts="$opts -P-c" ;;
|
||||||
-h)
|
-h)
|
||||||
opts="$opts -P-h" ;;
|
opts="$opts -P-h" ;;
|
||||||
-[eq] | -s* | -u* | -T* )
|
-[eq] | -s*)
|
||||||
# ignore these options
|
# ignore these options
|
||||||
;;
|
;;
|
||||||
-[mrnoT])
|
-[mrnoT])
|
||||||
@ -21,6 +66,12 @@ do
|
|||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
-[iptSUC] | -[mrno]*)
|
-[iptSUC] | -[mrno]*)
|
||||||
opts="$opts $1" ;;
|
opts="$opts $1" ;;
|
||||||
|
-Tascii | -Tlatin1 | -Tutf8 | -Tcp1047 | -Tascii8 | -Tnippon | -Tkorean)
|
||||||
|
othercoding=1
|
||||||
|
T=$1 ;;
|
||||||
|
-T*)
|
||||||
|
# ignore other devices
|
||||||
|
;;
|
||||||
-v | --version)
|
-v | --version)
|
||||||
echo $"GNU nroff (groff) with Red Hat i18n/l10n support"
|
echo $"GNU nroff (groff) with Red Hat i18n/l10n support"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
@ -69,6 +120,9 @@ 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