-/*
- * See if input has any 8-bit bytes.
- */
-static int
-scan_input (int fd, int *eightbit) {
- int state;
- char buf[BUFSIZ];
-
- lseek (fd, (off_t) 0, SEEK_SET);
-
- while ((state = read (fd, buf, sizeof buf)) > 0) {
- if (contains8bit (buf, buf + state)) {
- *eightbit = 1;
- return OK;
- }
- }
-
- return state == NOTOK ? NOTOK : OK;
-}
-
-