Skip to content

Commit

Permalink
Quick hack to display multi-byte characters (like Japanese)
Browse files Browse the repository at this point in the history
  • Loading branch information
i4fumi committed Sep 23, 2012
1 parent 8c38b44 commit 8f0e61b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cgdb/scroller.c
Expand Up @@ -93,10 +93,8 @@ static char *parse(struct scroller *scr, const char *orig, const char *buf)
break;
/* Default case -> Only keep printable characters */
default:
if (isprint((int) buf[j])) {
rv[i] = buf[j];
i++;
}
rv[i] = buf[j];
i++;
break;
}
}
Expand Down
2 changes: 2 additions & 0 deletions configure.init
Expand Up @@ -187,6 +187,8 @@ if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then
LIBS="-l$curses_lib_name $LIBS"
fi

AC_CHECK_LIB(ncursesw, initscr, [LIBS="-lncursesw $LIBS"])

AC_OUTPUT(
Makefile \
lib/Makefile \
Expand Down

0 comments on commit 8f0e61b

Please sign in to comment.