📄 changelog
字号:
2001-07-24 Bruno Haible <haible@clisp.cons.org> * gettext-0.10.39 released.2001-06-24 Bruno Haible <haible@clisp.cons.org> * config.charset: Change canonical name of BIG5HKSCS to BIG5-HKSCS. Change canonical name of SJIS to SHIFT_JIS.2001-06-12 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (DCIGETTEXT): Release the lock before returning.2001-04-30 Bruno Haible <haible@clisp.cons.org> Silence "gcc -Wall -Wwrite-strings" warnings. * localcharset.c (charset_aliases): Change type to 'const char *'. (get_charset_aliases): Change type of 'cp' to 'const char *'.2001-05-23 Bruno Haible <haible@clisp.cons.org> * gettext-0.10.38 released.2001-05-22 Bruno Haible <haible@clisp.cons.org> * Makefile.in (install-data): Install plural.c as well. (uninstall): Uninstall plural.c as well.2001-05-18 Bruno Haible <haible@clisp.cons.org> * Makefile.in (dist): Don't assume $(srcdir) = ".". Distribute file in either current directory or $(srcdir), whichever exists.2001-05-11 Bruno Haible <haible@clisp.cons.org> * Makefile.in (install-exec): Don't install charset.alias on glibc 2.1 systems.2001-04-30 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (getuid, getgid, geteuid, getegid): Provide default definitions. Needed for mingw32.2001-04-19 Bruno Haible <haible@clisp.cons.org> * gettext-0.10.37 released.2001-04-19 Bruno Haible <haible@clisp.cons.org> * Makefile.in (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 1:1:0.2001-04-19 Bruno Haible <haible@clisp.cons.org> * loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT when the libiconv version is smaller than 1.5.2001-04-09 Bruno Haible <haible@clisp.cons.org> * loadmsgcat.c: Don't use GNU C extensions if __APPLE_CC__ is defined. Apple's MacOS X compiler has not all the features that the regular GCC with the same version number has.2001-04-07 Bruno Haible <haible@clisp.cons.org> * gettextP.h (struct loaded_domain): Add codeset_cntr field. (struct binding): Add codeset_cntr field. (_nl_load_domain): Add domainbinding argument. (_nl_init_domain_conv, _nl_free_domain_conv): New declarations. (_nl_find_msg): New declaration, moved here from loadinfo.h. * loadinfo.h (struct loaded_l10nfile): Remove domainbinding field. (_nl_make_l10nflist): Remove domainbinding argument. (_nl_find_msg): Move declaration to gettextP.h. * bindtextdom.c (set_binding_values): Initialize ->codeset_cntr to 0. Increment it when ->codeset is changed. * dcigettext.c (DCIGETTEXT): Pass binding to _nl_find_msg. (_nl_find_msg): Add domainbinding argument. Reinitialize the converter if domainbinding->codeset_cntr has been incremented. * finddomain.c (_nl_find_domain): Don't pass domainbinding to _nl_make_l10nflist(). Pass it to _nl_load_domain() instead. * l10nflist.c (_nl_make_l10nflist): Remove domainbinding argument. * loadmsgcat.c (_nl_init_domain_conv): New function, extracted from _nl_load_domain. Append //TRANSLIT also when using libiconv. (_nl_free_domain_conv): New function, extracted from _nl_unload_domain. (_nl_load_domain): Add domainbinding argument. Call _nl_init_domain_conv. (_nl_unload_domain): Call _nl_free_domain_conv.2001-04-09 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (HAVE_LOCALE_NULL): Don't define if __GNU_LIBRARY__ < 2 (Linux libc5).2001-04-04 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (HAVE_LOCALE_NULL): Define also if __GNU_LIBRARY__.2001-04-04 Bruno Haible <haible@clisp.cons.org> * Makefile.in (libdir, includedir, datadir): Use the autoconf determined value, in order to respect the configure arguments. (gettextsrcdir): Use $(datadir), not @datadir@.2001-03-29 Bruno Haible <haible@clisp.cons.org> * gettext-0.10.36 released.2001-03-25 Bruno Haible <haible@clisp.cons.org> * Makefile.in (install-data): Set execution bits on installed config.charset.2001-03-23 Bruno Haible <haible@clisp.cons.org> * Makefile.in (YACC): Use @INTLBISON@ instead of bison.2001-03-21 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc chokes on empty macro arguments. * plural.y: Add #pragma for alloca on AIX 3.2001-03-20 Bruno Haible <haible@clisp.cons.org> * Makefile.in (DISTFILES.generated): New variable. (DISTFILES.gettext): Remove plural.c. (dist): Use DISTFILES.generated. (YACC): Use "bison -y" instead of @YACC@. Needed for "make dist" to work in normal packages.2001-03-20 Bruno Haible <haible@clisp.cons.org> * Makefile.in (dist): Don't depend on $(DISTFILES). Instead, generate the files to be distributed through a recursive 'make' call.2001-03-17 Bruno Haible <haible@clisp.cons.org> * gettextP.h (struct expression): Add operators lnot, less_than, greater_than, less_or_equal, greater_or_equal. Replace args2/args3 union by a 'nargs' counter and an 'args[]' array. * plural.y: Don't include stdarg.h. (new_exp): New function. (new_exp_0, new_exp_2, new_exp_3): Rewritten to call new_exp. (new_exp_1): New function. ('?' ':'): Make right-associative. (EQUOP2): New token, replaces '=' and '!'. (CMPOP2): New token. (ADDOP2): New token, replaces '+' and '-'. (MULOP2): New token, replaces '*', '/' and '%'. ('!'): New token. (exp): Add rules for CMPOP2 and '!'. Don't call YYABORT. (start): Call YYABORT here. (FREE_EXPRESSION): Update. (yylex): Don't skip "\\n". Recognize comparison and '!' operators. Update for new token symbols. * loadmsgcat.c (plvar, plone, germanic_plural, init_germanic_plural): Update. * dcigettext.c (_nl_find_msg): Optimize for space. (plural_eval): Recognize comparison and '!' operators. Optimize for space. * dcigettext.c (transcmp): New declaration.2001-03-10 Bruno Haible <haible@clisp.cons.org> * Makefile.in (libintl.la): Pass -liconv and flag -no-undefined. Needed on platforms like BeOS. * Makefile.in (all-no-yes): Depend on libgnuintl.$la, not libintl.$la. (libgnuintl.a, libgnuintl.la): New targets. Needed for linking ../tests/tstgettext on systems which have gettext() in libintl.so. * localcharset.c (locale_charset): Allow wildcard syntax. Resolve alias also if codeset is empty. * config.charset (BeOS): Use wildcard syntax. * loadmsgcat.c (_nl_load_domain): locale_charset() doesn't return NULL any more.2001-03-09 Bruno Haible <haible@clisp.cons.org> * config.charset: Update from libiconv-1.6. * localcharset.c: Likewise.2001-02-25 Ulrich Drepper <drepper@redhat.com> * locale.alias: Don't use nb_NO but define aliases for it.2001-01-26 Ulrich Drepper <drepper@redhat.com> * loadmsgcat.c: Include <locale.h> for _LIBC.2001-03-09 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (transmem_block_t): Change to unsigned char, to avoid compiler warning. (_nl_find_msg): Add casts to avoid compiler warnings.2001-03-09 Bruno Haible <haible@clisp.cons.org> * Makefile.in (DISTFILES.common): Remove ChangeLog. (DISTFILES.obsolete): New variable. (install-data): Install ChangeLog.inst as ChangeLog. Remove the files listed in DISTFILES.obsolete. (uninstall): Simplify. (distclean): Remove ChangeLog.inst. (dist): Mention ChangeLog explicitly.2001-03-04 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (ISSLASH, HAS_DEVICE, IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): New macros. (DCIGETTEXT): Use IS_ABSOLUTE_PATH and IS_PATH_WITH_DIR. Increment path_max proportionally. * loadinfo.h (PATH_SEPARATOR): New macro. * l10nflist.c (_nl_make_l10nflist): Use PATH_SEPARATOR instead of ':'. * localealias.c (_nl_expand_alias): Likewise. * libgnuintl.h (gettext) [DJGPP]: Define as a macro as well.2001-03-06 Bruno Haible <haible@clisp.cons.org> * libgnuintl.h (LC_MESSAGES): Don't define on Solaris.2001-02-24 Bruno Haible <haible@clisp.cons.org> * dcigettext.c: Update comment about HAVE_LOCALE_NULL.2001-02-05 Bruno Haible <haible@clisp.cons.org> * libgnuintl.h (LC_MESSAGES): Provide a default value.2001-01-30 Bruno Haible <haible@clisp.cons.org> * config.charset: Update for FreeBSD 4.2.2001-01-21 Bruno Haible <haible@clisp.cons.org> Use libtool. * Makefile.in (l): Use INTL_LIBTOOL_SUFFIX_PREFIX instead of l. (all-no): When USE_INCLUDED_LIBINTL is 'no' but BUILD_INCLUDED_LIBINTL is 'yes', still build libintl.$la because the testsuite needs it. (libintl.la): Add $(CPPFLAGS) $(CFLAGS) $(XCFLAGS). Linking via $(CC) must use all $(CFLAGS). (install-exec): Use libtool to install libintl.$la. (uninstall): Use libtool to uninstall libintl.$la. (mostlyclean): Remove *.la and the .libs subdir. * intl-compat.c: Reorder. Add comment.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 failure on alphaev5-cray-unicosmk2.0.5.X.2001-01-15 Bruno Haible <haible@clisp.cons.org> * dcigettext.c (_nl_find_msg): Cast the second iconv() arg, to avoid a warning.2001-01-07 Bruno Haible <haible@clisp.cons.org> * gettextP.h (__gettextdebug): Remove declaration. (gettext_free_exp__, gettextparse__): New non-libc declarations. * plural.y [!_LIBC]: Define gettextparse__, gettext_free_exp__, not __gettextparse, __gettext_free_exp. * loadmsgcat.c [!_LIBC]: Use gettextparse__, not __gettextparse.2001-01-07 Bruno Haible <haible@clisp.cons.org> * libgnuintl.h: Renamed from intlh.inst.in. Remove comment about __builtin_constant_p. (gettext): Use NULL. * libgettext.h: Completely rewritten. Now a conditional wrapper around <libintl.h>. Keep the handling of ENABLE_NLS and gettext_noop, remove everything else. * gettextP.h: Include gettext.h, for nls_uint32. (gettext__, dgettext__, dcgettext__, textdomain__, bindtextdomain__, bind_textdomain_codeset__): New declarations, from old libgettext.h. * gettext.h: Don't include <stdio.h>. * Makefile.in (HEADERS): Add libgnuintl.h. (DISTFILES.gettext): Remove intlh.inst.in. (all-yes): Depend on libintl.h instead of intlh.inst. (libintl.h): New target. Create as a copy of libgnuintl.h. (intlh.inst): Remove target. (install-exec): Update. ($(OBJECTS): Depend on libgnuintl.h, not libgettext.h. (mostlyclean): Remove libintl.h instead of intlh.inst. (dist-libc): Remove target. * bindtextdom.c: Include libgnuintl.h instead of libgettext.h. Don't include gettext.h. * dcgettext.c: Likewise. * dcigettext.c: Likewise. * dcngettext.c: Likewise. * dngettext.c: Likewise. * finddomain.c: Likewise. * ngettext.c: Likewise. * textdomain.c: Likewise. * dgettext.c: Include libgnuintl.h instead of libgettext.h. Include gettextP.h. * gettext.c: Likewise. * intl-compat.c: Likewise. * localealias.c: Don't include gettext.h. * plural.y: Likewise.2001-01-07 Bruno Haible <haible@clisp.cons.org> Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist. * intlh.inst.in: Likewise. * libgettext.h: Likewise. * gettextP.h: Likewise. * bindtextdom.c: Likewise. * dcigettext.c: Likewise. * dgettext.c: Likewise. * dngettext.c: Likewise. * explodename.c: Likewise. * finddomain.c: Likewise. * gettext.c: Likewise. * l10nflist.c: Likewise. * loadmsgcat.c: Likewise. * localealias.c: Likewise. * ngettext.c: Likewise. * textdomain.c: Likewise.2001-01-06 Bruno Haible <haible@clisp.cons.org> Remove catgets fallback code. - It does not handle message clash prevention through domains and dgettext(). - It does not handle message catalog inheritance and the LANGUAGE environment variable. - It does not handle locale aliases. - It does not handle automatic charset conversion. - It does not handle plural form handling and ngettext(). - It uses a slow string to integer conversion. - It is sensitive against installation problems. * cat-compat.c: Remove file. * po2msg.sin, po2tbl.sin: Remove files. * Makefile.in (datadir): Assume DATADIRNAME = share. (SOURCES): Remove cat-compat.c. (DISTFILES.common): Remove po2msg.sin, po2tbl.sin. (distclean): No need to remove po2msg.sed, po2tbl.sed. (../po/cat-id-tbl.$lo): Remove rule. * libgettext.h (_msg_ent): Remove. (_msg_tbl, _msg_tbl_length): Remove declarations. (gettext, dgettext, ngettext, dngettext): Don't depend on !HAVE_CATGETS.2001-01-04 Ulrich Drepper <drepper@redhat.com> * plural.y (yylex): Minimal improvement in number scanner.2001-01-02 Ulrich Drepper <drepper@redhat.com> * dcigettext.c (guess_category_value): Rewrite so that LANGUAGE value is ignored if the selected locale is the C locale.2000-11-20 Ulrich Drepper <drepper@redhat.com> * dcigettext.c (transcmp): Make s1 and s2 const. * loadmsgcat.c (_nl_load_domain): Rearrange domain initialization to avoid warning.2000-11-09 Ulrich Drepper <drepper@redhat.com> * locale.alias: Add thai. Patch by Chanop Silpa-Anan <chanop@syseng.anu.edu.au>.2001-01-05 Bruno Haible <haible@clisp.cons.org> * Makefile.in (INCLUDES): Remove reference to $(top_srcdir)/lib. (.SUFFIXES): Put .c before .y, so that Solaris "make" uses the .c.o rule, not the builtin .y.o rule. (.y.c): Use $< instead of $^. $^ is not supported by SUSV2 "make" specification. Remove $*.h explicitly: we don't need plural.h. * gettextP.h: Include <stddef.h>. (__gettext_free_exp, __gettextparse): Convert prototype to K&R C syntax. * bindtextdom.c (offsetof): Provide fallback for platforms that lack it, like SunOS4. (set_binding_values): Convert prototype to K&R C syntax. * cat-compat.c: Include stdlib.h, string.h whenever possible. * dcigettext.c: Ignore the value of C_ALLOCA, because libintl.a must not depend on external .o files. (offsetof): Provide fallback for platforms that lack it, like SunOS4. (transcmp): Convert to K&R C syntax. * explodename.c Include stdlib.h whenever possible. (_nl_find_language): Convert to K&R C syntax. * finddomain.c: Include stdlib.h whenever possible. * l10nflist.c Include stdlib.h whenever possible. (_nl_normalize_codeset): Use tolower, not _tolower. * loadmsgcat.c: Include stdlib.h whenever possible. Include headers needed for alloca(). (freea): New macro. (_nl_load_domain): Add fallback code for platforms lacking strtoul, like SunOS4. Add fallback code for platforms lacking alloca. * localealias.c: Include stdlib.h whenever possible. (ADD_BLOCK, FREE_BLOCK): Remove macros. (freea): New macro. (read_alias_file): Simplify fallback code for platforms lacking alloca. * plural.y (new_exp_0, new_exp_2, new_exp_3): New functions. (new_exp): Remove function. (__gettext_free_exp, yylex, yyerror): Convert to K&R C syntax. * textdomain.c: Include stdlib.h whenever possible. * gettext.c: Likewise. * ngettext.c: Likewise. * localcharset.c (volatile): Define to empty if not using ANSI C.2001-01-01 Bruno Haible <haible@clisp.cons.org> * Makefile.in (mostlyclean): Remove intlh.inst, charset.alias, ref-add.sed, ref-del.sed. (distclean): In the gettext package, remove VERSION.2001-01-01 Bruno Haible <haible@clisp.cons.org> Finish implementation of plural form handling. * dcigettext.c (known_translation_t): Rename 'domain' field to 'domainname'. Remove 'plindex' field. Add 'domain' and 'translation_length' fields. (transcmp): Don't compare 'plindex' fields. (plural_lookup): New function. (DCIGETTEXT): Change cache handing in the plural case. Don't call plural_eval before the translation and its catalog file have been found. Remove plindex from cache key. Add 'translation_length' and 'domain' to cache result. (_nl_find_msg): Remove index argument, return length of translation to the caller instead. Weaken comparison of string lengths, to account for plural entries. Call iconv() on the entire result string, not only on the portion needed so far. * loadinfo.h (_nl_find_msg): Remove index argument, add lengthp argument. * loadmsgcat.c (_nl_load_domain): Adapt to _nl_find_msg change. * intl-compat.c (dcngettext, dngettext, ngettext): New functions. * libgettext.h (ngettext__, dngettext__, dcngettext__): New declarations. (ngettext, dngettext): Add missing macro argument. * intlh.inst.in (ngettext, dngettext): Add missing macro argument.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -