[gcc r13-10436] testsuite: Change -encoding binary to -translation binary

Jakub Jelinek via Gcc-cvs <[email protected]> Sat, 1 Aug 2026 10:57:38 +0000 (GMT)
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:a18b2b1ab09a4c450c037d29ac6161b44e1688b8

commit r13-10436-ga18b2b1ab09a4c450c037d29ac6161b44e1688b8
Author: Jakub Jelinek <[email protected]>
Date:   Wed Apr 15 21:29:35 2026 +0200

    testsuite: Change -encoding binary to -translation binary
    
    tcl 9 errors on -encoding binary and suggests using -translation binary
    instead, which has been supported even in older tcl versions.
    
    2026-04-15  Jakub Jelinek  <[email protected]>
    
            * go.test/go-test.exp (errchk): Use -translation binary instead of
            -encoding binary for TCL 9 compatibility.
    
    Reviewed-by: Andrew Pinski <[email protected]>
    (cherry picked from commit 1ba243d5498b5bc712e653bdcfe802ca69f25015)

Diff:
---
 gcc/testsuite/go.test/go-test.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index 0080dae22fe4..6777de62241f 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -82,9 +82,9 @@ proc errchk { test opts } {
 	set filename "errchk-$filename"
     }
     set fdin [open $test r]
-    fconfigure $fdin -encoding binary
+    fconfigure $fdin -translation binary
     set fdout [open $filename w]
-    fconfigure $fdout -encoding binary
+    fconfigure $fdout -translation binary
     while { [gets $fdin copy_line] >= 0 } {
 	if [string match "*////*" $copy_line] {
 	    puts $fdout $copy_line