Daily bump.
[official-gcc.git] / gcc / intl / ChangeLog
blob02900a79bec8ca4359475bf1a795fe4f69cb034b
1 2002-07-25  Release Manager
3         * GCC 3.1.1 Released.
5 2002-05-25  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7         * gettextP.h (SWAP): Change parameter type to unsigned int.
9 2002-05-14  Release Manager
11         * GCC 3.1 Released.
13 2002-05-14  Release Manager
15         * GCC 3.1 Released.
17 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
19         * localealias.c (strings.h): Include.
21 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
23         * Makefile.in (OUTPUT_OPTION): Add configure variable.
24         (.c.o): Add $(OUTPUT_OPTION).
26 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28         * l10nflist.c (_nl_normalize_codeset): Cast argument of ctype
29         function to `unsigned char'.
30         * loadmsgcat.c (_nl_load_domain): Likewise.
31         * localealias.c (read_alias_file, alias_compare): Likewise.
32         * localcharset.c: Include "gettextP.h".
33         * plural.y (__attribute__): Define.
34         (yyerror): Mark parameter with __attribute__ ((__unused__)).
35         * plural.c: Regenerate.
37 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
39         * loadmsgcat.c (INTTYPE_SIGNED, INTTYPE_MINIMUM,
40         INTTYPE_MAXIMUM): Clone from system.h.
41         (_nl_load_domain): Use them when testing for overflow of size_t.
42         Cast result of sizeof to off_t to compare to st_size value.
43         Move side effects out of conditional for comprehensibility.
45 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
47         * dcigettext.c: Don't use #elif.
48         * gettextP.h: Prototype nls_uint32 and locale_charset here.
49         Always define ZERO to 1 to avoid warnings (ZERO is used in
50         flexible-array-member declarations).
51         * loadmsgcat.c: Apply __extension__ to structure definitions
52         using C99 designated initializer syntax.
53         Do not prototype locale_charset here.
54         * localcharset.c: Prototype get_charset_aliases before use.
55         Get rid of STATIC nonsense.
57 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
59         * Makefile.in: Don't copy libgnuintl.h anywhere.
61 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
63         * Update entire directory from gettext 0.10.40.
64         * cat-compat.c, linux-msg.sed, po2tbl.sed.in, xopen-msg.sed:
65         Removed.
66         * config.charset, dcigettext.c, dcngettext.c, libgnuintl.h,
67         localcharset.c, locale.alias, ngettext.c, plural.c, plural.y,
68         ref-add.sin, ref-del.sin: New.
70 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
72         * gettextP.h (SWAP): Change parameter type to unsigned int.
74 2001-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
76         * po2tbl.sed.in: Fixed typo.
78 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
80         * intl/dcgettext.c: Outside libc, use local variable names that don't
81         clash with those in libc.
82         * intl/bindtextdom.c: Likewise.
83         * intl/textdomain.c: Likewise.
85 2000-09-05  John David Anglin <dave@hiauly1.hia.nrc.ca>
87         * gettext.h (nls_uint32): Choose via INT_MAX instead of UINT_MAX.
89 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
91         * dcgettext.c (find_msg): Initialize act before loop.
92         (guess_category_value): Add dummy uses of both parameters.
93         * localealias.c (read_alias_file): Cast arg of strchr to char *.
95 2000-06-06  Philipp Thomas  <pthomas@suse.de>
97         * Makefile.in: Add -DIN_GCC to DEFS, add appropriate -I switches.
98         * dcgettext.c: Define _GNU_SOURCE before any system header is
99         included. Guard getcwd declaration with HAVE_DECL_GETCWD.
100         * loadmsgcat.c (_nl_load_domain): Cast st.st_size in compaison to
101         size_t.
102         * localealias.c: Define _GNU_SOURCE before any system header is
103         included. Don't use return value of memcpy because it could be a
104         macro defined in terms of bcopy.
105         (read_alias_file): Remove HAVE_MEMCPY guard and just don't use the
106         return value of memcpy. Cast argument to fgets and strlen to char *.
107         * explodename.c (_nl_explode_name): Cast codeset to unsigned char **
108         in call to _nl_normalize_codeset.
109         * l10nflist.c: Define _GNU_SOURCE before any system header is
110         included.
112 1998-04-29  Ulrich Drepper  <drepper@cygnus.com>
114         * intl/localealias.c (read_alias_file): Use unsigned char for
115         local variables.  Remove unused variable tp.
116         * intl/l10nflist.c (_nl_normalize_codeset): Use unsigned char *
117         for type of codeset.  For loosing Solaris systems.
118         * intl/loadinfo.h: Adapt prototype of _nl_normalize_codeset.
119         * intl/bindtextdom.c (BINDTEXTDOMAIN): Don't define local variable
120         len if not needed.
121         Patches by Jim Meyering.
123 1998-04-28  Ulrich Drepper  <drepper@cygnus.com>
125         * loadmsgcat.c (_nl_load_domain): Don't assign the element use_mmap if
126         mmap is not supported.
128         * hash-string.h: Don't include <values.h>.
130 1998-04-27  Ulrich Drepper  <drepper@cygnus.com>
132         * textdomain.c: Use strdup is available.
134         * localealias.c: Define HAVE_MEMPCPY so that we can use this
135         function.  Define and use semapahores to protect modfication of
136         global objects when compiling for glibc.  Add code to allow
137         freeing alias table.
139         * l10nflist.c: Don't assume stpcpy not being a macro.
141         * gettextP.h: Define internal_function macri if not already done.
142         Use glibc byte-swap macros instead of defining SWAP when compiled
143         for glibc.
144         (struct loaded_domain): Add elements to allow unloading.
146         * Makefile.in (distclean): Don't remove libintl.h here.
148         * bindtextdomain.c: Carry over changes from glibc.  Use strdup if
149         available.
151         * dcgettext.c: Don't assume stpcpy not being a macro.  Mark internal
152         functions.  Add memory freeing code for glibc.
154         * dgettext.c: Update copyright.
156         * explodename.c: Include stdlib.h and string.h only if they exist.
157         Use strings.h eventually.
159         * finddomain.c: Mark internal functions.  Use strdup if available.
160         Add memory freeing code for glibc.
162 1997-10-10 20:00  Ulrich Drepper  <drepper@cygnus.com>
164         * libgettext.h: Fix dummy textdomain and bindtextdomain macros.
165         They should return reasonable values.
166         Reported by Tom Tromey <tromey@cygnus.com>.
168 1997-09-16 03:33  Ulrich Drepper  <drepper@cygnus.com>
170         * libgettext.h: Define PARAMS also to `args' if __cplusplus is defined.
171         * intlh.inst.in: Likewise.
172         Reported by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>.
174         * libintl.glibc: Update from current glibc version.
176 1997-09-06 02:10  Ulrich Drepper  <drepper@cygnus.com>
178         * intlh.inst.in: Reformat copyright.
180 1997-08-19 15:22  Ulrich Drepper  <drepper@cygnus.com>
182         * dcgettext.c (DCGETTEXT): Remove wrong comment.
184 1997-08-16 00:13  Ulrich Drepper  <drepper@cygnus.com>
186         * Makefile.in (install-data): Don't change directory to install.
188 1997-08-01 14:30  Ulrich Drepper  <drepper@cygnus.com>
190         * cat-compat.c: Fix copyright.
192         * localealias.c: Don't define strchr unless !HAVE_STRCHR.
194         * loadmsgcat.c: Update copyright.  Fix typos.
196         * l10nflist.c: Don't define strchr unless !HAVE_STRCHR.
197         (_nl_make_l10nflist): Handle sponsor and revision correctly.
199         * gettext.c: Update copyright.
200         * gettext.h: Likewise.
201         * hash-string.h: Likewise.
203         * finddomain.c: Remoave dead code.  Define strchr only if
204         !HAVE_STRCHR.
206         * explodename.c: Include <sys/types.h>.
208         * explodename.c: Reformat copyright text.
209         (_nl_explode_name): Fix typo.
211         * dcgettext.c: Define and use __set_errno.
212         (guess_category_value): Don't use setlocale if HAVE_LC_MESSAGES is
213         not defined.
215         * bindtextdom.c: Pretty printing.
217 1997-05-01 02:25  Ulrich Drepper  <drepper@cygnus.com>
219         * dcgettext.c (guess_category_value): Don't depend on
220         HAVE_LC_MESSAGES.  We don't need the macro here.
221         Patch by Bruno Haible <haible@ilog.fr>.
223         * cat-compat.c (textdomain): DoN't refer to HAVE_SETLOCALE_NULL
224         macro.  Instead use HAVE_LOCALE_NULL and define it when using
225         glibc, as in dcgettext.c.
226         Patch by Bruno Haible <haible@ilog.fr>.
228         * Makefile.in (CPPFLAGS): New variable.  Reported by Franc,ois
229         Pinard.
231 Mon Mar 10 06:51:17 1997  Ulrich Drepper  <drepper@cygnus.com>
233         * Makefile.in: Implement handling of libtool.
235         * gettextP.h: Change data structures for use of generic lowlevel
236         i18n file handling.
238 Wed Dec  4 20:21:18 1996  Ulrich Drepper  <drepper@cygnus.com>
240         * textdomain.c: Put parentheses around arguments of memcpy macro
241         definition.
242         * localealias.c: Likewise.
243         * l10nflist.c: Likewise.
244         * finddomain.c: Likewise.
245         * bindtextdom.c: Likewise.
246         Reported by Thomas Esken.
248 Mon Nov 25 22:57:51 1996  Ulrich Drepper  <drepper@cygnus.com>
250         * textdomain.c: Move definition of `memcpy` macro to right
251         position.
253 Fri Nov 22 04:01:58 1996  Ulrich Drepper  <drepper@cygnus.com>
255         * finddomain.c [!HAVE_STRING_H && !_LIBC]: Define memcpy using
256         bcopy if not already defined.  Reported by Thomas Esken.
257         * bindtextdom.c: Likewise.
258         * l10nflist.c: Likewise.
259         * localealias.c: Likewise.
260         * textdomain.c: Likewise.
262 Tue Oct 29 11:10:27 1996  Ulrich Drepper  <drepper@cygnus.com>
264         * Makefile.in (libdir): Change to use exec_prefix instead of
265         prefix.  Reported by Knut-HÃ¥vardAksnes <etokna@eto.ericsson.se>.
267 Sat Aug 31 03:07:09 1996  Ulrich Drepper  <drepper@cygnus.com>
269         * l10nflist.c (_nl_normalize_codeset): We convert to lower case,
270         so don't prepend uppercase `ISO' for only numeric arg.
272 Fri Jul 19 00:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
274         * l10nflist.c: Move inclusion of argz.h, ctype.h, stdlib.h after
275         definition of _GNU_SOURCE.  Patch by Roland McGrath.
277         * Makefile.in (uninstall): Fix another bug with `for' loop and
278         empty arguments.  Patch by Jim Meyering.  Correct name os
279         uninstalled files: no intl- prefix anymore.
281         * Makefile.in (install-data): Again work around shells which
282         cannot handle mpty for list.  Reported by Jim Meyering.
284 Sat Jul 13 18:11:35 1996  Ulrich Drepper  <drepper@cygnus.com>
286         * Makefile.in (install): Split goal.  Now depend on install-exec
287         and install-data.
288         (install-exec, install-data): New goals.  Created from former
289         install goal.
290         Reported by Karl Berry.
292 Sat Jun 22 04:58:14 1996  Ulrich Drepper  <drepper@cygnus.com>
294         * Makefile.in (MKINSTALLDIRS): New variable.  Path to
295         mkinstalldirs script.
296         (install): use MKINSTALLDIRS variable or if the script is not present
297         try to find it in the $top_scrdir).
299 Wed Jun 19 02:56:56 1996  Ulrich Drepper  <drepper@cygnus.com>
301         * l10nflist.c: Linux libc *partly* includes the argz_* functions.
302         Grr.  Work around by renaming the static version and use macros
303         for renaming.
305 Tue Jun 18 20:11:17 1996  Ulrich Drepper  <drepper@cygnus.com>
307         * l10nflist.c: Correct presence test macros of __argz_* functions.
309         * l10nflist.c: Include <argz.h> based on test of it instead when
310         __argz_* functions are available.
311         Reported by Andreas Schwab.
313 Thu Jun 13 15:17:44 1996  Ulrich Drepper  <drepper@cygnus.com>
315         * explodename.c, l10nflist.c: Define NULL for dumb systems.
317 Tue Jun 11 17:05:13 1996  Ulrich Drepper  <drepper@cygnus.com>
319         * intlh.inst.in, libgettext.h (dcgettext): Rename local variable
320         result to __result to prevent name clash.
322         * l10nflist.c, localealias.c, dcgettext.c: Define _GNU_SOURCE to
323         get prototype for stpcpy and strcasecmp.
325         * intlh.inst.in, libgettext.h: Move declaration of
326         `_nl_msg_cat_cntr' outside __extension__ block to prevent warning
327         from gcc's -Wnested-extern option.
329 Fri Jun  7 01:58:00 1996  Ulrich Drepper  <drepper@cygnus.com>
331         * Makefile.in (install): Remove comment.
333 Thu Jun  6 17:28:17 1996  Ulrich Drepper  <drepper@cygnus.com>
335         * Makefile.in (install): Work around for another Buglix stupidity.
336         Always use an `else' close for `if's.  Reported by Nelson Beebe.
338         * Makefile.in (intlh.inst): Correct typo in phony rule.
339         Reported by Nelson Beebe.
341 Thu Jun  6 01:49:52 1996  Ulrich Drepper  <drepper@cygnus.com>
343         * dcgettext.c (read_alias_file): Rename variable alloca_list to
344         block_list as the macro calls assume.
345         Patch by Eric Backus.
347         * localealias.c [!HAVE_ALLOCA]: Define alloca as macro using
348         malloc.
349         (read_alias_file): Rename varriabe alloca_list to block_list as the
350         macro calls assume.
351         Patch by Eric Backus.
353         * l10nflist.c: Correct conditional for <argz.h> inclusion.
354         Reported by Roland McGrath.
356         * Makefile.in (all): Depend on all-@USE_INCLUDED_LIBINTL@, not
357         all-@USE_NLS@.
359         * Makefile.in (install): intlh.inst comes from local dir, not
360         $(srcdir).
362         * Makefile.in (intlh.inst): Special handling of this goal.  If
363         used in gettext, this is really a rul to construct this file.  If
364         used in any other package it is defined as a .PHONY rule with
365         empty body.
367         * finddomain.c: Extract locale file information handling into
368         l10nfile.c.  Rename local stpcpy__ function to stpcpy.
370         * dcgettext.c (stpcpy): Add local definition.
372         * l10nflist.c: Solve some portability problems.  Patches partly by
373         Thomas Esken.  Add local definition of stpcpy.
375 Tue Jun  4 02:47:49 1996  Ulrich Drepper  <drepper@cygnus.com>
377         * intlh.inst.in: Don't depend including <locale.h> on
378         HAVE_LOCALE_H.  Instead configure must rewrite this fiile
379         depending on the result of the configure run.
381         * Makefile.in (install): libintl.inst is now called intlh.inst.
382         Add rules for updating intlh.inst from intlh.inst.in.
384         * libintl.inst: Renamed to intlh.inst.in.
386         * localealias.c, dcgettext.c [__GNUC__]: Define HAVE_ALLOCA to 1
387         because gcc has __buitlin_alloca.
388         Reported by Roland McGrath.
390 Mon Jun  3 00:32:16 1996  Ulrich Drepper  <drepper@cygnus.com>
392         * Makefile.in (installcheck): New goal to fulfill needs of
393         automake's distcheck.
395         * Makefile.in (install): Reorder commands so that VERSION is
396         found.
398         * Makefile.in (gettextsrcdir): Now use subdirectory intl/ in
399         @datadir@/gettext.
400         (COMSRCS): Add l10nfile.c.
401         (OBJECTS): Add l10nfile.o.
402         (DISTFILES): Rename to DISTFILE.normal.  Remove $(DISTFILES.common).
403         (DISTFILE.gettext): Remove $(DISTFILES.common).
404         (all-gettext): Remove goal.
405         (install): If $(PACKAGE) = gettext install, otherwose do nothing.  No
406         package but gettext itself should install libintl.h + headers.
407         (dist): Extend goal to work for gettext, too.
408         (dist-gettext): Remove goal.
410         * dcgettext.c [!HAVE_ALLOCA]: Define macro alloca by using malloc.
412 Sun Jun  2 17:33:06 1996  Ulrich Drepper  <drepper@cygnus.com>
414         * loadmsgcat.c (_nl_load_domain): Parameter is now comes from
415         find_l10nfile.
417 Sat Jun  1 02:23:03 1996  Ulrich Drepper  <drepper@cygnus.com>
419         * l10nflist.c (__argz_next): Add definition.
421         * dcgettext.c [!HAVE_ALLOCA]: Add code for handling missing alloca
422         code.  Use new l10nfile handling.
424         * localealias.c [!HAVE_ALLOCA]: Add code for handling missing
425         alloca code.
427         * l10nflist.c: Initial revision.
429 Tue Apr  2 18:51:18 1996  Ulrich Drepper  <drepper@myware>
431         * Makefile.in (all-gettext): New goal.  Same as all-yes.
433 Thu Mar 28 23:01:22 1996  Karl Eichwalder  <ke@ke.central.de>
435         * Makefile.in (gettextsrcdir): Define using @datadir@.
437 Tue Mar 26 12:39:14 1996  Ulrich Drepper  <drepper@myware>
439         * finddomain.c: Include <ctype.h>.  Reported by Roland McGrath.
441 Sat Mar 23 02:00:35 1996  Ulrich Drepper  <drepper@myware>
443         * finddomain.c (stpcpy): Rename to stpcpy__ to prevent clashing
444         with external declaration.
446 Sat Mar  2 00:47:09 1996  Ulrich Drepper  <drepper@myware>
448         * Makefile.in (all-no): Rename from all_no.
450 Sat Feb 17 00:25:59 1996  Ulrich Drepper  <drepper@myware>
452         * gettextP.h [loaded_domain]: Array `successor' must now contain up
453         to 63 elements (because of codeset name normalization).
455         * finddomain.c: Implement codeset name normalization.
457 Thu Feb 15 04:39:09 1996  Ulrich Drepper  <drepper@myware>
459         * Makefile.in (all): Define to `all-@USE_NLS@'.
460         (all-yes, all_no): New goals.  `all-no' is noop, `all-yes'
461         is former all.
463 Mon Jan 15 21:46:01 1996  Howard Gayle  <howard@hal.com>
465         * localealias.c (alias_compare): Increment string pointers in loop
466         of strcasecmp replacement.
468 Fri Dec 29 21:16:34 1995  Ulrich Drepper  <drepper@myware>
470         * Makefile.in (install-src): Who commented this goal out ? :-)
472 Fri Dec 29 15:08:16 1995  Ulrich Drepper  <drepper@myware>
474         * dcgettext.c (DCGETTEXT): Save `errno'.  Failing system calls
475         should not effect it because a missing catalog is no error.
476         Reported by Harald K<o:>nig <koenig@tat.physik.uni-tuebingen.de>.
478 Tue Dec 19 22:09:13 1995  Ulrich Drepper  <drepper@myware>
480         * Makefile.in (Makefile): Explicitly use $(SHELL) for running
481         shell scripts.
483 Fri Dec 15 17:34:59 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
485         * Makefile.in (install-src): Only install library and header when
486         we use the own implementation.  Don't do it when using the
487         system's gettext or catgets functions.
489         * dcgettext.c (find_msg): Must not swap domain->hash_size here.
491 Sat Dec  9 16:24:37 1995  Ulrich Drepper  <drepper@myware>
493         * localealias.c, libintl.inst, libgettext.h, hash-string.h,
494         gettextP.h, finddomain.c, dcgettext.c, cat-compat.c:
495         Use PARAMS instead of __P.  Suggested by Roland McGrath.
497 Tue Dec  5 11:39:14 1995  Larry Schwimmer  <rosebud@cyclone.stanford.edu>
499         * libgettext.h: Use `#if !defined (_LIBINTL_H)' instead of `#if
500         !_LIBINTL_H' because Solaris defines _LIBINTL_H as empty.
502 Mon Dec  4 15:42:07 1995  Ulrich Drepper  <drepper@myware>
504         * Makefile.in (install-src):
505         Install libintl.inst instead of libintl.h.install.
507 Sat Dec  2 22:51:38 1995  Marcus Daniels  <marcus@sysc.pdx.edu>
509         * cat-compat.c (textdomain):
510         Reverse order in which files are tried you load.  First
511         try local file, when this failed absolute path.
513 Wed Nov 29 02:03:53 1995  Nelson H. F. Beebe  <beebe@math.utah.edu>
515         * cat-compat.c (bindtextdomain): Add missing { }.
517 Sun Nov 26 18:21:41 1995  Ulrich Drepper  <drepper@myware>
519         * libintl.inst: Add missing __P definition.  Reported by Nelson Beebe.
521         * Makefile.in:
522         Add dummy `all' and `dvi' goals.  Reported by Tom Tromey.
524 Sat Nov 25 16:12:01 1995  Franc,ois Pinard  <pinard@iro.umontreal.ca>
526         * hash-string.h: Capitalize arguments of macros.
528 Sat Nov 25 12:01:36 1995  Ulrich Drepper  <drepper@myware>
530         * Makefile.in (DISTFILES): Prevent files names longer than 13
531         characters.  libintl.h.glibc->libintl.glibc,
532         libintl.h.install->libintl.inst.  Reported by Joshua R. Poulson.
534 Sat Nov 25 11:31:12 1995  Eric Backus  <ericb@lsid.hp.com>
536         * dcgettext.c: Fix bug in preprocessor conditionals.
538 Sat Nov 25 02:35:27 1995  Nelson H. F. Beebe  <beebe@math.utah.edu>
540         * libgettext.h: Solaris cc does not understand
541          #if !SYMBOL1 && !SYMBOL2.  Sad but true.
543 Thu Nov 23 16:22:14 1995  Ulrich Drepper  <drepper@myware>
545         * hash-string.h (hash_string):
546         Fix for machine with >32 bit `unsigned long's.
548         * dcgettext.c (DCGETTEXT):
549         Fix horrible bug in loop for alternative translation.
551 Thu Nov 23 01:45:29 1995  Ulrich Drepper  <drepper@myware>
553         * po2tbl.sed.in, linux-msg.sed, xopen-msg.sed:
554         Some further simplifications in message number generation.
556 Mon Nov 20 21:08:43 1995  Ulrich Drepper  <drepper@myware>
558         * libintl.h.glibc: Use __const instead of const in prototypes.
560         * Makefile.in (install-src):
561         Install libintl.h.install instead of libintl.h.  This
562         is a stripped-down version.  Suggested by Peter Miller.
564         * libintl.h.install, libintl.h.glibc: Initial revision.
566         * localealias.c (_nl_expand_alias, read_alias_file):
567         Protect prototypes in type casts by __P.
569 Tue Nov 14 16:43:58 1995  Ulrich Drepper  <drepper@myware>
571         * hash-string.h: Correct prototype for hash_string.
573 Sun Nov 12 12:42:30 1995  Ulrich Drepper  <drepper@myware>
575         * hash-string.h (hash_string): Add prototype.
577         * gettextP.h: Fix copyright.
578         (SWAP): Add prototype.
580 Wed Nov  8 22:56:33 1995  Ulrich Drepper  <drepper@myware>
582         * localealias.c (read_alias_file): Forgot sizeof.
583         Avoid calling *printf function.  This introduces a big overhead.
584         Patch by Roland McGrath.
586 Tue Nov  7 14:21:08 1995  Ulrich Drepper  <drepper@myware>
588         * finddomain.c, cat-compat.c: Wrong indentation in #if for stpcpy.
590         * finddomain.c (stpcpy):
591         Define substitution function local.  The macro was to flaky.
593         * cat-compat.c: Fix typo.
595         * xopen-msg.sed, linux-msg.sed:
596         While bringing message number to right place only accept digits.
598         * linux-msg.sed, xopen-msg.sed: Now that the counter does not have
599         leading 0s we don't need to remove them.  Reported by Marcus
600         Daniels.
602         * Makefile.in (../po/cat-id-tbl.o): Use $(top_srdir) in
603         dependency.  Reported by Marcus Daniels.
605         * cat-compat.c: (stpcpy) [!_LIBC && !HAVE_STPCPY]: Define replacement.
606         Generally cleanup using #if instead of #ifndef.
608         * Makefile.in: Correct typos in comment.  By Franc,ois Pinard.
610 Mon Nov  6 00:27:02 1995  Ulrich Drepper  <drepper@myware>
612         * Makefile.in (install-src): Don't install libintl.h and libintl.a
613         if we use an available gettext implementation.
615 Sun Nov  5 22:02:08 1995  Ulrich Drepper  <drepper@myware>
617         * libgettext.h: Fix typo: HAVE_CATGETTS -> HAVE_CATGETS.  Reported
618         by Franc,ois Pinard.
620         * libgettext.h: Use #if instead of #ifdef/#ifndef.
622         * finddomain.c:
623         Comments describing what has to be done should start with FIXME.
625 Sun Nov  5 19:38:01 1995  Ulrich Drepper  <drepper@myware>
627         * Makefile.in (DISTFILES): Split.  Use DISTFILES with normal meaning.
628         DISTFILES.common names the files common to both dist goals.
629         DISTFILES.gettext are the files only distributed in GNU gettext.
631 Sun Nov  5 17:32:54 1995  Ulrich Drepper  <drepper@myware>
633         * dcgettext.c (DCGETTEXT): Correct searching in derived locales.
634         This was necessary since a change in _nl_find_msg several weeks
635         ago.  I really don't know this is still not fixed.
637 Sun Nov  5 12:43:12 1995  Ulrich Drepper  <drepper@myware>
639         * loadmsgcat.c (_nl_load_domain): Test for FILENAME == NULL.  This
640         might mark a special condition.
642         * finddomain.c (make_entry_rec): Don't make illegal entry as decided.
644         * Makefile.in (dist): Suppress error message when ln failed.
645         Get files from $(srcdir) explicitly.
647         * libgettext.h (gettext_const): Rename to gettext_noop.
649 Fri Nov  3 07:36:50 1995  Ulrich Drepper  <drepper@myware>
651         * finddomain.c (make_entry_rec):
652         Protect against wrong locale names by testing mask.
654         * libgettext.h (gettext_const): Add macro definition.
655         Capitalize macro arguments.
657 Thu Nov  2 23:15:51 1995  Ulrich Drepper  <drepper@myware>
659         * finddomain.c (_nl_find_domain):
660         Test for pointer != NULL before accessing value.
661         Reported by Tom Tromey.
663         * gettext.c (NULL):
664         Define as (void*)0 instad of 0.  Reported by Franc,ois Pinard.
666 Mon Oct 30 21:28:52 1995  Ulrich Drepper  <drepper@myware>
668         * po2tbl.sed.in: Serious typo bug fixed by Jim Meyering.
670 Sat Oct 28 23:20:47 1995  Ulrich Drepper  <drepper@myware>
672         * libgettext.h: Disable dcgettext optimization for Solaris 2.3.
674         * localealias.c (alias_compare):
675         Peter Miller reported that tolower in some systems is
676         even dumber than I thought.  Protect call by `isupper'.
678 Fri Oct 27 22:22:51 1995  Ulrich Drepper  <drepper@myware>
680         * Makefile.in (libdir, includedir): New variables.
681         (install-src): Install libintl.a and libintl.h in correct dirs.
683 Fri Oct 27 22:07:29 1995  Ulrich Drepper  <drepper@myware>
685         * Makefile.in (SOURCES): Fix typo: intrl.compat.c -> intl-compat.c.
687         * po2tbl.sed.in: Patch for buggy SEDs by Christian von Roques.
689         * localealias.c:
690         Fix typo and superflous test.  Reported by Christian von Roques.
692 Fri Oct  6 11:52:05 1995  Ulrich Drepper  <drepper@myware>
694         * finddomain.c (_nl_find_domain):
695         Correct some remainder from the pre-CEN syntax.  Now
696         we don't have a constant number of successors anymore.
698 Wed Sep 27 21:41:13 1995  Ulrich Drepper  <drepper@myware>
700         * Makefile.in (DISTFILES): Add libintl.h.glibc.
702         * Makefile.in (dist-libc): Add goal for packing sources for glibc.
703         (COMSRCS, COMHDRS): Splitted to separate sources shared with glibc.
705         * loadmsgcat.c: Forget to continue #if line.
707         * localealias.c:
708         [_LIBC]: Rename strcasecmp to __strcasecmp to keep ANSI C name
709         space clean.
711         * dcgettext.c, finddomain.c: Better comment to last change.
713         * loadmsgcat.c:
714         [_LIBC]: Rename fstat, open, close, read, mmap, and munmap to
715         __fstat, __open, __close, __read, __mmap, and __munmap resp
716         to keep ANSI C name space clean.
718         * finddomain.c:
719         [_LIBC]: Rename stpcpy to __stpcpy to keep ANSI C name space clean.
721         * dcgettext.c:
722         [_LIBC]: Rename getced and stpcpy to __getcwd and __stpcpy resp to
723         keep ANSI C name space clean.
725         * libgettext.h:
726         Include sys/types.h for those old SysV systems out there.
727         Reported by Francesco Potorti`.
729         * loadmsgcat.c (use_mmap): Define if compiled for glibc.
731         * bindtextdom.c: Include all those standard headers
732         unconditionally if _LIBC is defined.
734         * finddomain.c: Fix 2 times defiend -> defined.
736         * textdomain.c: Include libintl.h instead of libgettext.h when
737         compiling for glibc.  Include all those standard headers
738         unconditionally if _LIBC is defined.
740         * localealias.c, loadmsgcat.c: Prepare to be compiled in glibc.
742         * gettext.c:
743         Include libintl.h instead of libgettext.h when compiling for glibc.
744         Get NULL from stddef.h if we compile for glibc.
746         * finddomain.c: Include libintl.h instead of libgettext.h when
747         compiling for glibc.  Include all those standard headers
748         unconditionally if _LIBC is defined.
750         * dcgettext.c: Include all those standard headers unconditionally
751         if _LIBC is defined.
753         * dgettext.c: If compiled in glibc include libintl.h instead of
754         libgettext.h.
755         (locale.h): Don't rely on HAVE_LOCALE_H when compiling for glibc.
757         * dcgettext.c: If compiled in glibc include libintl.h instead of
758         libgettext.h.
759         (getcwd): Don't rely on HAVE_GETCWD when compiling for glibc.
761         * bindtextdom.c:
762         If compiled in glibc include libintl.h instead of libgettext.h.
764 Mon Sep 25 22:23:06 1995  Ulrich Drepper  <drepper@myware>
766         * localealias.c (_nl_expand_alias): Don't call bsearch if NMAP <= 0.
767         Reported by Marcus Daniels.
769         * cat-compat.c (bindtextdomain):
770         String used in putenv must not be recycled.
771         Reported by Marcus Daniels.
773         * libgettext.h (__USE_GNU_GETTEXT):
774         Additional symbol to signal that we use GNU gettext
775         library.
777         * cat-compat.c (bindtextdomain):
778         Fix bug with the strange stpcpy replacement.
779         Reported by Nelson Beebe.
781 Sat Sep 23 08:23:51 1995  Ulrich Drepper  <drepper@myware>
783         * cat-compat.c: Include <string.h> for stpcpy prototype.
785         * localealias.c (read_alias_file):
786         While expand strdup code temporary variable `cp' hided
787         higher level variable with same name.  Rename to `tp'.
789         * textdomain.c (textdomain):
790         Avoid warning by using temporary variable in strdup code.
792         * finddomain.c (_nl_find_domain): Remove unused variable `application'.
794 Thu Sep 21 15:51:44 1995  Ulrich Drepper  <drepper@myware>
796         * localealias.c (alias_compare):
797         Use strcasecmp() only if available.  Else use
798         implementation in place.
800         * intl-compat.c:
801         Wrapper functions now call *__ functions instead of __*.
803         * libgettext.h: Declare prototypes for *__ functions instead for __*.
805         * cat-compat.c, loadmsgcat.c:
806         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
807         of the standard libc and so prevent libintl.a from being used
808         standalone.
810         * bindtextdom.c:
811         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
812         of the standard libc and so prevent libintl.a from being used
813         standalone.
814         Rename to bindtextdomain__ if not used in GNU C Library.
816         * dgettext.c:
817         Rename function to dgettext__ if not used in GNU C Library.
819         * gettext.c:
820         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
821         of the standard libc and so prevent libintl.a from being used
822         standalone.
823         Functions now called gettext__ if not used in GNU C Library.
825         * dcgettext.c, localealias.c, textdomain.c, finddomain.c:
826         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
827         of the standard libc and so prevent libintl.a from being used
828         standalone.
830 Sun Sep 17 23:14:49 1995  Ulrich Drepper  <drepper@myware>
832         * finddomain.c: Correct some bugs in handling of CEN standard
833         locale definitions.
835 Thu Sep  7 01:49:28 1995  Ulrich Drepper  <drepper@myware>
837         * finddomain.c: Implement CEN syntax.
839         * gettextP.h (loaded_domain): Extend number of successors to 31.
841 Sat Aug 19 19:25:29 1995  Ulrich Drepper  <drepper@myware>
843         * Makefile.in (aliaspath): Remove path to X11 locale dir.
845         * Makefile.in: Make install-src depend on install.  This helps
846         gettext to install the sources and other packages can use the
847         install goal.
849 Sat Aug 19 15:19:33 1995  Ulrich Drepper  <drepper@myware>
851         * Makefile.in (uninstall): Remove stuff installed by install-src.
853 Tue Aug 15 13:13:53 1995  Ulrich Drepper  <drepper@myware>
855         * VERSION.in: Initial revision.
857         * Makefile.in (DISTFILES):
858         Add VERSION file.  This is not necessary for gettext, but
859         for other packages using this library.
861 Tue Aug 15 06:16:44 1995  Ulrich Drepper  <drepper@myware>
863         * gettextP.h (_nl_find_domain):
864         New prototype after changing search strategy.
866         * finddomain.c (_nl_find_domain):
867         We now try only to find a specified catalog.  Fall back to other
868         catalogs listed in the locale list is now done in __dcgettext.
870         * dcgettext.c (__dcgettext):
871         Now we provide message fall back even to different languages.
872         I.e. if a message is not available in one language all the other
873         in the locale list a tried.  Formerly fall back was only possible
874         within one language.  Implemented by moving one loop from
875         _nl_find_domain to here.
877 Mon Aug 14 23:45:50 1995  Ulrich Drepper  <drepper@myware>
879         * Makefile.in (gettextsrcdir):
880         Directory where source of GNU gettext library are made
881         available.
882         (INSTALL, INSTALL_DATA): Programs used for installing sources.
883         (gettext-src): New.  Rule to install GNU gettext sources for use in
884         gettextize shell script.
886 Sun Aug 13 14:40:48 1995  Ulrich Drepper  <drepper@myware>
888         * loadmsgcat.c (_nl_load_domain):
889         Use mmap for loading only when munmap function is
890         also available.
892         * Makefile.in (install): Depend on `all' goal.
894 Wed Aug  9 11:04:33 1995  Ulrich Drepper  <drepper@myware>
896         * localealias.c (read_alias_file):
897         Do not overwrite '\n' when terminating alias value string.
899         * localealias.c (read_alias_file):
900         Handle long lines.  Ignore the rest not fitting in
901         the buffer after the initial `fgets' call.
903 Wed Aug  9 00:54:29 1995  Ulrich Drepper  <drepper@myware>
905         * gettextP.h (_nl_load_domain):
906         Add prototype, replacing prototype for _nl_load_msg_cat.
908         * finddomain.c (_nl_find_domain):
909         Remove unneeded variable filename and filename_len.
910         (expand_alias): Remove prototype because functions does not
911         exist anymore.
913         * localealias.c (read_alias_file):
914         Change type of fname_len parameter to int.
915         (xmalloc): Add prototype.
917         * loadmsgcat.c: Better prototypes for xmalloc.
919 Tue Aug  8 22:30:39 1995  Ulrich Drepper  <drepper@myware>
921         * finddomain.c (_nl_find_domain):
922         Allow alias name to be constructed from the four components.
924         * Makefile.in (aliaspath): New variable.  Set to preliminary value.
925         (SOURCES): Add localealias.c.
926         (OBJECTS): Add localealias.o.
928         * gettextP.h: Add prototype for _nl_expand_alias.
930         * finddomain.c: Aliasing handled in intl/localealias.c.
932         * localealias.c: Aliasing for locale names.
934         * bindtextdom.c: Better prototypes for xmalloc and xstrdup.
936 Mon Aug  7 23:47:42 1995  Ulrich Drepper  <drepper@myware>
938         * Makefile.in (DISTFILES): gettext.perl is now found in misc/.
940         * cat-compat.c (bindtextdomain):
941         Correct implementation.  dirname parameter was not used.
942         Reported by Marcus Daniels.
944         * gettextP.h (loaded_domain):
945         New fields `successor' and `decided' for oo, lazy
946         message handling implementation.
948         * dcgettext.c:
949         Adopt for oo, lazy message handliing.
950         Now we can inherit translations from less specific locales.
951         (find_msg): New function.
953         * loadmsgcat.c, finddomain.c:
954         Complete rewrite.  Implement oo, lazy message handling :-).
955         We now have an additional environment variable `LANGUAGE' with
956         a higher priority than LC_ALL for the LC_MESSAGE locale.
957         Here we can set a colon separated list of specifications each
958         of the form `language[_territory[.codeset]][@modifier]'.
960 Sat Aug  5 09:55:42 1995  Ulrich Drepper  <drepper@myware>
962         * finddomain.c (unistd.h):
963         Include to get _PC_PATH_MAX defined on system having it.
965 Fri Aug  4 22:42:00 1995  Ulrich Drepper  <drepper@myware>
967         * finddomain.c (stpcpy): Include prototype.
969         * Makefile.in (dist): Remove `copying instead' message.
971 Wed Aug  2 18:52:03 1995  Ulrich Drepper  <drepper@myware>
973         * Makefile.in (ID, TAGS): Do not use $^.
975 Tue Aug  1 20:07:11 1995  Ulrich Drepper  <drepper@myware>
977         * Makefile.in (TAGS, ID): Use $^ as command argument.
978         (TAGS): Give etags -o option t write to current directory,
979         not $(srcdir).
980         (ID): Use $(srcdir) instead os $(top_srcdir)/src.
981         (distclean): Remove ID.
983 Sun Jul 30 11:51:46 1995  Ulrich Drepper  <drepper@myware>
985         * Makefile.in (gnulocaledir):
986         New variable, always using share/ for data directory.
987         (DEFS): Add GNULOCALEDIR, used in finddomain.c.
989         * finddomain.c (_nl_default_dirname):
990         Set to GNULOCALEDIR, because it always has to point
991         to the directory where GNU gettext Library writes it to.
993         * intl-compat.c (textdomain, bindtextdomain):
994         Undefine macros before function definition.
996 Sat Jul 22 01:10:02 1995  Ulrich Drepper  <drepper@myware>
998         * libgettext.h (_LIBINTL_H):
999         Protect definition in case where this file is included as
1000         libgettext.h on Solaris machines.  Add comment about this.
1002 Wed Jul 19 02:36:42 1995  Ulrich Drepper  <drepper@myware>
1004         * intl-compat.c (textdomain): Correct typo.
1006 Wed Jul 19 01:51:35 1995  Ulrich Drepper  <drepper@myware>
1008         * dcgettext.c (dcgettext): Function now called __dcgettext.
1010         * dgettext.c (dgettext): Now called __dgettext and calls
1011         __dcgettext.
1013         * gettext.c (gettext):
1014         Function now called __gettext and calls __dgettext.
1016         * textdomain.c (textdomain): Function now called __textdomain.
1018         * bindtextdom.c (bindtextdomain): Function now called
1019         __bindtextdomain.
1021         * intl-compat.c: Initial revision.
1023         * Makefile.in (SOURCES): Add intl-compat.c.
1024         (OBJECTS): We always compile the GNU gettext library functions.
1025         OBJECTS contains all objects but cat-compat.o, ../po/cat-if-tbl.o,
1026         and intl-compat.o.
1027         (GETTOBJS): Contains now only intl-compat.o.
1029         * libgettext.h:
1030         Re-include protection matches dualistic character of libgettext.h.
1031         For all functions in GNU gettext library define __ counter part.
1033         * finddomain.c (strchr): Define as index if not found in C library.
1034         (_nl_find_domain): For relative paths paste / in between.
1036 Tue Jul 18 16:37:45 1995  Ulrich Drepper  <drepper@myware>
1038         * loadmsgcat.c, finddomain.c: Add inclusion of sys/types.h.
1040         * xopen-msg.sed: Fix bug with `msgstr ""' lines.
1041         A little bit better comments.
1043 Tue Jul 18 01:18:27 1995  Ulrich Drepper  <drepper@myware>
1045         * Makefile.in:
1046         po-mode.el, makelinks, combine-sh are now found in ../misc.
1048         * po-mode.el, makelinks, combine-sh, elisp-comp:
1049         Moved to ../misc/.
1051         * libgettext.h, gettextP.h, gettext.h: Uniform test for __STDC__.
1053 Sun Jul 16 22:33:02 1995  Ulrich Drepper  <drepper@myware>
1055         * Makefile.in (INSTALL, INSTALL_DATA): New variables.
1056         (install-data, uninstall): Install/uninstall .elc file.
1058         * po-mode.el (Installation comment):
1059         Add .pox as possible extension of .po files.
1061 Sun Jul 16 13:23:27 1995  Ulrich Drepper  <drepper@myware>
1063         * elisp-comp: Complete new version by Franc,ois: This does not
1064         fail when not compiling in the source directory.
1066 Sun Jul 16 00:12:17 1995  Ulrich Drepper  <drepper@myware>
1068         * Makefile.in (../po/cat-id-tbl.o):
1069         Use $(MAKE) instead of make for recursive make.
1071         * Makefile.in (.el.elc): Use $(SHELL) instead of /bin/sh.
1072         (install-exec): Add missing dummy goal.
1073         (install-data, uninstall): @ in multi-line shell command at
1074         beginning, not in front of echo.  Reported by Eric Backus.
1076 Sat Jul 15 00:21:28 1995  Ulrich Drepper  <drepper@myware>
1078         * Makefile.in (DISTFILES):
1079         Rename libgettext.perl to gettext.perl to fit in 14 chars
1080         file systems.
1082         * gettext.perl:
1083         Rename to gettext.perl to fit in 14 chars file systems.
1085 Thu Jul 13 23:17:20 1995  Ulrich Drepper  <drepper@myware>
1087         * cat-compat.c: If !STDC_HEADERS try to include malloc.h.
1089 Thu Jul 13 20:55:02 1995  Ulrich Drepper  <drepper@myware>
1091         * po2tbl.sed.in: Pretty printing.
1093         * linux-msg.sed, xopen-msg.sed:
1094         Correct bugs with handling substitute flags in branches.
1096         * hash-string.h (hash_string):
1097         Old K&R compilers don't under stand `unsigned char'.
1099         * gettext.h (nls_uint32):
1100         Some old K&R compilers (eg HP) don't understand `unsigned int'.
1102         * cat-compat.c (msg_to_cat_id): De-ANSI-fy prototypes.
1104 Thu Jul 13 01:34:33 1995  Ulrich Drepper  <drepper@myware>
1106         * Makefile.in (ELCFILES): New variable.
1107         (DISTFILES): Add elisp-comp.
1108         Add implicit rule for .el -> .elc compilation.
1109         (install-data): install $ELCFILES
1110         (clean): renamed po-to-tbl and po-to-msg to po2tbl and po2msg resp.
1112         * elisp-comp: Initial revision
1114 Wed Jul 12 16:14:52 1995  Ulrich Drepper  <drepper@myware>
1116         * Makefile.in:
1117         cat-id-tbl.c is now found in po/.  This enables us to use an identical
1118         intl/ directory in all packages.
1120         * dcgettext.c (dcgettext): hashing does not work for table size <= 2.
1122         * textdomain.c: fix typo (#if def -> #if defined)
1124 Tue Jul 11 18:44:43 1995  Ulrich Drepper  <drepper@myware>
1126         * Makefile.in (stamp-cat-id): use top_srcdir to address source files
1127         (DISTFILES,distclean): move tupdate.perl to src/
1129         * po-to-tbl.sed.in:
1130         add additional jump to clear change flag to recognize multiline strings
1132 Tue Jul 11 01:32:50 1995  Ulrich Drepper  <drepper@myware>
1134         * textdomain.c: Protect inclusion of stdlib.h and string.h.
1136         * loadmsgcat.c: Protect inclusion of stdlib.h.
1138         * libgettext.h: Protect inclusion of locale.h.
1139         Allow use in C++ programs.
1140         Define NULL is not happened already.
1142         * Makefile.in (DISTFILES): ship po-to-tbl.sed.in instead of
1143         po-to-tbl.sed.
1144         (distclean): remove po-to-tbl.sed and tupdate.perl.
1146         * tupdate.perl.in: Substitute Perl path even in exec line.
1147         Don't include entries without translation from old .po file.
1149 Tue Jul  4 00:41:51 1995  Ulrich Drepper  <drepper@myware>
1151         * tupdate.perl.in: use "Updated: " in msgid "".
1153         * cat-compat.c: Fix typo (LOCALDIR -> LOCALEDIR).
1154         Define getenv if !__STDC__.
1156         * bindtextdom.c: Protect stdlib.h and string.h inclusion.
1157         Define free if !__STDC__.
1159         * finddomain.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
1160         Define free if !__STDC__.
1162         * cat-compat.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
1164 Mon Jul  3 23:56:30 1995  Ulrich Drepper  <drepper@myware>
1166         * Makefile.in: Use LOCALEDIR instead of DEF_MSG_DOM_DIR.
1167         Remove unneeded $(srcdir) from Makefile.in dependency.
1169         * makelinks: Add copyright and short description.
1171         * po-mode.el: Last version for 0.7.
1173         * tupdate.perl.in: Fix die message.
1175         * dcgettext.c: Protect include of string.h.
1177         * gettext.c: Protect include of stdlib.h and further tries to get NULL.
1179         * finddomain.c: Some corrections in includes.
1181         * Makefile.in (INCLUDES): Prune list correct path to Makefile.in.
1183         * po-to-tbl.sed: Adopt for new .po file format.
1185         * linux-msg.sed, xopen-msg.sed: Adopt for new .po file format.
1187 Sun Jul  2 23:55:03 1995  Ulrich Drepper  <drepper@myware>
1189         * tupdate.perl.in: Complete rewrite for new .po file format.
1191 Sun Jul  2 02:06:50 1995  Ulrich Drepper  <drepper@myware>
1193         * First official release.  This directory contains all the code
1194         needed to internationalize own packages.  It provides functions
1195         which allow to use the X/Open catgets function with an interface
1196         like the Uniforum gettext function.  For system which does not
1197         have neither of those a complete implementation is provided.