111 Commits

Author SHA1 Message Date
Jean-Francois Dockes
8fca053226 path_open: assigning an fstream works on the mac too 2020-05-20 19:53:55 +02:00
Jean-Francois Dockes
2c44b805cf shared: use more portable path_open() method 2020-05-18 09:02:06 +02:00
Jean-Francois Dockes
980b6c7b4a OOps bad flag input to WideCharToMultibyte() 2020-05-11 16:41:56 +01:00
Jean-Francois Dockes
631532f100 Recoll windows build: adjust to pathut wchar-utf8 changes 2020-05-11 07:02:46 +01:00
Jean-Francois Dockes
69df9196d9 shared code: windows simplifications 2020-05-11 07:45:22 +02:00
Jean-Francois Dockes
2f794be314 Fix Windows gcc build. Needs some def to get w7+ windows api 2020-04-25 11:41:37 +02:00
Jean-Francois Dockes
0f669a6799 shared 2020-04-17 16:17:52 +02:00
Jean-Francois Dockes
39c152bada Fixed MSVC warnings, all inocuous 2020-04-17 14:26:40 +01:00
Jean-Francois Dockes
6037576912 fix g++ compile issue 2020-04-16 10:41:13 +02:00
Jean-Francois Dockes
12ebb7ac6e Windows: deal with non-ASCII user login, non-ascii paths in confdir etc. 2020-04-15 14:03:04 +01:00
Jean-Francois Dockes
93262e57a6 pathut: pidfile has no real reason to use pid_t, replace with int and make windows life easier 2020-04-03 08:37:36 +02:00
Jean-Francois Dockes
34d23589a2 remove struct stat from interfaces 2020-03-31 11:17:07 +02:00
Jean-Francois Dockes
0aed9b755e shared 2020-02-28 11:24:05 +01:00
Jean-Francois Dockes
c5a1208457 Windows: handle wchar/utf-8 conversions in some other places. 2020-01-13 12:02:22 +01:00
Jean-Francois Dockes
d0bd639b34 comments 2019-10-06 12:03:00 +02:00
Jean-Francois Dockes
ad5beb43c2 mh_mbox: fix on Windows.
The 2 main issues were that the files were fopen'd in text mode, and that
the std-based SimpleRegexp implementation was wrong (match instead of search).
Also, make sure that we are using 64 bits interfaces.
2019-08-07 17:07:06 +02:00
Jean-Francois Dockes
9a68157907 mh_mbox: improve diags for win debugging 2019-08-07 13:32:23 +02:00
Jean-Francois Dockes
049ba1e7e4 Windows: build with UNICODE, get rid of all TCHAR/TEXT(), use explicit
xxA() interfaces and wchar_t in some places. Add a static cleanup retry
method to TempFile, called after clearing the MimeHandler cache (killing
the subprocesses which might hold an open file).
2019-07-21 16:23:16 +02:00
Jean-Francois Dockes
b3c1c260f0 comments 2019-03-12 14:51:23 +01:00
Jean-Francois Dockes
0cbc46732f Fixed the FSF address 2019-03-04 11:19:14 +01:00
Jean-Francois Dockes
8853cb505a Windows: improve indexing process management. Fix Pidfile locking.
Use a stop file to request stop of indexing when the indexer was not
started from the current GUI instance.
2019-02-14 14:12:08 +01:00
Jean-Francois Dockes
8368995f22 Windows: port dir size computation 2019-01-30 18:53:41 +01:00
Jean-Francois Dockes
d2c87318cb Use fstreewalk-based du-like code to compute index size instead of executing du 2019-01-30 13:43:36 +01:00
Jean-Francois Dockes
0aa6e3ca75 Merge back windows and shared code changes 2019-01-29 17:49:25 +01:00
Jean-Francois Dockes
7ea3936420 Windows: use wide char interfaces
Exchange file names and command line parameters with the system using
wchar_t interfaces: allows preserving values which can be reversibly
transcoded in the current multibyte charset (which can't be UTF-8). Store
all file paths internally in UTF-8
2019-01-25 15:28:24 +01:00
Jean-Francois Dockes
096ab4454b Windows: use wide char interfaces to read directories and access files 2019-01-23 15:05:11 +01:00
Jean-Francois Dockes
c82461cf39 modified license on some shared files (gpl->lgpl) 2018-11-06 16:27:54 +01:00
Jean-Francois Dockes
4524ae2acc merged shared 2018-06-21 10:52:56 +02:00
Jean-Francois Dockes
747a04ac50 pathut pid file: make sure we dont close the same fd twice. Might fix the mysterious "error 9 on netlink descriptor" crash? 2018-04-12 10:56:17 +02:00
Jean-Francois Dockes
8559572c7e Allow defining monitordirs variable: subset/dir of topdirs which will get monitored for updates 2018-04-11 17:45:06 +02:00
Jean-Francois Dockes
ce76e5388e merged shared ut 2017-06-28 08:13:30 +02:00
Jean-Francois Dockes
a8d5c2e73e windows: path_canon should yield c:/ not c: 2017-02-08 18:37:47 +01:00
Jean-Francois Dockes
5614c6bc5b Windows GUI: transform file paths to use backslashes before passing them to viewer, as some windows viewers only understand backslashes 2017-01-02 11:18:16 +01:00
Jean-Francois Dockes
4538522b5b windows: slashize input in path_absolute() (fixes -c option needing forward /) 2016-07-16 11:11:36 +02:00
Jean-Francois Dockes
65756ee1bc add code to test thumbnail paths 2016-06-18 19:36:57 +02:00
Jean-Francois Dockes
15fa6c25e5 got rid of the statfs() version of fsocc(), keeping only the Posix statvfs() (except on win32 of course) 2016-05-23 19:21:20 +02:00
Jean-Francois Dockes
7aa4edf91b Merged utility file versions with other packages 2016-03-22 13:35:35 +01:00
Jean-Francois Dockes
dade21bc3a Make pathut/smallut change work on windows 2016-03-21 13:18:14 +01:00
Jean-Francois Dockes
a4fd4ee5be moved code around to make smallut and pathut less recoll-specific and reusable. No actual changes 2016-03-21 12:55:31 +01:00
Jean-Francois Dockes
ff15f8fb1c Centralize stat calls to ensure consistency of time fields on windows 2016-01-08 11:23:10 +01:00
Jean-Francois Dockes
88e56987d5 windows: GUI index config: convert backslashes in skippedPaths 2015-12-01 17:34:49 +01:00
Jean-Francois Dockes
813b87722b typo 2015-12-01 17:26:44 +01:00
Jean-Francois Dockes
27c0129c99 windows: fsocc and fix wpd2html install 2015-12-01 15:50:24 +01:00
Jean-Francois Dockes
d013ecb1bc Windows: fix path splitting for the XP field 2015-10-14 10:53:15 +02:00
Jean-Francois Dockes
8324f09d19 Get uncompression to work and fix a few other issues 2015-10-13 16:48:16 +02:00
Jean-Francois Dockes
06f43c573e 1st successful use of mh_exec (direct antiword exec)
--HG--
branch : WINDOWSPORT
2015-09-11 11:26:53 +02:00
Jean-Francois Dockes
40671020e4 Added ExecCmd::which + fix member variable names
--HG--
branch : WINDOWSPORT
2015-09-09 09:00:20 +02:00
Jean-Francois Dockes
ef4bb2f4ca Windows: 'trexecmd -o env' sort of works, but waits for timeout at end of input
--HG--
branch : WINDOWSPORT
2015-09-08 15:49:13 +02:00
Jean-Francois Dockes
41b838fbed fileurltolocalpath: Only remove fragment indicator from url if path looks like an html file
--HG--
branch : WINDOWSPORT
2015-09-04 11:35:09 +02:00
Jean-Francois Dockes
8022515a00 Fix computation of file:// urls from paths
--HG--
branch : WINDOWSPORT
2015-09-02 09:11:25 +02:00