Skip to content

Commit 0378857

Browse files
committed
TEST
1 parent 9576055 commit 0378857

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

include/boost/locale/generic_codecvt.hpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include <boost/locale/utf.hpp>
1212
#include <cstdint>
1313
#include <locale>
14+
#ifdef BOOST_WINDOWS
15+
#include <iostream>
16+
#endif
1417

1518
namespace 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;

0 commit comments

Comments
 (0)