diff options
author | Kaz Kyheku <kaz@kylheku.com> | 2020-02-12 20:21:18 -0800 |
---|---|---|
committer | Kaz Kyheku <kaz@kylheku.com> | 2020-02-12 20:21:18 -0800 |
commit | ed43d47a7068ee1423a8e18ca109d8a4e49c2540 (patch) | |
tree | fd50ed6030645459ef9be9adc471e758ad75dc44 /stream.c | |
parent | b5fe0fa41c212265d2bd1f3e133c5740157b00f6 (diff) | |
download | txr-ed43d47a7068ee1423a8e18ca109d8a4e49c2540.tar.gz txr-ed43d47a7068ee1423a8e18ca109d8a4e49c2540.tar.bz2 txr-ed43d47a7068ee1423a8e18ca109d8a4e49c2540.zip |
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.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |