changeset 31929:969e5173f772 stable

file-io.cc: Fix failing BIST (bug #63930) file-io.cc: A BIST to check text file encoding was using the binary file open mode "w+" with an explicit text encoding, causing a BIST failure after changeset fcd97a68e5f7. This edit changes the file mode to "wt+", where text encodings make more sense.
author Arun Giridhar <arungiridhar@gmail.com>
date Fri, 24 Mar 2023 17:51:14 -0400
parents fcd97a68e5f7
children 69c15474d829 2e135e3cb1aa
files libinterp/corefcn/file-io.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc	Fri Mar 24 16:03:06 2023 -0400
+++ b/libinterp/corefcn/file-io.cc	Fri Mar 24 17:51:14 2023 -0400
@@ -2306,7 +2306,7 @@
 ## file stream with encoding
 %!test
 %! f = tempname ();
-%! fid = fopen (f, "w+", "n", "iso-8859-1");
+%! fid = fopen (f, "wt+", "n", "iso-8859-1");
 %! unwind_protect
 %!   fprintf (fid, "abc,äöü\n");
 %!   fflush (fid);