| 1671 | } |
| 1672 | |
| 1673 | iconv_t openIconv(const char* tocode, const char* fromcode) |
| 1674 | { |
| 1675 | iconv_t ret = iconv_open(tocode, fromcode); |
| 1676 | if (ret == (iconv_t) -1) |
| 1677 | (Arg::Gds(isc_iconv_open) << fromcode << tocode << Arg::Unix(errno)).raise(); |
| 1678 | |
| 1679 | return ret; |
| 1680 | } |
| 1681 | |
| 1682 | void closeIconv(iconv_t id) |
| 1683 | { |