Avoid calling iconv_open on each conversion.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Mar 2009 01:29:41 +0000 (09:29 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 29 Mar 2009 01:29:41 +0000 (09:29 +0800)
commite23e02f4ab1b3c3160dc084e241a647636e7a6b9
treea0e6516bf91c8df126bc4de2b918ddaf18ea6e84
parentf4768c8822dcce37de6286b2b5acccb69c61de97
Avoid calling iconv_open on each conversion.

Instead of creating a convertor each time a string
needs to be re-encoded, we now keep a hash of convertors
keyed by the permutation of input/output encodings.
src/libpspp/i18n.c