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,
<< " to " << tocode << ".\n";
lyxerr << "Input: " << std::hex;
for (size_t i = 0; i < buflen; ++i) {
- unsigned char const b = buf[i];
- lyxerr << "0x" << int(b) << " ";
+ boost::uint32_t const b = buf[i];
+ lyxerr << "0x" << b << " ";
}
lyxerr << endl;
break;
<< " to " << tocode << ".\n";
lyxerr << "Input: " << std::hex;
for (size_t i = 0; i < buflen; ++i) {
- unsigned char const b = buf[i];
- lyxerr << "0x" << int(b) << " ";
+ boost::uint32_t const b = buf[i];
+ lyxerr << "0x" << b << " ";
}
lyxerr << endl;
break;