Skip to content

Commit

Permalink
Comment.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87219 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Oct 10, 2024
1 parent db840e6 commit 01c1bc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/sysutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,8 @@ attribute_hidden SEXP do_iconv(SEXP call, SEXP op, SEXP args, SEXP env)
} else if(res == -1 && sub &&
(errno == EILSEQ || errno == EINVAL)) {
/* it seems this gets thrown for non-convertible input too */
/* EINVAL returned for invalid input on macOS with system
libiconv */
res = Riconv(obj, NULL, NULL, &outbuf, &outb);
if (res == -1 && errno == E2BIG) {
R_AllocStringBuffer(2*cbuff.bufsize, &cbuff);
Expand Down

0 comments on commit 01c1bc3

Please sign in to comment.