Skip to content

Commit f35b60f

Browse files
author
Rik Wehbring
committed
Add single quotes around string not being converted correctly by iconv for clarity in error reporting
1 parent c13cdb9 commit f35b60f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

otherconv.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: otherconv.c,v 1.41 2009/07/31 21:22:17 rikster5 Exp $ */
1+
/* $Id: otherconv.c,v 1.42 2009/08/01 16:47:56 rikster5 Exp $ */
22

33
/*******************************************************************************
44
* otherconv.c
@@ -291,17 +291,17 @@ void UTF_to_other(char *const buf, int buf_len)
291291
if ((size_t)(-1) == rc) {
292292
switch (errno) {
293293
case EILSEQ:
294-
errstr = "iconv: unconvertible sequence at place %d in %s\n";
294+
errstr = "iconv: unconvertible sequence at place %d in \'%s\'\n";
295295
failed = TRUE;
296296
break;
297297
case EINVAL:
298-
errstr = "iconv: incomplete UTF-8 sequence at place %d in %s\n";
298+
errstr = "iconv: incomplete UTF-8 sequence at place %d in \'%s\'\n";
299299
break;
300300
case E2BIG:
301-
errstr = "iconv: buffer filled. stopped at place %d in %s\n";
301+
errstr = "iconv: buffer filled. stopped at place %d in \'%s\'\n";
302302
break;
303303
default:
304-
errstr = "iconv: unexpected error at place %d in %s\n";
304+
errstr = "iconv: unexpected error at place %d in \'%s\'\n";
305305
}
306306
}
307307

0 commit comments

Comments
 (0)