From 2834f783b33c63a6d0c0ccd6cdf6d417223dbd75 Mon Sep 17 00:00:00 2001 From: Aleksander Czajczynski Date: Mon, 12 Apr 2021 21:17:27 +0200 Subject: [PATCH] 2021-04-12 21:18 UTC+0200 Aleksander Czajczynski (hb fki.pl) * src/rtl/hbfilehi.prg * hb_DirBuild() will now honor UNC "\\server\share\dir\tree" parameter on Windows and correctly create specified "\dir\tree" on remote server. If your code used a malformed "\\local\path" a regression in .prg code may happen on Windows. Previously a "\local\path" folder was created on current drive, as if the UNC specifier was omitted. It was more or less consistent with other platforms but not expected for this platform. Spotted by Maurizio la Cecilia (#233) [INCOMPATIBLE] * contrib/hbdoc/hbdoc.prg * contrib/hbformat/utils/hbformat.prg * contrib/hbnetio/utils/hbnetio/hbnetio.prg * package/harbour.mft * package/harbour.rc * src/compiler/hbusage.c * utils/hbi18n/hbi18n.prg * utils/hbtest/hbtest.prg * bumped copyright year to 2021 --- ChangeLog.txt | 21 +++++++++++++++++++++ contrib/hbdoc/hbdoc.prg | 2 +- contrib/hbformat/utils/hbformat.prg | 2 +- package/harbour.mft | 2 +- package/harbour.rc | 2 +- src/compiler/hbusage.c | 2 +- src/rtl/hbfilehi.prg | 5 +++++ utils/hbi18n/hbi18n.prg | 2 +- utils/hbtest/hbtest.prg | 2 +- 9 files changed, 33 insertions(+), 7 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index dd4eb39c37..e9061c078d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,27 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2021-04-12 21:18 UTC+0200 Aleksander Czajczynski (hb fki.pl) + * src/rtl/hbfilehi.prg + * hb_DirBuild() will now honor UNC "\\server\share\dir\tree" parameter + on Windows and correctly create specified "\dir\tree" on remote + server. If your code used a malformed "\\local\path" a regression + in .prg code may happen on Windows. Previously a "\local\path" + folder was created on current drive, as if the UNC specifier was + omitted. It was more or less consistent with other platforms but + not expected for this platform. Spotted by Maurizio la Cecilia (#233) + [INCOMPATIBLE] + + * contrib/hbdoc/hbdoc.prg + * contrib/hbformat/utils/hbformat.prg + * contrib/hbnetio/utils/hbnetio/hbnetio.prg + * package/harbour.mft + * package/harbour.rc + * src/compiler/hbusage.c + * utils/hbi18n/hbi18n.prg + * utils/hbtest/hbtest.prg + * bumped copyright year to 2021 + 2021-04-10 23:32 UTC+0200 Aleksander Czajczynski (hb fki.pl) * contrib/hbfbird/firebird.c + added optional as 7-th parameter of FBCREATEDB( , diff --git a/contrib/hbdoc/hbdoc.prg b/contrib/hbdoc/hbdoc.prg index b959c02665..cd17e0b8be 100644 --- a/contrib/hbdoc/hbdoc.prg +++ b/contrib/hbdoc/hbdoc.prg @@ -768,7 +768,7 @@ STATIC PROCEDURE ShowHelp( cExtraMessage, aArgs ) aHelp := { ; cExtraMessage, ; "Harbour Document Compiler (hbdoc) " + HBRawVersion(), ; - "Copyright (c) 1999-2020, " + hb_Version( HB_VERSION_URL_BASE ), ; + "Copyright (c) 1999-2021, " + hb_Version( HB_VERSION_URL_BASE ), ; "", ; "Syntax:", ; "", ; diff --git a/contrib/hbformat/utils/hbformat.prg b/contrib/hbformat/utils/hbformat.prg index 197d0f702b..e99cbd13ca 100644 --- a/contrib/hbformat/utils/hbformat.prg +++ b/contrib/hbformat/utils/hbformat.prg @@ -160,7 +160,7 @@ STATIC PROCEDURE About() OutStd( ; "Harbour Source Formatter " + HBRawVersion() + hb_eol() + ; "Copyright (c) 2010-" + ; - "2020" + ", " + ; + "2021" + ", " + ; hb_Version( HB_VERSION_URL_BASE ) + hb_eol() + ; "Copyright (c) 2009, Alexander S.Kresin" + hb_eol() + ; hb_eol() ) diff --git a/package/harbour.mft b/package/harbour.mft index 14ffbebf01..c6f27be88e 100644 --- a/package/harbour.mft +++ b/package/harbour.mft @@ -1,5 +1,5 @@ - + 0 cDirTemp := Left( cDir, tmp ) cDir := SubStr( cDir, tmp + 1 ) +#ifdef __PLATFORM__WINDOWS + ELSEIF Left( cDir, 2 ) == "\\" /* UNC Path, network share */ + cDirTemp := Left( cDir, hb_At( "\", cDir, 3 ) ) + cDir := SubStr( cDir, Len( cDirTemp ) + 1 ) +#endif ELSEIF Left( cDir, 1 ) == hb_ps() cDirTemp := Left( cDir, 1 ) cDir := SubStr( cDir, 2 ) diff --git a/utils/hbi18n/hbi18n.prg b/utils/hbi18n/hbi18n.prg index 4283175068..b5d7dd4a08 100644 --- a/utils/hbi18n/hbi18n.prg +++ b/utils/hbi18n/hbi18n.prg @@ -168,7 +168,7 @@ STATIC PROCEDURE Logo() OutStd( ; "Harbour i18n .pot/.hbl file manager " + HBRawVersion() + hb_eol() + ; "Copyright (c) 2009-" + ; - "2020" + ", " + ; + "2021" + ", " + ; "Przemyslaw Czerpak" + hb_eol() + ; hb_Version( HB_VERSION_URL_BASE ) + hb_eol() + ; hb_eol() ) diff --git a/utils/hbtest/hbtest.prg b/utils/hbtest/hbtest.prg index 12fb2c2cf0..8a92e9b6cb 100644 --- a/utils/hbtest/hbtest.prg +++ b/utils/hbtest/hbtest.prg @@ -95,7 +95,7 @@ STATIC s_lDBFAvail := .F. ANNOUNCE HB_GTSYS REQUEST HB_GT_CGI_DEFAULT - #define COPYRIGHT_YEAR "2020" + #define COPYRIGHT_YEAR "2021" #else #define COPYRIGHT_YEAR "present"