* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add cygpath.
* gettext-tools/src/read-csharp.c: Include cygpath.h.
(msgdomain_read_csharp): Convert the directory passed to msgunfmt.net.exe from
Cygwin to Windows syntax.
* gettext-tools/src/read-resources.c: Include cygpath.h.
(read_resources_file): Convert the file name passed to msgunfmt.net.exe from
Cygwin to Windows syntax.
* gettext-tools/src/write-resources.c: Include cygpath.h.
(msgdomain_write_csharp_resources): Convert the file name passed to
msgfmt.net.exe from Cygwin to Windows syntax.
copy-file
csharpcomp
csharpexec
+ cygpath
error
error-progname
execute
#include "xerror-handler.h"
#include "xalloc.h"
#include "concat-filename.h"
+#include "cygpath.h"
#include "gettext.h"
#define _(str) gettext (str)
msgdomain_read_csharp (const char *resource_name, const char *locale_name,
const char *directory)
{
+ char *directory_converted;
char *culture_name;
const char *args[4];
const char *gettextexedir;
if (resource_name == NULL)
resource_name = "Messages";
+ directory_converted = cygpath_w (directory);
+
/* Convert the locale name to a .NET specific culture name. */
culture_name = xstrdup (locale_name);
{
}
/* Prepare arguments. */
- args[0] = directory;
+ args[0] = directory_converted;
args[1] = resource_name;
args[2] = culture_name;
args[3] = NULL;
free (assembly_path);
free (culture_name);
+ free (directory_converted);
return locals.mdlp;
}
#include "xerror-handler.h"
#include "message.h"
#include "concat-filename.h"
+#include "cygpath.h"
#include "gettext.h"
#define _(str) gettext (str)
void
read_resources_file (message_list_ty *mlp, const char *filename)
{
+ char *filename_converted;
const char *args[2];
const char *gettextexedir;
const char *gettextlibdir;
const char *libdirs[1];
struct locals locals;
+ filename_converted = cygpath_w (filename);
+
/* Prepare arguments. */
- args[0] = filename;
+ args[0] = filename_converted;
args[1] = NULL;
/* Make it possible to override the .exe location. This is
}
free (assembly_path);
+ free (filename_converted);
}
#include "xalloc.h"
#include "concat-filename.h"
#include "fwriteerror.h"
+#include "cygpath.h"
#include "gettext.h"
#define _(str) gettext (str)
between builds in the same conditions. */
message_list_delete_header_field (mlp, "POT-Creation-Date:");
+ /* On Windows, assume a native Windows implementation of C#. */
+ char *file_name_converted = cygpath_w (file_name);
+
/* Execute the WriteResource program. */
{
const char *args[2];
struct locals locals;
/* Prepare arguments. */
- args[0] = file_name;
+ args[0] = file_name_converted;
args[1] = NULL;
/* Make it possible to override the .exe location. This is
free (assembly_path);
}
+
+ free (file_name_converted);
}
return 0;