From 4f7926f062956728e0af5e6c29c6a90f3dbf747a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 30 Aug 2015 03:50:02 +0200 Subject: m fix slibc-error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/slibc-error.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slibc-error.c b/src/slibc-error.c index 0094235..fe2f94b 100644 --- a/src/slibc-error.c +++ b/src/slibc-error.c @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#include #include #include #include @@ -56,12 +57,12 @@ void slibc_perror(const char* progname, const char* filename, int linenum, const if (error_string == NULL) error_string = strerror(*error_code); fflush(stdout); - fprintf(stderr, "%(\033[0;1;31m%)%s%(\033[21m%): %s%(\033[0m%)\n", + fprintf(stderr, _("%(\033[0;1;31m%)%s%(\033[21m%): %s%(\033[0m%)\n"), tty, progname, tty, error_string, tty); } - fprintf(stderr, " at \033[1;34m%s\033[0m (\033[35m%s\033[0m:\033[32m%i\033[0m)", - function, filename, linenum); + fprintf(stderr, _(" at %(\033[1;34m%)%s%(\033[0m%) (%(\033[35m%)%s%(\033[0m%):%(\033[32m%)%i%(\033[0m%))"), + tty, function, tty, tty, filename, tty, tty, linenum, tty); if (format != NULL) { fprintf(stderr, "\n "); -- cgit v1.2.3-70-g09d2