- KDE wants a kind of gettext2("role","msg") function whose key is the
concatenation of "role" and "msg" but whose default value is only "msg".
-- For cygwin: Call open() with O_BINARY.
-
- Ask EMX, cygwin, mingw32, pw people for testing.
- Add msvc Makefile.
- Look at Ben Bullock's manual: http://www.hayamasa.demon.co.uk/doc/gettext.texi
+- Provide a way to merge two .po files, coming from different translators of
+ the same pot file.
+
+2001-01-20 Bruno Haible <haible@clisp.cons.org>
+
+ * loadmsgcat.c (O_BINARY): Define on platforms that don't have it.
+ (_nl_load_domain): Open the catalog file in binary mode.
+
2001-01-24 Bruno Haible <haible@clisp.cons.org>
* gettextP.h (SWAP): Remove declaration, to work around a compilation
# define freea(p) free (p)
#endif
+/* For systems that distinguish between text and binary I/O.
+ O_BINARY is usually declared in <fcntl.h>. */
+#if !defined O_BINARY && defined _O_BINARY
+ /* For MSC-compatible compilers. */
+# define O_BINARY _O_BINARY
+# define O_TEXT _O_TEXT
+#endif
+#ifdef __BEOS__
+ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
+# undef O_BINARY
+# undef O_TEXT
+#endif
+/* On reasonable systems, binary I/O is the default. */
+#ifndef O_BINARY
+# define O_BINARY 0
+#endif
+
/* We need a sign, whether a new catalog was loaded, which can be associated
with all translations. This is important if the translations are
cached by one of GCC's features. */
return;
/* Try to open the addressed file. */
- fd = open (domain_file->filename, O_RDONLY);
+ fd = open (domain_file->filename, O_RDONLY | O_BINARY);
if (fd == -1)
return;