Changeset: ca8664c8d212 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ca8664c8d212
Branch: default
Log Message:

Merge with Mar2025 branch.


diffs (124 lines):

diff --git a/NT/mksqlwxs.py b/NT/mksqlwxs.py
--- a/NT/mksqlwxs.py
+++ b/NT/mksqlwxs.py
@@ -102,12 +102,12 @@ def main():
     print(r'      </DirectorySearch>')
     print(r'    </Property>')
     print(r'    <Property Id="GEOMMALEXISTS">')
-    print(rf'      <DirectorySearch Id="CheckFileDir3" 
Path="[INSTALLDIR]\lib\monetdb5-{version}" Depth="0">')
+    print(r'      <DirectorySearch Id="CheckFileDir3" 
Path="[INSTALLDIR]\lib\monetdb5" Depth="0">')
     print(r'        <FileSearch Id="CheckFile3" Name="geom.mal"/>')
     print(r'      </DirectorySearch>')
     print(r'    </Property>')
     print(r'    <Property Id="GEOMLIBEXISTS">')
-    print(rf'      <DirectorySearch Id="CheckFileDir4" 
Path="[INSTALLDIR]\lib\monetdb5-{version}" Depth="0">')
+    print(r'      <DirectorySearch Id="CheckFileDir4" 
Path="[INSTALLDIR]\lib\monetdb5" Depth="0">')
     print(r'        <FileSearch Id="CheckFile4" Name="_geom.dll"/>')
     print(r'      </DirectorySearch>')
     print(r'    </Property>')
diff --git a/clients/ChangeLog.Mar2025 b/clients/ChangeLog.Mar2025
--- a/clients/ChangeLog.Mar2025
+++ b/clients/ChangeLog.Mar2025
@@ -1,3 +1,8 @@
 # ChangeLog file for clients
 # This file is updated with Maddlog
 
+* Thu Aug 28 2025 Sjoerd Mullender <[email protected]>
+- We now try to figure out the size of the terminal window on Windows.
+  This means that mclient will, by default, format tabular output to
+  not wrap long lines, like is already done on Unix/Linux.
+
diff --git a/clients/NT/CMakeLists.txt b/clients/NT/CMakeLists.txt
--- a/clients/NT/CMakeLists.txt
+++ b/clients/NT/CMakeLists.txt
@@ -15,13 +15,9 @@
 # generator does not allow for absolute install paths. That is why we use
 # the "." as a relative path.
 if(WIN32)
-  configure_file(mclient.bat.in
-    ${CMAKE_CURRENT_BINARY_DIR}/mclient.bat @ONLY)
-  configure_file(msqldump.bat.in
-    ${CMAKE_CURRENT_BINARY_DIR}/msqldump.bat @ONLY)
   install(FILES
-    ${CMAKE_CURRENT_BINARY_DIR}/mclient.bat
-    ${CMAKE_CURRENT_BINARY_DIR}/msqldump.bat
+    mclient.bat
+    msqldump.bat
     DESTINATION "."
     COMPONENT server)
 endif()
diff --git a/clients/NT/mclient.bat.in b/clients/NT/mclient.bat
rename from clients/NT/mclient.bat.in
rename to clients/NT/mclient.bat
--- a/clients/NT/mclient.bat.in
+++ b/clients/NT/mclient.bat
@@ -16,7 +16,7 @@ rem remove the final backslash from the 
 set MONETDB=%MONETDB:~0,-1%
 
 rem extend the search path with our EXE and DLL folders
-set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5-@MONETDB_VERSION@;%PATH%
+set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5;%PATH%
 
 if not "%1"=="/STARTED-FROM-MENU" goto skip
 shift
diff --git a/clients/NT/msqldump.bat.in b/clients/NT/msqldump.bat
rename from clients/NT/msqldump.bat.in
rename to clients/NT/msqldump.bat
--- a/clients/NT/msqldump.bat.in
+++ b/clients/NT/msqldump.bat
@@ -15,7 +15,7 @@
 @set MONETDB=%MONETDB:~0,-1%
 
 @rem extend the search path with our EXE and DLL folders
-@set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5-@MONETDB_VERSION@;%PATH%
+@set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5;%PATH%
 
 @rem start the real client
 @"%MONETDB%\bin\msqldump.exe" %*
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -1690,6 +1690,14 @@ setWidth(void)
                        pagewidth = ws.ws_col;
                        pageheight = ws.ws_row;
                } else
+#else
+#ifdef _MSC_VER
+               CONSOLE_SCREEN_BUFFER_INFO csbi;
+               if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), 
&csbi) != 0) {
+                       pagewidth = csbi.srWindow.Right - csbi.srWindow.Left;
+                       pageheight = csbi.srWindow.Bottom - csbi.srWindow.Top + 
1;
+               } else
+#endif
 #endif
                {
                        pagewidth = pageheight = -1;
diff --git a/monetdb5/NT/CMakeLists.txt b/monetdb5/NT/CMakeLists.txt
--- a/monetdb5/NT/CMakeLists.txt
+++ b/monetdb5/NT/CMakeLists.txt
@@ -11,10 +11,8 @@
 #]]
 
 if(WIN32)
-  configure_file(M5server.bat.in
-    ${CMAKE_CURRENT_BINARY_DIR}/M5server.bat @ONLY)
   install(FILES
-    ${CMAKE_CURRENT_BINARY_DIR}/M5server.bat
+    M5server.bat
     DESTINATION "."
     COMPONENT server)
 endif()
diff --git a/monetdb5/NT/M5server.bat.in b/monetdb5/NT/M5server.bat
rename from monetdb5/NT/M5server.bat.in
rename to monetdb5/NT/M5server.bat
--- a/monetdb5/NT/M5server.bat.in
+++ b/monetdb5/NT/M5server.bat
@@ -19,7 +19,7 @@ rem remove the final backslash from the 
 set MONETDB=%MONETDB:~0,-1%
 
 rem extend the search path with our EXE and DLL folders
-set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5-@MONETDB_VERSION@;%PATH%
+set PATH=%MONETDB%\bin;%MONETDB%\lib\monetdb5;%PATH%
 
 rem prepare the arguments to mserver5 to tell it where to put the dbfarm
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to