836 gettext("[nt]roff, tbl, or eqn input "
837 "text"));
838 goto outa;
839 }
840 }
841 }
842 (void) printf(gettext("assembler program text"));
843 goto outa;
844 notas:
845 /* start modification for multibyte env */
846 IS_ascii = 1;
847 if (fbsz < FBSZ)
848 Max = fbsz;
849 else
850 Max = FBSZ - MB_LEN_MAX; /* prevent cut of wchar read */
851 /* end modification for multibyte env */
852
853 for (i = 0; i < Max; /* null */)
854 if (fbuf[i] & 0200) {
855 IS_ascii = 0;
856 if (fbuf[0] == '\100' && fbuf[1] == '\357') {
857 (void) printf(gettext("troff output\n"));
858 return;
859 }
860 /* start modification for multibyte env */
861 if ((length = mbtowc(&wchar, &fbuf[i], MB_CUR_MAX))
862 <= 0 || !iswprint(wchar)) {
863 (void) printf(gettext("data\n"));
864 return;
865 }
866 i += length;
867 }
868 else
869 i++;
870 i = fbsz;
871 /* end modification for multibyte env */
872 if (mbuf.st_mode&(S_IXUSR|S_IXGRP|S_IXOTH))
873 (void) printf(gettext("commands text"));
874 else if (troffint(fbuf, fbsz))
875 (void) printf(gettext("troff intermediate output text"));
876 else if (english(fbuf, fbsz))
|
836 gettext("[nt]roff, tbl, or eqn input "
837 "text"));
838 goto outa;
839 }
840 }
841 }
842 (void) printf(gettext("assembler program text"));
843 goto outa;
844 notas:
845 /* start modification for multibyte env */
846 IS_ascii = 1;
847 if (fbsz < FBSZ)
848 Max = fbsz;
849 else
850 Max = FBSZ - MB_LEN_MAX; /* prevent cut of wchar read */
851 /* end modification for multibyte env */
852
853 for (i = 0; i < Max; /* null */)
854 if (fbuf[i] & 0200) {
855 IS_ascii = 0;
856 if ((fbuf[0] == '\100') &&
857 ((uchar_t)fbuf[1] == (uchar_t)'\357')) {
858 (void) printf(gettext("troff output\n"));
859 return;
860 }
861 /* start modification for multibyte env */
862 if ((length = mbtowc(&wchar, &fbuf[i], MB_CUR_MAX))
863 <= 0 || !iswprint(wchar)) {
864 (void) printf(gettext("data\n"));
865 return;
866 }
867 i += length;
868 }
869 else
870 i++;
871 i = fbsz;
872 /* end modification for multibyte env */
873 if (mbuf.st_mode&(S_IXUSR|S_IXGRP|S_IXOTH))
874 (void) printf(gettext("commands text"));
875 else if (troffint(fbuf, fbsz))
876 (void) printf(gettext("troff intermediate output text"));
877 else if (english(fbuf, fbsz))
|