Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The GNU libiconv has this thing that rename
iconv_open
tolibiconv_open
whenLIBICONV_PLUG
not defined.The flag
LIBICONV_PLUG
effectively turns GNU libiconv's header to the base system's iconv header. This might be abuse, but SDL also does this.https://github.com/libsdl-org/SDL/blob/d6ebbc2fa4abdbe0bd53d0ce8804a492ecb042b9/src/stdlib/SDL_iconv.c#L27-L28
Combined with #1380 should close #1369
Is FreeBSD's libc iconv good enough?
Based on the early design doc of FreeBSD's Iconv, it supports a similar dynamic loading mechanism to GNU libconv so encoding supports should not be a problem.
http://citrus.bsdclub.org/