diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Handle.cc | 2 | ||||
-rw-r--r-- | lib/Input.cc | 6 | ||||
-rw-r--r-- | lib/Main.cc | 2 | ||||
-rw-r--r-- | lib/Output.cc | 3 |
4 files changed, 10 insertions, 3 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 7207f36..d366382 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -318,7 +318,7 @@ void Handle::SetZ(int az) throw (GeneralException) { format[index++] = (char) (az + '0'); format[index] = 0; #ifdef FULLDEBUG - printm(M_INFO, _("Performing gzdopen on handle ") << h << _(" with mode \"") + format + "\"\n"; + printm(M_INFO, String(_("Performing gzdopen on handle ")) + h + _(" with mode \"") + format + "\"\n"); #endif if (!(zfile = gzdopen(h, format))) { throw GeneralException(_("Was not able to gzdopen.")); diff --git a/lib/Input.cc b/lib/Input.cc index bfb771c..ed549ec 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -164,7 +164,11 @@ int Input::wrapopen(const String & fname, openresults_t * results) { } } results->name = ""; - return open(fname.to_charp(), O_RDONLY); + return open(fname.to_charp(), O_RDONLY +#ifdef _WIN32 + | O_BINARY +#endif + ); } void Input::SetZ(int l) throw(GeneralException) { diff --git a/lib/Main.cc b/lib/Main.cc index 992f73c..9e2891b 100644 --- a/lib/Main.cc +++ b/lib/Main.cc @@ -3,7 +3,7 @@ #endif #include "Main.h" #include "generic.h" -#include "gettext.h" +//#include "gettext.h" Main::Main() : setted(false) {} diff --git a/lib/Output.cc b/lib/Output.cc index 811918c..82940f6 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -22,6 +22,9 @@ Output::Output(String no, int create, int trunc) throw (GeneralException) : Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | (O_CREAT * (create ? 1 : 0)) | (O_TRUNC * (trunc ? 1 : 0)) +#ifdef _WIN32 +| O_BINARY +#endif #if defined __linux__ || defined __CYGWIN32__ , 00666 #endif |