File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1111#include < boost/locale/utf.hpp>
1212#include < cstdint>
1313#include < locale>
14+ #ifdef BOOST_WINDOWS
15+ #include < iostream>
16+ #endif
1417
1518namespace boost { namespace locale {
1619
@@ -220,9 +223,19 @@ namespace boost { namespace locale {
220223 auto cvt_state = implementation ().initial_state (to_unicode_state);
221224 while (to < to_end && from < from_end) {
222225 const char * from_saved = from;
223-
226+ #ifdef BOOST_WINDOWS
227+ std::cout << " Entering IN--------------" << std::endl;
228+ std::cout << " State " << state << std::endl;
229+ std::cout << " Left in " << std::dec << from_end - from << " out " << to_end - to << std::endl;
230+ for (const char * c = from; c != from_end; ++c)
231+ std::cout << std::hex << (int )(unsigned char )*c << " " ;
232+ #endif
224233 utf::code_point ch = implementation ().to_unicode (cvt_state, from, from_end);
225234
235+ #ifdef BOOST_WINDOWS
236+ std::cout << " Got char " << std::hex << ch << std::dec << std::endl;
237+ #endif
238+
226239 if (ch == boost::locale::utf::illegal) {
227240 from = from_saved;
228241 r = std::codecvt_base::error;
You can’t perform that action at this time.
0 commit comments