135 Commits

Author SHA1 Message Date
Jean-Francois Dockes
cadfabc3b1 pathut: give $HOME priority over pwd entry 2022-09-11 08:49:08 +02:00
Jean-Francois Dockes
be12db218b ptrans: do not transform the translations input by the user (no path_canon()),
these could be foreign (windows x unix).
fileurltolocalpath: remove the '/' in front of a windows drive letter path even
when not built on Windows
Move all the dubious recoll-specific url code from the generic pathut to rclutil
2022-05-18 08:47:02 +02:00
Jean-Francois Dockes
be758e2c94 shared code: use medocutils namespace and other small include adjustments 2022-05-09 19:03:57 +02:00
Jean-Francois Dockes
fdb18a7c4b Windows: fix reexec not working when spaces in exe path 2022-01-19 14:43:38 +00:00
Jean-Francois Dockes
497b61e017 Windows: monitor, reexec, pinging process. Not done yet. 2022-01-18 20:27:44 +00:00
Jean-Francois Dockes
b118c93b4f small cleanups to avoid a few ifdef _WIN32 2022-01-17 15:46:40 +01:00
Jean-Francois Dockes
1a20debf56 pathut: add path_cachedir 2021-10-19 09:49:44 +02:00
Jean-Francois Dockes
ce0352eff4 Disable std::regex use for older gcc versions 2021-08-13 21:38:12 +02:00
Jean-Francois Dockes
1492b5fff5 remove log message 2020-09-30 15:02:15 +02:00
Jean-Francois Dockes
e8a5ee327d Windows wide path conversions: don't use SYSPATH outside pathut.cpp 2020-09-30 12:31:51 +01:00
Jean-Francois Dockes
a85b1084c5 pathut: windows error message 2020-09-29 13:50:31 +01:00
Jean-Francois Dockes
013642b994 small path_xx windows adjustemnts 2020-09-29 13:43:26 +02:00
Jean-Francois Dockes
19eac2d7dc Renamed path_open() -> path_streamopen() 2020-09-29 13:35:55 +02:00
Jean-Francois Dockes
4b928ee57e Simplify file-related operations portability by moving more code to the system-independant interface in pathut (esp.: dir reading) 2020-09-29 09:48:34 +02:00
Jean-Francois Dockes
90f39ffacc move path comparison to pathut 2020-09-28 14:03:05 +02:00
Jean-Francois Dockes
5915dd6cea recollindex -r: make path args absolute using the original working directory, not the rundir (tmp) 2020-07-13 10:47:32 +02:00
Jean-Francois Dockes
476a3ba743 shared 2020-07-13 10:46:05 +02:00
Jean-Francois Dockes
66845a4148 path_unlink() returned inverted status 2020-06-14 17:59:29 +02:00
Jean-Francois Dockes
f500474643 suppressed stray traces 2020-06-11 14:52:10 +02:00
Jean-Francois Dockes
cd29fd581d Windows7: the flags passed to widetomultichar was not correct.
Also no wmain with our mingw version.
2020-06-11 14:49:44 +02:00
Jean-Francois Dockes
f15e3f21fa Windows: replace unlink() with unicode-capable path_unlink() 2020-06-02 10:56:55 +01:00
Jean-Francois Dockes
0f8b53d43b pathut: path_chdir, more error checking in conversions 2020-06-02 08:56:02 +01:00
Jean-Francois Dockes
d223d4e350 tabs 2020-05-30 15:56:40 +02:00
Jean-Francois Dockes
560041cab9 cleared out errant tabs 2020-05-30 15:54:49 +02:00
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