+2014-06-09 Daiki Ueno <ueno@gnu.org>
+
+ msgmerge: Disable --color option in --update mode
+ Suggested by 林V字龍 at:
+ <https://lists.gnu.org/archive/html/bug-gettext/2014-06/msg00017.html>.
+ * msgmerge.c (main): Error out when --color and --update are
+ specified at the same time.
+
2014-06-07 Daiki Ueno <ueno@gnu.org>
xgettext: Fix misrecognition of character literals in C and Vala
bool do_help;
bool do_version;
char *output_file;
+ char *color;
msgdomain_list_ty *def;
msgdomain_list_ty *result;
catalog_input_format_ty input_syntax = &input_format_po;
do_help = false;
do_version = false;
output_file = NULL;
+ color = NULL;
while ((opt = getopt_long (argc, argv, "C:D:eEFhimn:No:pPqsUvVw:",
long_options, NULL))
case CHAR_MAX + 9: /* --color */
if (handle_color_option (optarg) || color_test_mode)
usage (EXIT_FAILURE);
+ color = optarg;
break;
case CHAR_MAX + 10: /* --style */
error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),
"--update", "--output-file");
}
+ if (color != NULL)
+ {
+ error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),
+ "--update", "--color");
+ }
+ if (style_file_name != NULL)
+ {
+ error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"),
+ "--update", "--style");
+ }
}
else
{