Peter Kümmel wrote:
Abdelrazak Younes wrote:
Georg Baum wrote:
Peter and Abdel, can you please test whether the attached test program
works (or could be made to work) on windows with lyx::char_type ==
boost::uint32_t?
If yes, then I'd like to put the attached patch in and proceed with
solution 2) above.
With two modifications (include inconv.h and add a const in the
const_cast) it compiles on MSVC2005 and gives this:
test:
Error 0 returned from iconv: No error
error result. inbytesleft: 2 outbytesleft: 8
abcd
Σ÷ⁿ
20 e4 f6 fc
─╓▄
20 c4 d6 dc
abcd
You have forgotten to switch to the boost type:
Ah... with this change I have then the same output as yours:
test:
abcd
228246252
20 e4 f6 fc
196214220
20 c4 d6 dc
abcd
Abdel.
// Choose the character type.
namespace lyx {
typedef boost::uint32_t char_type;
// typedef wchar_t char_type;
}