]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Change -encoding binary to -translation binary
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Apr 2026 19:29:35 +0000 (21:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Apr 2026 19:29:35 +0000 (21:29 +0200)
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  <jakub@redhat.com>

* go.test/go-test.exp (errchk): Use -translation binary instead of
-encoding binary for TCL 9 compatibility.

Reviewed-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/go.test/go-test.exp

index 2f3a9da912dadeaf90f51ff85563f2b4edfc020e..2a08eb75a885109e562ed9861b900a6f25968325 100644 (file)
@@ -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