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
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