diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-09-30 00:26:03 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-09-30 00:26:03 +0000 |
commit | 5d3b5cd1c2fd1026b1df0e976c598fddb6c27d7b (patch) | |
tree | dca235433e28078d1a5dd9125a81a19c79b12f40 /regex/debug.c | |
parent | 6ac36d1a00dcac81642cc0ffc8cefec88ff42c1b (diff) | |
download | php-git-5d3b5cd1c2fd1026b1df0e976c598fddb6c27d7b.tar.gz |
Fixed bug #25669 (eregi() with non-ascii characters)
Diffstat (limited to 'regex/debug.c')
-rw-r--r-- | regex/debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regex/debug.c b/regex/debug.c index c0feaeb169..3db93ef293 100644 --- a/regex/debug.c +++ b/regex/debug.c @@ -124,9 +124,9 @@ FILE *d; break; case OCHAR: if (strchr("\\|()^$.[+*?{}!<> ", (char)opnd) != NULL) - fprintf(d, "\\%c", (char)opnd); + fprintf(d, "\\%c", (unsigned char)opnd); else - fprintf(d, "%s", regchar((char)opnd)); + fprintf(d, "%s", regchar((unsigned char)opnd)); break; case OBOL: fprintf(d, "^"); @@ -228,11 +228,11 @@ FILE *d; - regchar - make a character printable == static char *regchar(int ch); */ -static char * /* -> representation */ +static unsigned char * /* -> representation */ regchar(ch) int ch; { - static char buf[10]; + static unsigned char buf[10]; if (isprint(ch) || ch == ' ') sprintf(buf, "%c", ch); |