]> granicus.if.org Git - musl/commit
add iconv framework for decoding stateful encodings
authorRich Felker <dalias@aerifal.cx>
Fri, 10 Nov 2017 20:06:42 +0000 (15:06 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 10 Nov 2017 20:06:42 +0000 (15:06 -0500)
commit5b546faa67544af395d6407553762b37e9711157
tree2dea3ba8d23b5cc6c088a364945985f7b046fa75
parent0df5b39a1e9c8aaf480e3f8667d7967e08bbef2b
add iconv framework for decoding stateful encodings

assuming pointers obtained from malloc have some nonzero alignment,
repurpose the low bit of iconv_t as an indicator that the descriptor
is a stateless value representing the source and destination character
encodings.
src/locale/iconv.c
src/locale/iconv_close.c