# HG changeset patch # User dbateman # Date 1116317943 0 # Node ID ac4a7df431d4e929c66021026d05c899665533b7 # Parent 05adf9de76572dd68eb75c4ce5b30898eee1e2bc [project @ 2005-05-17 08:19:03 by dbateman] diff -r 05adf9de7657 -r ac4a7df431d4 src/ls-mat5.cc --- a/src/ls-mat5.cc Mon May 16 20:07:36 2005 +0000 +++ b/src/ls-mat5.cc Tue May 17 08:19:03 2005 +0000 @@ -921,11 +921,9 @@ bool utf8_multi_byte = false; for (int i = 0; i < n; i++) { - unsigned char a = static_cast (re(i)); + unsigned char a = static_cast (re(i)); if (a > 0x7f) utf8_multi_byte = true; - else - i++; } if (utf8_multi_byte) @@ -934,9 +932,9 @@ warning (" Replacing unreadable characters with '?'."); for (int i = 0; i < n; i++) { - unsigned char a = static_cast (re(i)); + unsigned char a = static_cast (re(i)); if (a > 0x7f) - re(i) = 0x3F; + re(i) = '?'; } } }