/* Special definitions, processed by autoheader.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation.
+ Copyright (C) 1995-1998, 2001 Free Software Foundation.
Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
/* Default value for alignment of strings in .mo file. */
# define INVALID_PATH_CHAR "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37 \177\\:."
#endif
-/* Length from which starting on warnings about too long strings are given.
- Several systems have limits for strings itself, more have problems with
- strings in their tools (important here: gencat). 1024 bytes is a
- conservative limit. Because many translation let the message size grow
- (German translations are always bigger) choose a length < 1024. */
-#define WARN_ID_LEN 900
-
/* This is the page width for the message_print function. It should
not be set to more than 79 characters (Emacs users will appreciate
it). It is used to wrap the msgid and msgstr strings, and also to
+2001-03-25 Bruno Haible <haible@clisp.cons.org>
+
+ * xgettext.c (warn_id_len): Remove unused variable.
+ (main): Don't set it. 'l' option becomes a nop.
+ (usage): Remove mention of --string-limits/-l.
+
2001-03-23 Bruno Haible <haible@clisp.cons.org>
* msgcomm.c (main): Don't give an error message if there are "too few"
/* String containing name the program is called with. */
const char *program_name;
-/* String length from with on warning are given for possible problem
- while exceeding tools limits. */
-static size_t warn_id_len;
-
/* Long options. */
static const struct option long_options[] =
{
/* Set program name for messages. */
program_name = argv[0];
error_print_progname = error_print;
- warn_id_len = WARN_ID_LEN;
#ifdef HAVE_SETLOCALE
/* Set locale via LC_ALL. */
xgettext_lex_keyword (optarg);
break;
case 'l':
- {
- char *endp;
- size_t tmp_val = strtoul (optarg, &endp, 0);
- if (endp[0] == '\0')
- warn_id_len = tmp_val;
- }
+ /* Accepted for backward compatibility with 0.10.35. */
break;
case 'L':
scanner = language_to_scanner (optarg);
-j, --join-existing join messages with existing file\n\
-k, --keyword[=WORD] additonal keyword to be looked for (without\n\
WORD means not to use default keywords)\n\
- -l, --string-limit=NUMBER set string length limit to NUMBER instead %u\n\
-L, --language=NAME recognise the specified language (C, C++, PO),\n\
otherwise is guessed from file extension\n\
-m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr entries\n\
-M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr entries\n\
- --no-location do not write '#: filename:line' lines\n"),
- WARN_ID_LEN);
+ --no-location do not write '#: filename:line' lines\n"));
/* xgettext: no-wrap */
fputs (_("\
-n, --add-location generate '#: filename:line' lines (default)\n\