aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-01-16 21:38:33 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-01-16 21:38:33 +0200
commit9867e9cc604823c73027275efdca9c64cd2b11c0 (patch)
tree77211d8dfc0b3f2eb0494ddc329dffe3425f3c77
parentbf2031d59be508cb045b1317eb524dcf9f2ef402 (diff)
downloadegawk-9867e9cc604823c73027275efdca9c64cd2b11c0.tar.gz
egawk-9867e9cc604823c73027275efdca9c64cd2b11c0.tar.bz2
egawk-9867e9cc604823c73027275efdca9c64cd2b11c0.zip
Sync dfa.c with grep on bugfix for DJGPP.
-rw-r--r--ChangeLog5
-rw-r--r--dfa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6482baf5..54f96cc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/dfa.c b/dfa.c
index 172ff794..012251a3 100644
--- a/dfa.c
+++ b/dfa.c
@@ -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. */