head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.38 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.36 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.34 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.32 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.30 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.28 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.26 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.24 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.22 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.20 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.18 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.16 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.14 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.12 pkgsrc-2008Q1:1.2.0.10 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.8 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.6 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.4 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.2 pkgsrc-2007Q1-base:1.2; locks; strict; comment @# @; 1.3 date 2011.04.12.17.42.56; author adam; state dead; branches; next 1.2; 1.2 date 2007.03.12.23.59.47; author rillig; state Exp; branches; next 1.1; 1.1 date 2007.03.06.13.08.24; author rillig; state Exp; branches; next ; desc @@ 1.3 log @Changes 0.18.1: * msggrep: A '$' anchor in a regular expression now also matches the end of the string, even if it does not end in a newline. * Dependencies: The libraries and programs are now linked with libunistring if this library is already installed. * Installation options: The configure option --with-cvs is deprecated. The 'autopoint' program will now use the 'git' program by default to compress its archive. If the configure option --without-git is specified, 'autopoint' will not rely on 'git', but will instead rely on a locally installed a 3 MB large archive. Changes 0.18: * Runtime behaviour: - On MacOS X and Windows systems, now extends setlocale() and newlocale() so that their determination of the default locale considers the choice the user has made in the system control panels. - On MacOS X systems, the gettext()/dgettext()/... functions now respect the locale of the current thread, if a thread-specific locale has been set. * PO file format: There is a new field 'Language' in the header entry. It denotes the language code (plus optional country code) for the PO file. This field can be used by automated tools, such as spell checkers. It is expected to be more reliable than looking at the file name or at the 'Language-Team' field in the header entry. msgmerge, msgcat, msgen have a new option --lang that allows to specify this field. Additionally, msgmerge fills in this new field by looking at the 'Language-Team' field (if the --lang option is not given). * xgettext and PO file format: For messages with plural forms, programmers can inform the translators about the range of possible values of the numeric argument, like this: /* xgettext: range: 0..15 */ This information 'range: 0..15' is stored in the PO file as a flag attached to the message. Translators can produce better translations when they know that the numeric argument is small. * Colorized PO files: msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, msgmerge, msgunfmt, msguniq, xgettext now have options --color and --style, like msgcat has since version 0.17. * msgmerge is up to 10 times faster when the PO and POT files are large. This speedup was contributed by Ralf Wildenhues. * msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has since version 0.12. * msgfilter now sets environment variables during the invocation of the filter, indicating the msgid and location of the messge being processed. * xgettext now can extract plural forms from Qt 4 programs. The recommended xgettext command-line options for this case are: --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t * xgettext --language=GCC-source now recognizes also the format strings used in the Fortran front-end of the GCC compiler, and marks them as 'gfc-internal-format'. * autopoint can now be used to update several PO directories all together. @ text @$NetBSD: patch-aq,v 1.2 2007/03/12 23:59:47 rillig Exp $ Don't call varargs macros with zero arguments, since that is not required by ISO C99 and only gcc can handle it. Fixed in gettext-tools-0.16. --- gettext-tools/src/po-lex.h.orig 2005-05-20 23:03:44.000000000 +0200 +++ gettext-tools/src/po-lex.h 2007-03-12 23:26:26.000000000 +0100 @@@@ -73,7 +73,7 @@@@ extern void po_lex_pass_obsolete_entries /* ISO C 99 is smart enough to allow optimizations like this. Note: OpenVMS 7.3 cc pretends to support ISO C 99 but chokes on '...'. */ -#if __STDC__ && (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __DECC) +#if 0 /* CAUTION: If you change this macro, you must also make identical changes to the function of the same name in src/po-lex.c */ @@@@ -109,7 +109,7 @@@@ extern void po_lex_pass_obsolete_entries } while (0) /* GCC is also smart enough to allow optimizations like this. */ -#elif __STDC__ && defined __GNUC__ && __GNUC__ >= 2 && !defined __APPLE_CC__ +#elif 0 /* CAUTION: If you change this macro, you must also make identical changes to the function of the same name in src/po-lex.c */ @ 1.2 log @Fixed the patches to _never_ use the varargs macros. This fixes the build on Mac OS X, where the inconsistent preprocessor conditions made the compilation fail. @ text @d1 1 a1 1 $NetBSD: patch-aq,v 1.1 2007/03/06 13:08:24 rillig Exp $ @ 1.1 log @ISO C99 does not require support for varargs macros with zero arguments, so MIPSpro doesn't support it either. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 3 Don't assume that any compiler other than gcc can handle varargs macros where zero arguments are given for "...". Accepting zero arguments is not required by ISO C99. d8 3 a10 3 --- gettext-tools/src/po-lex.h.orig Fri May 20 17:03:44 2005 +++ gettext-tools/src/po-lex.h Tue Mar 6 07:10:13 2007 @@@@ -73,7 +73,7 @@@@ d15 10 a24 1 +#if defined(__GNUC__) @