178_uppsrc.diff

Sender Ghost, 11/29/2011 11:34 AM

Download (449 Bytes)

View differences:

uppsrc/CtrlLib/Text.cpp 2011-11-29 16:15:04 +0600
95 95
	SetCharset(charset);
96 96
	if(charset == CHARSET_UTF8_BOM && s.GetLeft() >= 3) {
97 97
		int64 pos = s.GetPos();
98
		char h[3];
98
		byte h[3];
99 99
		if(!(s.Get(h, 3) == 3 && h[0] == 0xEF && h[1] == 0xBB && h[2] == 0xBF))
100 100
			s.Seek(pos);
101 101
		charset = CHARSET_UTF8;