Windows: fix missing O_BINARY. Reinstate image tag indexing
This commit is contained in:
parent
a95dcbd4b0
commit
71672da7dd
@ -26,6 +26,7 @@
|
||||
#ifndef _WIN32
|
||||
#include <sys/time.h>
|
||||
#include <utime.h>
|
||||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
@ -43,7 +44,7 @@ bool copyfile(const char *src, const char *dst, string &reason, int flags)
|
||||
int dfd = -1;
|
||||
bool ret = false;
|
||||
char buf[CPBSIZ];
|
||||
int oflags = O_WRONLY|O_CREAT|O_TRUNC;
|
||||
int oflags = O_WRONLY|O_CREAT|O_TRUNC|O_BINARY;
|
||||
|
||||
LOGDEB(("copyfile: %s to %s\n", src, dst));
|
||||
|
||||
@ -96,7 +97,7 @@ bool stringtofile(const string& dt, const char *dst, string& reason,
|
||||
LOGDEB(("stringtofile:\n"));
|
||||
int dfd = -1;
|
||||
bool ret = false;
|
||||
int oflags = O_WRONLY|O_CREAT|O_TRUNC;
|
||||
int oflags = O_WRONLY|O_CREAT|O_TRUNC|O_BINARY;
|
||||
|
||||
LOGDEB(("stringtofile: %u bytes to %s\n", (unsigned int)dt.size(), dst));
|
||||
|
||||
|
||||
@ -123,11 +123,11 @@ audio/mpeg = execm python rclaudio
|
||||
audio/mp4 = execm python rclaudio
|
||||
audio/aac = execm python rclaudio
|
||||
audio/x-karaoke = execm python rclkar
|
||||
#image/gif = execm python rclimg.py
|
||||
#image/jp2 = execm python rclimg.py
|
||||
#image/jpeg = execm python rclimg.py
|
||||
#image/png = execm python rclimg.py
|
||||
#image/tiff = execm python rclimg.py
|
||||
image/gif = execm python rclimg.py
|
||||
image/jp2 = execm python rclimg.py
|
||||
image/jpeg = execm python rclimg.py
|
||||
image/png = execm python rclimg.py
|
||||
image/tiff = execm python rclimg.py
|
||||
image/svg+xml = execm python rclsvg.py
|
||||
#image/x-xcf = execm perl rclimg
|
||||
inode/symlink = internal
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "Recoll"
|
||||
#define MyAppVersion "1.22.0-20151115"
|
||||
#define MyAppVersion "1.22.0-20151202"
|
||||
#define MyAppPublisher "Recoll.org"
|
||||
#define MyAppURL "http://www.recoll.org"
|
||||
#define MyAppExeName "recoll.exe"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user