2013-04-03 13:53 UTC+0200 Viktor Szakats (harbour syenar.net)
* bin/check.hb
! fixed BOM detection and fixup
* contrib/gtwvg/pushbut.prg
% use HB_ISSTRING() instead of ValType() call
* ChangeLog.txt
! deleted BOM for the 4th time after:
2013-04-03 00:42 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
This commit is contained in:
@@ -173,10 +173,10 @@ STATIC FUNCTION CheckFile( cName, /* @ */ aErr, lApplyFixes )
|
||||
AAdd( aErr, "content: has tab" )
|
||||
ENDIF
|
||||
|
||||
IF hb_BLeft( cFile, Len( UTF8_BOM() ) ) == UTF8_BOM()
|
||||
IF hb_BLeft( cFile, hb_BLen( UTF8_BOM() ) ) == UTF8_BOM()
|
||||
AAdd( aErr, "content: has BOM" )
|
||||
IF lApplyFixes
|
||||
cFile := hb_BSubStr( cFile, Len( UTF8_BOM() ) + 1 )
|
||||
cFile := hb_BSubStr( cFile, hb_BLen( UTF8_BOM() ) + 1 )
|
||||
ENDIF
|
||||
ENDIF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user