using std::endl;
-namespace {
-
#ifdef WORDS_BIGENDIAN
char const * ucs4_codeset = "UCS-4BE";
char const * ucs2_codeset = "UCS-2BE";
char const * ucs2_codeset = "UCS-2LE";
#endif
+namespace {
+
template<typename RetType, typename InType>
std::vector<RetType>
iconv_convert(iconv_t * cd,