/programs/cmm/TWB/TWB.c |
---|
341,7 → 341,7 |
// Autodetecting encoding if no encoding was set |
if (tag.opened) && (custom_encoding==-1) && (cur_encoding == CH_CP866) { |
if (strstr(bufpointer, "\208\190")) ChangeEncoding(CH_UTF8); |
else if (chrnum(bufpointer, '\x246')>5) ChangeEncoding(CH_CP1251); |
else if (chrnum(bufpointer, '\246')>5) ChangeEncoding(CH_CP1251); |
} |
return; |
} |
/programs/cmm/browser/WebView.c |
---|
701,6 → 701,7 |
DrawActiveTab(); |
if (source_mode) { |
source_mode = false; |
WB1.custom_encoding = CH_CP866; |
ShowSource(WB1.bufpointer, _in_bufsize); |
} else { |
WB1.DrawPage(); |
708,7 → 709,7 |
} |
} |
byte UrlExtIs(dword base, ext) |
bool UrlExtIs(dword base, ext) |
{ |
if (!strcmpi(base + strlen(base) - strlen(ext), ext)) return true; |
return false; |
/programs/cmm/browser/tabs.h |
---|
142,7 → 142,7 |
void EventTabClose(int _id) |
{ |
DeleteButton(tab.count); |
DeleteButton(TAB_ID + tab.count-1); |
if (_id == tab.active) { |
tab.close(_id); |
tab.restore(tab.active); |
/programs/cmm/browser/texts.h |
---|
1,4 → 1,4 |
char version[]="WebView 2.46d"; |
char version[]="WebView 2.46f"; |
#ifdef LANG_RUS |
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0"; |