From: Rich Felker Date: Sat, 21 Apr 2012 18:46:40 +0000 (-0400) Subject: fix major breakage in iconv, bogus rejecting of dest charsets X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=80d7859f32c11826c24490cac8a8be48f737cee0;hp=77731d0ec16027cb0e3a593d5dd9bb906932303e fix major breakage in iconv, bogus rejecting of dest charsets --- diff --git a/src/locale/iconv.c b/src/locale/iconv.c index a7d4fd9f..30a457f3 100644 --- a/src/locale/iconv.c +++ b/src/locale/iconv.c @@ -94,7 +94,7 @@ iconv_t iconv_open(const char *to, const char *from) if ((t = find_charmap(to))==-1 || (f = find_charmap(from))==-1 - || (t >= 0320)) { + || (charmaps[t] >= 0320)) { errno = EINVAL; return (iconv_t)-1; }