Kaynağa Gözat

fix major breakage in iconv, bogus rejecting of dest charsets

Rich Felker 13 yıl önce
ebeveyn
işleme
80d7859f32
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/locale/iconv.c

+ 1 - 1
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;
 	}