Hi, Here a little fix for openfst.
Regards.
Index: patches/patch-src_script_text-io_cc =================================================================== RCS file: patches/patch-src_script_text-io_cc diff -N patches/patch-src_script_text-io_cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_script_text-io_cc 11 Apr 2018 15:19:54 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: src/script/text-io.cc +--- src/script/text-io.cc.orig ++++ src/script/text-io.cc +@@ -84,7 +84,7 @@ bool WritePotentials(const string& filename, + if (!*strm) + LOG(ERROR) << "WritePotentials: Write failed: " + << (filename.empty() ? "standard output" : filename); +- bool ret = *strm; ++ bool ret = !(!*strm); + if (strm != &std::cout) + delete strm; + return ret;
