diff --git a/lex.c b/lex.c index 45b8e09..8a00379 100644 --- a/lex.c +++ b/lex.c @@ -2,7 +2,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.28 2007/04/15 12:28:38 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.29 2007/04/26 11:58:53 tg Exp $"); /* Structure to keep track of the lexing state and the various pieces of info * needed for each particular state. */ @@ -957,7 +957,9 @@ getsc__(void) (((const unsigned char *)(s->str))[0] == 0xBB) && (((const unsigned char *)(s->str))[1] == 0xBF)) { s->str += 2; +#ifndef MKSH_ASSUME_UTF8 /* otherwise it's always on */ Flag(FUTFHACK) = 1; +#endif goto getsc_again; } }