From ed43d47a7068ee1423a8e18ca109d8a4e49c2540 Mon Sep 17 00:00:00 2001 From: Kaz Kyheku Date: Wed, 12 Feb 2020 20:21:18 -0800 Subject: open-file: fix diagnostic referring to "o" mode. * stream.c (w_fopen_mode): Fix diagnostic to refer to "m" mode instead of "o" mode, adjusting the wording at the same time. This is only compiled on platforms without HAVE_FCNTL; basically nothing that TXR is commonly built for. --- stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream.c') diff --git a/stream.c b/stream.c index c0362f3f..0c6af9ec 100644 --- a/stream.c +++ b/stream.c @@ -1060,7 +1060,7 @@ static FILE *w_fopen_mode(const wchar_t *wname, const wchar_t *mode, #else if (m.notrunc) uw_throwf(file_error_s, - lit("open-file: system doesn't support \"o\" mode"), nao); + lit("open-file: \"m\" mode not supported on this system"), nao); #endif return w_fopen(wname, mode); } -- cgit v1.2.3