diff -u /usr/src/usr.bin/indent/Makefile usr.bin/indent/Makefile --- /usr/src/usr.bin/indent/Makefile 2010-01-20 23:59:33.000000000 +0100 +++ usr.bin/indent/Makefile 2010-01-21 19:01:13.000000000 +0100 @@ -3,4 +3,6 @@ PROG= indent SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c +WARNS?= 6 + .include diff -u /usr/src/usr.bin/indent/lexi.c usr.bin/indent/lexi.c --- /usr/src/usr.bin/indent/lexi.c 2010-01-20 23:59:33.000000000 +0100 +++ usr.bin/indent/lexi.c 2010-01-21 18:52:49.000000000 +0100 @@ -221,6 +221,13 @@ } else break; } + if (*buf_ptr == 'L' && (*(buf_ptr + 1) == '\'' || *(buf_ptr + 1) == '"' ) && (s_token == e_token)) { + /* widecharacter literal */ + *e_token++ = *buf_ptr++; /* copy L */ + *e_token++ = *buf_ptr; /* copy ' or " */ + qchar = *buf_ptr++; /* set string delimeter */ + goto found_string; + } CHECK_SIZE_TOKEN; /* copy it over */ *e_token++ = *buf_ptr++; @@ -361,6 +368,7 @@ case '\'': /* start of quoted character */ case '"': /* start of string */ qchar = *token; +found_string: if (troff) { e_token[-1] = '`'; if (qchar == '"')