diff --git a/.gitattributes b/.gitattributes index ff07ee43ac..719794299b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -19,7 +19,6 @@ ChangeLog.txt ident *.hbm text *.hbp text *.hbx text -*.htm text *.html text *.in text *.ini text diff --git a/COPYING.txt b/COPYING.txt index 404c71f898..f9e0d2876e 100644 --- a/COPYING.txt +++ b/COPYING.txt @@ -548,8 +548,8 @@ all use GNU GPL 2. Find it below: ------------------------------------------------------------------------ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place - Suite 330, Boston, MA @@ -557,7 +557,7 @@ all use GNU GPL 2. Find it below: Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public @@ -607,7 +607,7 @@ patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. - GNU GENERAL PUBLIC LICENSE + GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains @@ -806,7 +806,7 @@ make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - NO WARRANTY + NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN @@ -828,9 +828,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS - Appendix: How to Apply These Terms to Your New Programs + Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it diff --git a/ChangeLog.txt b/ChangeLog.txt index b5be619c00..3ee01341d6 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,85 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-04-02 17:49 UTC+0200 Viktor Szakats (harbour syenar.net) + + bin/check.hb + + new source verifier. Able to all documented (and more) + required text file and filename properties. + + * bin/commit.hb + + added feature to verify all files to be committed to + conform with certain naming and text file content rules + + added some more feedback + + * config/postinst.hb + + include commit.hb and check.hb in 'install' + + * include/extend.h + * contrib/hbcairo/paths.c + * contrib/hbcairo/png.c + * contrib/hbcairo/util.c + * contrib/hbtpathy/readme.txt + * tests/harbour.ini + * tests/parseins.ini + ! multiple EOL at EOF + + * contrib/hbhpdf/tests/files/cp932.txt + * contrib/hbhpdf/tests/files/cp936.txt + * contrib/hbhpdf/tests/files/elic_jp.txt + ! line ending spaces + ! missing EOL at EOF + + * contrib/hbhttpd/tests/tpl/app/account/edit.tpl + * contrib/hbhttpd/tests/tpl/app/login.tpl + * contrib/hbhttpd/tests/tpl/app/logout.tpl + * contrib/hbhttpd/tests/tpl/app/main.tpl + * contrib/hbhttpd/tests/tpl/app/register.tpl + * lib/3rd/win/bcc/unicows_license.txt + * lib/3rd/win/mingw/libunicows_license.txt + ! missing EOL at EOF + + * COPYING.txt + * src/rtl/gtcrs/hb-charmap.def + * tests/big5_gen.prg + ! tabs + + * extras/gfspell/spell.prg + * src/rtl/gtwin/gtwin.c + ! ASCII 127 + + * src/codepage/cp_tpl.c + ! converted to UTF-8 (just guessing what the original CP was) + + * src/pp/hbpp.c + ! do not generate SVN header in hbverbld.h + + avoid SVN header string in source as is to miss matched + in source verifier + + * src/vm/extrap.c + ! do not generate whitespace at EOL in output + + * tests/lang2po.hb + * tests/po2lang.hb + + minor improvements + ! fixed to generate consistent EOL + + * bin/3rdpatch.hb + * newline at top deleted + + * extras/hbdoc/hbdoc.hbp + * extras/hbdoc/hbdoc.prg + * extras/hbdoc/_tmplates.prg -> extras/hbdoc/_tmplate.prg + * contrib/hbcairo/tests/lightning.prg -> contrib/hbcairo/tests/lightnin.prg + ! long filename + + * .gitattributes + * extras/guestbk/guestbk.prg + * extras/guestbk/guestbk.txt + * extras/guestbk/guestbk.htm -> extras/guestbk/guestbk.html + * deleted .htm file, now all HTML has extension .html + * .exe references in doc made OS neutral + ; Can only be used on non-MS-DOS systems, so it's okay + 2013-04-02 02:57 UTC+0200 Viktor Szakats (harbour syenar.net) * config/lang.hb + include project name in screen output diff --git a/bin/3rdpatch.hb b/bin/3rdpatch.hb index 2187e87a48..70e8956920 100755 --- a/bin/3rdpatch.hb +++ b/bin/3rdpatch.hb @@ -1,5 +1,4 @@ #!/usr/bin/hbmk2 - /* * 3rdpatch - a tool to help update 3rd party components while keeping local fixes * diff --git a/bin/check.hb b/bin/check.hb new file mode 100644 index 0000000000..15928e1b82 --- /dev/null +++ b/bin/check.hb @@ -0,0 +1,382 @@ +#!/usr/bin/hbmk2 +/* + * Harbour Project source code: + * Various validations of filenames and file content, meant to be + * run before committing to repository. + * + * Copyright 2013 Viktor Szakats (harbour syenar.net) + * www - http://harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit + * their web site at http://www.gnu.org/). + * + */ + +#pragma -w3 +#pragma -km+ +#pragma -ko+ + +#include "directry.ch" + +FUNCTION CheckFileList( xName ) + + LOCAL lPassed := .T. + + LOCAL aErr, s + LOCAL file + + IF HB_ISSTRING( xName ) + xName := { xName } + ENDIF + + IF Empty( xName ) .OR. HB_ISARRAY( xName ) + IF Empty( xName ) + xName := hb_DirScan( "", hb_osFileMask() ) + FOR EACH file IN xName + file := file[ F_NAME ] + NEXT + ENDIF + FOR EACH file IN xName + IF ! CheckFile( file, @aErr ) + lPassed := .F. + FOR EACH s IN aErr + OutStd( file + ": " + s + hb_eol() ) + NEXT + ENDIF + NEXT + ENDIF + + RETURN lPassed + +STATIC FUNCTION CheckFile( cName, /* @ */ aErr ) + + LOCAL cFile + LOCAL tmp + LOCAL cEOL + + LOCAL aCanBeUpper := { ; + "Makefile", ; + "README.md", ; + "COPYING.txt", ; + "*/RELNOTES.txt", ; + "*/HARBOUR_README_*.txt", ; + "ChangeLog.txt", ; + "*.po", ; + "*.md" } + + LOCAL aCanBeDot := { ; + ".travis.yml", ; + ".git*" } + + LOCAL aCanBeLong := { ; + "ChangeLog.txt", ; + ".git*", ; + "*.po", ; + "*.md", ; + "*.html", ; + "*/hb-charmap.def", ; /* TOFIX: Use 8.3 name */ + "package/*", ; + "*/3rd/*", ; + "contrib/hbwin/*", ; + "contrib/rddads/unixutils.h", ; + "extras/httpsrv/*" } + + LOCAL aCanHaveTab := { ; + "Makefile", ; + "*.mk", ; + "*.yyc", ; + "*.dif", ; + "*.xml", ; + "*.css" } + + LOCAL aCanHaveSpaceAtEol := { ; + "*.dif", ; + "*.md" } + + LOCAL aCanHaveAnyEncoding := { ; + "*.dif", ; + "contrib/hbmisc/tests/sample.txt", ; /* TOFIX: Not Unicode compatible component */ + "contrib/hbhpdf/tests/files/*.txt" } + + LOCAL aForcedCRLF := { ; + "*.bat" } + + LOCAL aForcedLF := { ; + "*.sh" } + + cName := hb_DirSepToOS( cName ) + cFile := hb_MemoRead( cName ) + + aErr := {} + + /* filename checks */ + + IF ! FNameExc( cName, LoadGitIgnore() ) + + IF ( Len( hb_FNameName( cName ) ) > 8 .OR. Len( hb_FNameExt( cName ) ) > 4 ) .AND. ! FNameExc( cName, aCanBeLong ) + AAdd( aErr, "filename: non-8.3" ) + ENDIF + + IF Left( hb_FNameName( cName ), 1 ) == "." .AND. ! FNameExc( cName, aCanBeDot ) + AAdd( aErr, "filename: non MS-DOS compatible" ) + ENDIF + + IF !( cName == Lower( cName ) ) .AND. ! FNameExc( cName, aCanBeUpper ) + AAdd( aErr, "filename: non-lowercase" ) + ENDIF + + IF ! IsASCII7( cName ) + AAdd( aErr, "filename: non-ASCII-7" ) + ENDIF + + IF IsBinary( cFile ) + IF .F. + IF hb_FNameExt( cFile ) == ".png" + OutStd( cFile + ": " + "content: optimizing" + hb_eol() ) + hb_run( "optipng " + cFile ) + ENDIF + ENDIF + ELSE + + IF hb_FileMatch( cName, "ChangeLog.txt" ) .AND. Len( cFile ) > 32768 + cFile := Left( cFile, 16384 ) + Right( cFile, 16384 ) + ENDIF + + /* text content checks */ + + IF ! FNameExc( cName, aCanHaveTab ) .AND. e"\t" $ cFile + AAdd( aErr, "content: has tab" ) + ENDIF + + IF hb_BLeft( cFile, Len( UTF8_BOM() ) ) == UTF8_BOM() + AAdd( aErr, "content: has BOM" ) + ENDIF + + IF ! FNameExc( cName, aCanHaveSpaceAtEol ) .AND. EndingWhitespace( cFile ) + AAdd( aErr, "content: has ending whitespace" ) + ENDIF + + IF Right( cFile, 1 ) == Chr( 26 ) + AAdd( aErr, "content: has legacy EOF char" ) + ENDIF + + cEOL := EOLDetect( cFile ) + + IF Len( cEOL ) == 0 + AAdd( aErr, "content: has mixed EOL types" ) + ENDIF + + IF FNameExc( cName, aForcedCRLF ) .AND. !( cEOL == Chr( 13 ) + Chr( 10 ) ) + AAdd( aErr, "content: must use CRLF EOL for file type" ) + ENDIF + + IF FNameExc( cName, aForcedLF ) .AND. !( cEOL == Chr( 10 ) ) + AAdd( aErr, "content: must use LF EOL for file type" ) + ENDIF + + IF !( Right( cFile, Len( hb_eol() ) ) == hb_eol() ) .AND. ; + !( Right( cFile, Len( e"\n" ) ) == e"\n" ) + AAdd( aErr, "content: has no EOL at EOF" ) + ENDIF + + IF Right( cFile, 2 * Len( hb_eol() ) ) == Replicate( hb_eol(), 2 ) + AAdd( aErr, "content: has multiple EOL at EOF" ) + ENDIF + + IF ! FNameExc( cName, aCanHaveAnyEncoding ) + tmp := -1 + IF ! IsASCII7( cFile, @tmp ) .AND. ! IsUTF8( cFile ) + AAdd( aErr, "content: is non-UTF-8/ASCII-7: " + hb_ntos( tmp ) ) + ENDIF + ENDIF + + IF "$" + "Id" $ cFile .AND. ! hb_FileMatch( cName, "ChangeLog.txt" ) + AAdd( aErr, "content: has " + "$" + "Id" ) + ENDIF + ENDIF + ENDIF + + RETURN Empty( aErr ) + +STATIC FUNCTION IsBinary( cFile ) + RETURN Chr( 0 ) $ cFile .OR. !( Chr( 10 ) $ cFile ) + +/* +Copyright (c) 1996 Eugene Roshal +Copyright (c) 2000 Far Group +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the authors may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +STATIC FUNCTION IsUTF8( cString ) + + LOCAL lASCII := .T. + LOCAL nOctets := 0 + LOCAL nChar + LOCAL tmp + + FOR EACH tmp IN cString + + nChar := hb_BCode( tmp ) + + IF hb_bitAnd( nChar, 0x80 ) != 0 + lASCII := .F. + ENDIF + + IF nOctets != 0 + + IF hb_bitAnd( nChar, 0xC0 ) != 0x80 + RETURN .F. + ENDIF + + --nOctets + + ELSEIF hb_bitAnd( nChar, 0x80 ) != 0 + + DO WHILE hb_bitAnd( nChar, 0x80 ) != 0 + nChar := hb_bitAnd( hb_bitShift( nChar, 1 ), 0xFF ) + ++nOctets + ENDDO + + --nOctets + + IF nOctets == 0 + RETURN .F. + ENDIF + ENDIF + NEXT + + RETURN !( nOctets > 0 .OR. lASCII ) + +STATIC FUNCTION IsASCII7( cString, /* @ */ nChar ) + + LOCAL tmp + + FOR EACH tmp IN cString + nChar := hb_BCode( tmp ) + IF ( nChar < 32 .OR. nChar > 126 ) .AND. ; + nChar != 10 .AND. nChar != 13 .AND. nChar != 9 .AND. nChar != 12 + RETURN .F. + ENDIF + NEXT + + RETURN .T. + +STATIC FUNCTION EOLDetect( cFile ) + + LOCAL nCR := 0 + LOCAL nLF := 0 + LOCAL tmp + + FOR EACH tmp IN cFile + IF tmp == Chr( 13 ) + ++nCR + ELSEIF tmp == Chr( 10 ) + ++nLF + ENDIF + NEXT + + IF nCR > 0 .AND. nLF == 0 + RETURN Chr( 13 ) + ELSEIF nCR == 0 .AND. nLF > 0 + RETURN Chr( 10 ) + ELSEIF nCR == nLF + RETURN Chr( 13 ) + Chr( 10 ) + ENDIF + + RETURN "" + +STATIC FUNCTION EndingWhitespace( cFile ) + + LOCAL cLine + + FOR EACH cLine IN hb_ATokens( StrTran( cFile, Chr( 13 ) ), Chr( 10 ) ) + IF Right( cLine, 1 ) == " " + RETURN .T. + ENDIF + NEXT + + RETURN .F. + +STATIC FUNCTION FNameExc( cName, aList ) + + LOCAL tmp, tmp1 + + FOR EACH tmp IN aList + IF !( Left( tmp, 1 ) == "!" ) .AND. hb_FileMatch( cName, hb_DirSepToOS( tmp ) ) + FOR EACH tmp1 IN aList + IF Left( tmp1, 1 ) == "!" .AND. hb_FileMatch( cName, hb_DirSepToOS( SubStr( tmp1, 2 ) ) ) + RETURN .F. + ENDIF + NEXT + RETURN .T. + ENDIF + NEXT + + RETURN .F. + +STATIC FUNCTION UTF8_BOM() + RETURN ; + hb_BChar( 0xEF ) + ; + hb_BChar( 0xBB ) + ; + hb_BChar( 0xBF ) + +STATIC FUNCTION LoadGitIgnore() + + THREAD STATIC s_aIgnore := NIL + + LOCAL cLine + + IF s_aIgnore == NIL + s_aIgnore := { "*/3rd/*" } + FOR EACH cLine IN hb_ATokens( StrTran( hb_MemoRead( ".gitignore" ), Chr( 13 ) ), Chr( 10 ) ) + IF ! Empty( cLine ) .AND. !( Left( cLine, 1 ) == "#" ) + /* TODO: clean this */ + AAdd( s_aIgnore, ; + iif( Left( cLine, 1 ) $ "?*/!", "", "*/" ) + ; + cLine + ; + iif( Right( cLine, 1 ) == "/", "*", ; + iif( Empty( hb_FNameExt( cLine ) ) .AND. !( Right( cLine, 2 ) == "*/" ), "/*", "" ) ) ) + IF !( ATail( s_aIgnore ) == cLine ) + IF Left( ATail( s_aIgnore ), 2 ) == "*/" + AAdd( s_aIgnore, SubStr( ATail( s_aIgnore ), 3 ) ) + ENDIF + AAdd( s_aIgnore, cLine ) + ENDIF + ENDIF + NEXT + ENDIF + + RETURN s_aIgnore diff --git a/bin/commit.hb b/bin/commit.hb index 4a89a984f3..23f06e754c 100644 --- a/bin/commit.hb +++ b/bin/commit.hb @@ -1,3 +1,4 @@ +#!/usr/bin/hbmk2 /* * Harbour Project source code: * Commit preparer @@ -33,7 +34,8 @@ PROCEDURE Main() LOCAL cVCS := VCSDetect() - LOCAL aChanges := DoctorChanges( cVCS, Changes( cVCS ) ) + LOCAL aFiles := {} + LOCAL aChanges := DoctorChanges( cVCS, Changes( cVCS ), aFiles ) LOCAL cLog LOCAL cLogNew LOCAL cLine @@ -45,7 +47,7 @@ PROCEDURE Main() LOCAL cLogName IF Empty( aChanges ) - OutStd( hb_ProgName() + ": no changes" + hb_eol() ) + OutStd( hb_ProgName() + ": " + "no changes" + hb_eol() ) RETURN ENDIF @@ -80,28 +82,35 @@ PROCEDURE Main() IF ! hb_FileExists( cLogName := "ChangeLog.txt" ) IF ! hb_FileExists( cLogName := "ChangeLog" ) - OutStd( hb_ProgName() + ": can't find ChangeLog file" + hb_eol() ) + OutStd( hb_ProgName() + ": " + "can't find ChangeLog file" + hb_eol() ) RETURN ENDIF ENDIF - cLog := MemoRead( cLogName ) - cOldLang := hb_cdpSelect( "EN" ) - cHit := hb_AtX( "\n[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9] UTC[\-+][0-1][0-9][0-5][0-9] ", cLog ) - IF Empty( cHit ) - cHit := "" - ENDIF - hb_cdpSelect( cOldLang ) + IF CheckFileList( aFiles ) - nPos := At( AllTrim( cHit ), cLog ) - IF nPos > 0 - cLog := Left( cLog, nPos - 1 ) + cLogNew + hb_eol() + SubStr( cLog, nPos ) + cLog := MemoRead( cLogName ) + cOldLang := hb_cdpSelect( "EN" ) + cHit := hb_AtX( "\n[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-5][0-9] UTC[\-+][0-1][0-9][0-5][0-9] ", cLog ) + IF Empty( cHit ) + cHit := "" + ENDIF + hb_cdpSelect( cOldLang ) + + nPos := At( AllTrim( cHit ), cLog ) + IF nPos > 0 + cLog := Left( cLog, nPos - 1 ) + cLogNew + hb_eol() + SubStr( cLog, nPos ) + ELSE + cLog += hb_eol() + cLogNew + ENDIF + + hb_MemoWrit( cLogName, cLog ) + + OutStd( hb_ProgName() + ": " + hb_StrFormat( "Edit %1$s and commit", cLogName ) + hb_eol() ) ELSE - cLog += hb_eol() + cLogNew + OutStd( hb_ProgName() + ": " + "Please correct errors listed above and re-run" + hb_eol() ) ENDIF - hb_MemoWrit( cLogName, cLog ) - RETURN STATIC FUNCTION VCSDetect() @@ -113,7 +122,7 @@ STATIC FUNCTION VCSDetect() RETURN "" -STATIC FUNCTION DoctorChanges( cVCS, aChanges ) +STATIC FUNCTION DoctorChanges( cVCS, aChanges, aFiles ) LOCAL cLine LOCAL cStart @@ -146,6 +155,7 @@ STATIC FUNCTION DoctorChanges( cVCS, aChanges ) ENDSWITCH IF ! Empty( cStart ) AAdd( aNew, " " + cStart + " " + StrTran( SubStr( cLine, 8 + 1 ), "\", "/" ) ) + AAdd( aFiles, SubStr( cLine, 8 + 1 ) ) ENDIF ENDIF NEXT @@ -181,6 +191,7 @@ STATIC FUNCTION DoctorChanges( cVCS, aChanges ) ENDSWITCH IF ! Empty( cStart ) AAdd( aNew, " " + cStart + " " + StrTran( SubStr( cLine, 3 + 1 ), "\", "/" ) ) + AAdd( aFiles, SubStr( cLine, 3 + 1 ) ) ENDIF ENDIF NEXT @@ -239,3 +250,5 @@ STATIC FUNCTION GitUser() RETURN hb_StrFormat( "%s (%s)", ; AllTrim( hb_StrReplace( cName, Chr( 10 ) + Chr( 13 ), "" ) ), ; StrTran( AllTrim( hb_StrReplace( cEMail, Chr( 10 ) + Chr( 13 ), "" ) ), "@", " " ) ) + +#include "check.hb" diff --git a/config/postinst.hb b/config/postinst.hb index 677c35229b..2ace56a6b8 100644 --- a/config/postinst.hb +++ b/config/postinst.hb @@ -80,6 +80,8 @@ PROCEDURE Main( ... ) /* public Harbour scripts */ FOR EACH tmp IN { ; "bin/3rdpatch.hb", ; + "bin/commit.hb", ; + "bin/check.hb", ; "bin/harbour.ucf" } mk_hb_FCopy( tmp, GetEnvC( "HB_INSTALL_BIN" ) + hb_ps() ) NEXT diff --git a/contrib/hbcairo/paths.c b/contrib/hbcairo/paths.c index 4a90ba6801..09b0f2059b 100644 --- a/contrib/hbcairo/paths.c +++ b/contrib/hbcairo/paths.c @@ -235,4 +235,3 @@ HB_FUNC( CAIRO_TEXT_PATH ) hb_strfree( hText ); } } - diff --git a/contrib/hbcairo/png.c b/contrib/hbcairo/png.c index f516c891be..fc94c4d52d 100644 --- a/contrib/hbcairo/png.c +++ b/contrib/hbcairo/png.c @@ -71,4 +71,3 @@ HB_FUNC( CAIRO_SURFACE_WRITE_TO_PNG ) hb_retni( -1 ); /* There is no good CAIRO_STATUS_* for this */ #endif } - diff --git a/contrib/hbcairo/tests/lightning.prg b/contrib/hbcairo/tests/lightnin.prg similarity index 100% rename from contrib/hbcairo/tests/lightning.prg rename to contrib/hbcairo/tests/lightnin.prg diff --git a/contrib/hbcairo/util.c b/contrib/hbcairo/util.c index f6bcb603c0..d757b9a8f5 100644 --- a/contrib/hbcairo/util.c +++ b/contrib/hbcairo/util.c @@ -66,4 +66,3 @@ HB_FUNC( CAIRO_VERSION_STRING ) { hb_retc( cairo_version_string() ); } - diff --git a/contrib/hbhpdf/tests/files/cp932.txt b/contrib/hbhpdf/tests/files/cp932.txt index 0000f50d51..aeff76e6c7 100644 --- a/contrib/hbhpdf/tests/files/cp932.txt +++ b/contrib/hbhpdf/tests/files/cp932.txt @@ -1,4 +1,4 @@ -(こんにちは。) +(こんにちは。) (おはようございます。) (こんばんは。) (はじめまして、どうぞよろしく。) diff --git a/contrib/hbhpdf/tests/files/cp936.txt b/contrib/hbhpdf/tests/files/cp936.txt index d27b7ab469..b31a4b8834 100644 --- a/contrib/hbhpdf/tests/files/cp936.txt +++ b/contrib/hbhpdf/tests/files/cp936.txt @@ -7,4 +7,4 @@ ヤルシ」。 ノフ蠎テツ」ソ コテセテイサシ」。 -エネナチヒ。」 \ No newline at end of file +エネナチヒ。」 diff --git a/contrib/hbhpdf/tests/files/elic_jp.txt b/contrib/hbhpdf/tests/files/elic_jp.txt index f509f9c859..cdda43a0a0 100644 --- a/contrib/hbhpdf/tests/files/elic_jp.txt +++ b/contrib/hbhpdf/tests/files/elic_jp.txt @@ -1,4 +1,4 @@ -。ハ、ウ、、ヒ、チ、マ。」。ヒ +。ハ、ウ、、ヒ、チ、マ。」。ヒ 。ハ、ェ、マ、隍ヲ、エ、カ、、、゙、ケ。」。ヒ 。ハ、ウ、、ミ、、マ。」。ヒ 。ハ、マ、ク、皃゙、キ、ニ。「、ノ、ヲ、セ、隍、キ、ッ。」。ヒ diff --git a/contrib/hbhttpd/tests/tpl/app/account/edit.tpl b/contrib/hbhttpd/tests/tpl/app/account/edit.tpl index 88ffefaf38..a45432db7b 100644 --- a/contrib/hbhttpd/tests/tpl/app/account/edit.tpl +++ b/contrib/hbhttpd/tests/tpl/app/account/edit.tpl @@ -11,4 +11,4 @@
-Create new account \ No newline at end of file +Create new account diff --git a/contrib/hbhttpd/tests/tpl/app/logout.tpl b/contrib/hbhttpd/tests/tpl/app/logout.tpl index d643107f99..0b36c8f307 100644 --- a/contrib/hbhttpd/tests/tpl/app/logout.tpl +++ b/contrib/hbhttpd/tests/tpl/app/logout.tpl @@ -1,4 +1,4 @@ {{extend _main}} Login