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:
Viktor Szakats
2013-04-03 13:54:21 +02:00
parent a0e2631672
commit db9b948154
3 changed files with 20 additions and 5 deletions

View File

@@ -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