diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-01-16 21:38:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-01-16 21:38:33 +0200 |
commit | 9867e9cc604823c73027275efdca9c64cd2b11c0 (patch) | |
tree | 77211d8dfc0b3f2eb0494ddc329dffe3425f3c77 | |
parent | bf2031d59be508cb045b1317eb524dcf9f2ef402 (diff) | |
download | egawk-9867e9cc604823c73027275efdca9c64cd2b11c0.tar.gz egawk-9867e9cc604823c73027275efdca9c64cd2b11c0.tar.bz2 egawk-9867e9cc604823c73027275efdca9c64cd2b11c0.zip |
Sync dfa.c with grep on bugfix for DJGPP.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dfa.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2012-01-13 Arnold D. Robbins <arnold@skeeve.com> + + * dfa.c [is_valid_unibtye_character]: Fix from GNU grep to + bug reported by me from Scott Deifik for DJGPP. + 2012-01-03 Arnold D. Robbins <arnold@skeeve.com> * dfa.c: Sync with GNU grep. @@ -1083,7 +1083,7 @@ parse_bracket_exp (void) #ifdef __GLIBC__ # define is_valid_unibyte_character(c) 1 #else -# define is_valid_unibyte_character(c) (MBS_SUPPORT && btowc (c) != WEOF) +# define is_valid_unibyte_character(c) (! (MBS_SUPPORT && btowc (c) == WEOF)) #endif /* Return non-zero if C is a `word-constituent' byte; zero otherwise. */ |