in iconv_open, accept "CHAR" and "" as aliases for "UTF-8"
authorRich Felker <dalias@aerifal.cx>
Thu, 21 May 2015 21:01:23 +0000 (17:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 21 May 2015 21:01:23 +0000 (17:01 -0400)
commit39b8ce66f2ed9c17427ec3a48be9bda29b93b9d7
tree97dbd9cf6cea6ea9b3cd0670a0e9bafd4b035267
parentc648cefb27984db60474ec1747cbfde83c2856d0
in iconv_open, accept "CHAR" and "" as aliases for "UTF-8"

while not a requirement, it's common convention in other iconv
implementations to accept "CHAR" as an alias for nl_langinfo(CODESET),
meaning the encoding used for char[] strings in the current locale,
and also "" as an alternate form. supporting this is not costly and
improves compatibility.
src/locale/iconv.c