gbranden pushed a commit to branch master
in repository groff.

commit b296c8742d30a3d0e181d90218ba9eb44fdc42e0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Aug 19 17:48:03 2024 -0500

    [nroff]: Drop support for "cp1047" output device.
    
    * src/roff/nroff/nroff.sh: Drop support for "cp1047" output device.
    
    Continues fixing <https://savannah.gnu.org/bugs/?65724>.
---
 ChangeLog               |  7 +++++++
 src/roff/nroff/nroff.sh | 10 ++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e219c78e4..d8e79ce79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-19  G. Branden Robinson <[email protected]>
+
+       * src/roff/nroff/nroff.sh: Drop support for "cp1047" output
+       device.
+
+       Continues fixing <https://savannah.gnu.org/bugs/?65724>.
+
 2024-08-19  G. Branden Robinson <[email protected]>
 
        * tmac/an.tmac: Drop support for "cp1047" output device.
diff --git a/src/roff/nroff/nroff.sh b/src/roff/nroff/nroff.sh
index 75cf6af5b..be6931d39 100644
--- a/src/roff/nroff/nroff.sh
+++ b/src/roff/nroff/nroff.sh
@@ -148,7 +148,7 @@ fi
 
 # Determine the -T option.  Was a valid one specified?
 case "$Topt" in
-  -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047)
+  -Tascii | -Tlatin1 | -Tutf8)
     T=$Topt ;;
 esac
 
@@ -157,7 +157,7 @@ if [ -z "$T" ]
 then
   Tenv=-T$GROFF_TYPESETTER
   case "$Tenv" in
-    -Tascii | -Tlatin1 | -Tutf8 | -Tcp1047)
+    -Tascii | -Tlatin1 | -Tutf8)
       T=$Tenv ;;
   esac
 fi
@@ -173,8 +173,6 @@ then
       Tloc=utf8 ;;
     ISO-8859-1 | ISO-8859-15)
       Tloc=latin1 ;;
-    IBM-1047)
-      Tloc=cp1047 ;;
     *)
       # Some old shells don't support ${FOO:-bar} expansion syntax.  We
       # should switch to it when it is safe to abandon support for them.
@@ -184,16 +182,12 @@ then
         iso_8859_1 | *.ISO-8859-1 | *.ISO8859-1 | \
         iso_8859_15 | *.ISO-8859-15 | *.ISO8859-15)
           Tloc=latin1 ;;
-        *.IBM-1047)
-          Tloc=cp1047 ;;
         *)
           case "$LESSCHARSET" in
             utf-8)
               Tloc=utf8 ;;
             latin1)
               Tloc=latin1 ;;
-            cp1047)
-              Tloc=cp1047 ;;
             *)
               Tloc=ascii ;;
           esac ;;

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to