* sed/compile.c: Include minmax.h. Do not include ctype.h.
(convert_number): Examine starting at BUF, not at BUF + 1; caller
changed. Use a clearer way to stop the loop, which involves
addition not multiplication. Always store the resulting integer,
not a byte taken possibly from after end of input.
(normalize_text): Do not go past end of input. Treat incomplete
\c, \d, \o, and \x escapes like other unrecognized escapes.
Use c_toupper, not toupper, to avoid glitches in Turkish locales.
* testsuite/normalize-text.sh:
Test the fixed behavior, removing a TODO.
* testsuite/recursive-escape-c.sh: Adjust to new behavior.