"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "filename.c" between
less-580.tar.gz and less-581.tar.gz

About: less is a file pager (a program that displays text files similar to "more" or "pg"). Beta version.

filename.c  (less-580):filename.c  (less-581)
skipping to change at line 489 skipping to change at line 489
{ {
if (utf_mode && !is_utf8_well_formed(p, edata-data)) if (utf_mode && !is_utf8_well_formed(p, edata-data))
{ {
bin_count++; bin_count++;
utf_skip_to_lead(&p, edata); utf_skip_to_lead(&p, edata);
} else } else
{ {
LWCHAR c = step_char(&p, +1, edata); LWCHAR c = step_char(&p, +1, edata);
struct ansi_state *pansi; struct ansi_state *pansi;
if (ctldisp == OPT_ONPLUS && (pansi = ansi_start(c)) != N ULL) if (ctldisp == OPT_ONPLUS && (pansi = ansi_start(c)) != N ULL)
{
skip_ansi(pansi, &p, edata); skip_ansi(pansi, &p, edata);
else if (binary_char(c)) ansi_done(pansi);
} else if (binary_char(c))
bin_count++; bin_count++;
} }
} }
/* /*
* Call it a binary file if there are more than 5 binary characters * Call it a binary file if there are more than 5 binary characters
* in the first 256 bytes of the file. * in the first 256 bytes of the file.
*/ */
return (bin_count > 5); return (bin_count > 5);
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)