change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its meaning
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/winio.c b/src/winio.c
index aff5fe0..2eca8c2 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2287,7 +2287,7 @@
}
}
#ifdef NANO_WIDE
- else if (!ISSET(NO_UTF8) && mbwidth(buf_mb) > 1) {
+ else if (ISSET(USE_UTF8) && mbwidth(buf_mb) > 1) {
converted[index++] = ' ';
start_col++;
@@ -2353,7 +2353,7 @@
/* If buf contains an invalid multibyte non-control
* character, interpret that character as though it's a
* normal non-control character. */
- if (!ISSET(NO_UTF8) && bad_char) {
+ if (ISSET(USE_UTF8) && bad_char) {
char *bad_buf_mb;
int bad_buf_mb_len;