From a49c50b4fda65eb4576cf2a03315f4a62b320501 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 19 Aug 2011 17:24:28 +1000 Subject: [PATCH] Allow mkchstr_conv error strings to be localised --- src/intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intf.c b/src/intf.c index 27bef6b..03a66ad 100644 --- a/src/intf.c +++ b/src/intf.c @@ -1091,13 +1091,13 @@ void mkchstr_conv (chtype *restrict chbuf, int chbufsize, (ASCII) one. This is better than terminating! */ *wp = EILSEQ_REPL; } else { - errno_exit("mkchstr_conv: `%ls'", wcbuf); + errno_exit(_("mkchstr_conv: `%ls'"), wcbuf); } } else if (wp != NULL) { // convbuf is too small: truncate wcbuf if possible if (wp == wcbuf) { errno = E2BIG; - errno_exit("mkchstr_conv: `%ls'", wcbuf); + errno_exit(_("mkchstr_conv: `%ls'"), wcbuf); } else { *(wp - 1) = '\0'; } @@ -1113,7 +1113,7 @@ void mkchstr_conv (chtype *restrict chbuf, int chbufsize, while (! done) { // Yes, we want to convert a wide NUL, too! if ((n = wcrtomb(convbuf, *wcbuf, &mbstate)) == (size_t) -1) { - errno_exit("mkchstr_conv: `%ls'", wcbuf); + errno_exit(_("mkchstr_conv: `%ls'"), wcbuf); } for (p = convbuf; n > 0; n--, p++, chbuf++) {