* cppexp.c (parse_charconst): Null does not end character
[official-gcc.git] / gcc / intl / ChangeLog
blob198950159daa5b498c5571ca5f937ac218feb52d
1 1998-04-29  Ulrich Drepper  <drepper@cygnus.com>
3         * intl/localealias.c (read_alias_file): Use unsigned char for
4         local variables.  Remove unused variable tp.
5         * intl/l10nflist.c (_nl_normalize_codeset): Use unsigned char *
6         for type of codeset.  For loosing Solaris systems.
7         * intl/loadinfo.h: Adapt prototype of _nl_normalize_codeset.
8         * intl/bindtextdom.c (BINDTEXTDOMAIN): Don't define local variable
9         len if not needed.
10         Patches by Jim Meyering.
12 1998-04-28  Ulrich Drepper  <drepper@cygnus.com>
14         * loadmsgcat.c (_nl_load_domain): Don't assign the element use_mmap if
15         mmap is not supported.
17         * hash-string.h: Don't include <values.h>.
19 1998-04-27  Ulrich Drepper  <drepper@cygnus.com>
21         * textdomain.c: Use strdup is available.
23         * localealias.c: Define HAVE_MEMPCPY so that we can use this
24         function.  Define and use semapahores to protect modfication of
25         global objects when compiling for glibc.  Add code to allow
26         freeing alias table.
28         * l10nflist.c: Don't assume stpcpy not being a macro.
30         * gettextP.h: Define internal_function macri if not already done.
31         Use glibc byte-swap macros instead of defining SWAP when compiled
32         for glibc.
33         (struct loaded_domain): Add elements to allow unloading.
35         * Makefile.in (distclean): Don't remove libintl.h here.
37         * bindtextdomain.c: Carry over changes from glibc.  Use strdup if
38         available.
40         * dcgettext.c: Don't assume stpcpy not being a macro.  Mark internal
41         functions.  Add memory freeing code for glibc.
43         * dgettext.c: Update copyright.
45         * explodename.c: Include stdlib.h and string.h only if they exist.
46         Use strings.h eventually.
48         * finddomain.c: Mark internal functions.  Use strdup if available.
49         Add memory freeing code for glibc.
51 1997-10-10 20:00  Ulrich Drepper  <drepper@cygnus.com>
53         * libgettext.h: Fix dummy textdomain and bindtextdomain macros.
54         They should return reasonable values.
55         Reported by Tom Tromey <tromey@cygnus.com>.
57 1997-09-16 03:33  Ulrich Drepper  <drepper@cygnus.com>
59         * libgettext.h: Define PARAMS also to `args' if __cplusplus is defined.
60         * intlh.inst.in: Likewise.
61         Reported by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>.
63         * libintl.glibc: Update from current glibc version.
65 1997-09-06 02:10  Ulrich Drepper  <drepper@cygnus.com>
67         * intlh.inst.in: Reformat copyright.
69 1997-08-19 15:22  Ulrich Drepper  <drepper@cygnus.com>
71         * dcgettext.c (DCGETTEXT): Remove wrong comment.
73 1997-08-16 00:13  Ulrich Drepper  <drepper@cygnus.com>
75         * Makefile.in (install-data): Don't change directory to install.
77 1997-08-01 14:30  Ulrich Drepper  <drepper@cygnus.com>
79         * cat-compat.c: Fix copyright.
81         * localealias.c: Don't define strchr unless !HAVE_STRCHR.
83         * loadmsgcat.c: Update copyright.  Fix typos.
85         * l10nflist.c: Don't define strchr unless !HAVE_STRCHR.
86         (_nl_make_l10nflist): Handle sponsor and revision correctly.
88         * gettext.c: Update copyright.
89         * gettext.h: Likewise.
90         * hash-string.h: Likewise.
92         * finddomain.c: Remoave dead code.  Define strchr only if
93         !HAVE_STRCHR.
95         * explodename.c: Include <sys/types.h>.
97         * explodename.c: Reformat copyright text.
98         (_nl_explode_name): Fix typo.
100         * dcgettext.c: Define and use __set_errno.
101         (guess_category_value): Don't use setlocale if HAVE_LC_MESSAGES is
102         not defined.
104         * bindtextdom.c: Pretty printing.
106 1997-05-01 02:25  Ulrich Drepper  <drepper@cygnus.com>
108         * dcgettext.c (guess_category_value): Don't depend on
109         HAVE_LC_MESSAGES.  We don't need the macro here.
110         Patch by Bruno Haible <haible@ilog.fr>.
112         * cat-compat.c (textdomain): DoN't refer to HAVE_SETLOCALE_NULL
113         macro.  Instead use HAVE_LOCALE_NULL and define it when using
114         glibc, as in dcgettext.c.
115         Patch by Bruno Haible <haible@ilog.fr>.
117         * Makefile.in (CPPFLAGS): New variable.  Reported by Franc,ois
118         Pinard.
120 Mon Mar 10 06:51:17 1997  Ulrich Drepper  <drepper@cygnus.com>
122         * Makefile.in: Implement handling of libtool.
124         * gettextP.h: Change data structures for use of generic lowlevel
125         i18n file handling.
127 Wed Dec  4 20:21:18 1996  Ulrich Drepper  <drepper@cygnus.com>
129         * textdomain.c: Put parentheses around arguments of memcpy macro
130         definition.
131         * localealias.c: Likewise.
132         * l10nflist.c: Likewise.
133         * finddomain.c: Likewise.
134         * bindtextdom.c: Likewise.
135         Reported by Thomas Esken.
137 Mon Nov 25 22:57:51 1996  Ulrich Drepper  <drepper@cygnus.com>
139         * textdomain.c: Move definition of `memcpy` macro to right
140         position.
142 Fri Nov 22 04:01:58 1996  Ulrich Drepper  <drepper@cygnus.com>
144         * finddomain.c [!HAVE_STRING_H && !_LIBC]: Define memcpy using
145         bcopy if not already defined.  Reported by Thomas Esken.
146         * bindtextdom.c: Likewise.
147         * l10nflist.c: Likewise.
148         * localealias.c: Likewise.
149         * textdomain.c: Likewise.
151 Tue Oct 29 11:10:27 1996  Ulrich Drepper  <drepper@cygnus.com>
153         * Makefile.in (libdir): Change to use exec_prefix instead of
154         prefix.  Reported by Knut-HĂ„vardAksnes <etokna@eto.ericsson.se>.
156 Sat Aug 31 03:07:09 1996  Ulrich Drepper  <drepper@cygnus.com>
158         * l10nflist.c (_nl_normalize_codeset): We convert to lower case,
159         so don't prepend uppercase `ISO' for only numeric arg.
161 Fri Jul 19 00:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
163         * l10nflist.c: Move inclusion of argz.h, ctype.h, stdlib.h after
164         definition of _GNU_SOURCE.  Patch by Roland McGrath.
166         * Makefile.in (uninstall): Fix another bug with `for' loop and
167         empty arguments.  Patch by Jim Meyering.  Correct name os
168         uninstalled files: no intl- prefix anymore.
170         * Makefile.in (install-data): Again work around shells which
171         cannot handle mpty for list.  Reported by Jim Meyering.
173 Sat Jul 13 18:11:35 1996  Ulrich Drepper  <drepper@cygnus.com>
175         * Makefile.in (install): Split goal.  Now depend on install-exec
176         and install-data.
177         (install-exec, install-data): New goals.  Created from former
178         install goal.
179         Reported by Karl Berry.
181 Sat Jun 22 04:58:14 1996  Ulrich Drepper  <drepper@cygnus.com>
183         * Makefile.in (MKINSTALLDIRS): New variable.  Path to
184         mkinstalldirs script.
185         (install): use MKINSTALLDIRS variable or if the script is not present
186         try to find it in the $top_scrdir).
188 Wed Jun 19 02:56:56 1996  Ulrich Drepper  <drepper@cygnus.com>
190         * l10nflist.c: Linux libc *partly* includes the argz_* functions.
191         Grr.  Work around by renaming the static version and use macros
192         for renaming.
194 Tue Jun 18 20:11:17 1996  Ulrich Drepper  <drepper@cygnus.com>
196         * l10nflist.c: Correct presence test macros of __argz_* functions.
198         * l10nflist.c: Include <argz.h> based on test of it instead when
199         __argz_* functions are available.
200         Reported by Andreas Schwab.
202 Thu Jun 13 15:17:44 1996  Ulrich Drepper  <drepper@cygnus.com>
204         * explodename.c, l10nflist.c: Define NULL for dumb systems.
206 Tue Jun 11 17:05:13 1996  Ulrich Drepper  <drepper@cygnus.com>
208         * intlh.inst.in, libgettext.h (dcgettext): Rename local variable
209         result to __result to prevent name clash.
211         * l10nflist.c, localealias.c, dcgettext.c: Define _GNU_SOURCE to
212         get prototype for stpcpy and strcasecmp.
214         * intlh.inst.in, libgettext.h: Move declaration of
215         `_nl_msg_cat_cntr' outside __extension__ block to prevent warning
216         from gcc's -Wnested-extern option.
218 Fri Jun  7 01:58:00 1996  Ulrich Drepper  <drepper@cygnus.com>
220         * Makefile.in (install): Remove comment.
222 Thu Jun  6 17:28:17 1996  Ulrich Drepper  <drepper@cygnus.com>
224         * Makefile.in (install): Work around for another Buglix stupidity.
225         Always use an `else' close for `if's.  Reported by Nelson Beebe.
227         * Makefile.in (intlh.inst): Correct typo in phony rule.
228         Reported by Nelson Beebe.
230 Thu Jun  6 01:49:52 1996  Ulrich Drepper  <drepper@cygnus.com>
232         * dcgettext.c (read_alias_file): Rename variable alloca_list to
233         block_list as the macro calls assume.
234         Patch by Eric Backus.
236         * localealias.c [!HAVE_ALLOCA]: Define alloca as macro using
237         malloc.
238         (read_alias_file): Rename varriabe alloca_list to block_list as the
239         macro calls assume.
240         Patch by Eric Backus.
242         * l10nflist.c: Correct conditional for <argz.h> inclusion.
243         Reported by Roland McGrath.
245         * Makefile.in (all): Depend on all-@USE_INCLUDED_LIBINTL@, not
246         all-@USE_NLS@.
248         * Makefile.in (install): intlh.inst comes from local dir, not
249         $(srcdir).
251         * Makefile.in (intlh.inst): Special handling of this goal.  If
252         used in gettext, this is really a rul to construct this file.  If
253         used in any other package it is defined as a .PHONY rule with
254         empty body.
256         * finddomain.c: Extract locale file information handling into
257         l10nfile.c.  Rename local stpcpy__ function to stpcpy.
259         * dcgettext.c (stpcpy): Add local definition.
261         * l10nflist.c: Solve some portability problems.  Patches partly by
262         Thomas Esken.  Add local definition of stpcpy.
264 Tue Jun  4 02:47:49 1996  Ulrich Drepper  <drepper@cygnus.com>
266         * intlh.inst.in: Don't depend including <locale.h> on
267         HAVE_LOCALE_H.  Instead configure must rewrite this fiile
268         depending on the result of the configure run.
270         * Makefile.in (install): libintl.inst is now called intlh.inst.
271         Add rules for updating intlh.inst from intlh.inst.in.
273         * libintl.inst: Renamed to intlh.inst.in.
275         * localealias.c, dcgettext.c [__GNUC__]: Define HAVE_ALLOCA to 1
276         because gcc has __buitlin_alloca.
277         Reported by Roland McGrath.
279 Mon Jun  3 00:32:16 1996  Ulrich Drepper  <drepper@cygnus.com>
281         * Makefile.in (installcheck): New goal to fulfill needs of
282         automake's distcheck.
284         * Makefile.in (install): Reorder commands so that VERSION is
285         found.
287         * Makefile.in (gettextsrcdir): Now use subdirectory intl/ in
288         @datadir@/gettext.
289         (COMSRCS): Add l10nfile.c.
290         (OBJECTS): Add l10nfile.o.
291         (DISTFILES): Rename to DISTFILE.normal.  Remove $(DISTFILES.common).
292         (DISTFILE.gettext): Remove $(DISTFILES.common).
293         (all-gettext): Remove goal.
294         (install): If $(PACKAGE) = gettext install, otherwose do nothing.  No
295         package but gettext itself should install libintl.h + headers.
296         (dist): Extend goal to work for gettext, too.
297         (dist-gettext): Remove goal.
299         * dcgettext.c [!HAVE_ALLOCA]: Define macro alloca by using malloc.
301 Sun Jun  2 17:33:06 1996  Ulrich Drepper  <drepper@cygnus.com>
303         * loadmsgcat.c (_nl_load_domain): Parameter is now comes from
304         find_l10nfile.
306 Sat Jun  1 02:23:03 1996  Ulrich Drepper  <drepper@cygnus.com>
308         * l10nflist.c (__argz_next): Add definition.
310         * dcgettext.c [!HAVE_ALLOCA]: Add code for handling missing alloca
311         code.  Use new l10nfile handling.
313         * localealias.c [!HAVE_ALLOCA]: Add code for handling missing
314         alloca code.
316         * l10nflist.c: Initial revision.
318 Tue Apr  2 18:51:18 1996  Ulrich Drepper  <drepper@myware>
320         * Makefile.in (all-gettext): New goal.  Same as all-yes.
322 Thu Mar 28 23:01:22 1996  Karl Eichwalder  <ke@ke.central.de>
324         * Makefile.in (gettextsrcdir): Define using @datadir@.
326 Tue Mar 26 12:39:14 1996  Ulrich Drepper  <drepper@myware>
328         * finddomain.c: Include <ctype.h>.  Reported by Roland McGrath.
330 Sat Mar 23 02:00:35 1996  Ulrich Drepper  <drepper@myware>
332         * finddomain.c (stpcpy): Rename to stpcpy__ to prevent clashing
333         with external declaration.
335 Sat Mar  2 00:47:09 1996  Ulrich Drepper  <drepper@myware>
337         * Makefile.in (all-no): Rename from all_no.
339 Sat Feb 17 00:25:59 1996  Ulrich Drepper  <drepper@myware>
341         * gettextP.h [loaded_domain]: Array `successor' must now contain up
342         to 63 elements (because of codeset name normalization).
344         * finddomain.c: Implement codeset name normalization.
346 Thu Feb 15 04:39:09 1996  Ulrich Drepper  <drepper@myware>
348         * Makefile.in (all): Define to `all-@USE_NLS@'.
349         (all-yes, all_no): New goals.  `all-no' is noop, `all-yes'
350         is former all.
352 Mon Jan 15 21:46:01 1996  Howard Gayle  <howard@hal.com>
354         * localealias.c (alias_compare): Increment string pointers in loop
355         of strcasecmp replacement.
357 Fri Dec 29 21:16:34 1995  Ulrich Drepper  <drepper@myware>
359         * Makefile.in (install-src): Who commented this goal out ? :-)
361 Fri Dec 29 15:08:16 1995  Ulrich Drepper  <drepper@myware>
363         * dcgettext.c (DCGETTEXT): Save `errno'.  Failing system calls
364         should not effect it because a missing catalog is no error.
365         Reported by Harald K<o:>nig <koenig@tat.physik.uni-tuebingen.de>.
367 Tue Dec 19 22:09:13 1995  Ulrich Drepper  <drepper@myware>
369         * Makefile.in (Makefile): Explicitly use $(SHELL) for running
370         shell scripts.
372 Fri Dec 15 17:34:59 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
374         * Makefile.in (install-src): Only install library and header when
375         we use the own implementation.  Don't do it when using the
376         system's gettext or catgets functions.
378         * dcgettext.c (find_msg): Must not swap domain->hash_size here.
380 Sat Dec  9 16:24:37 1995  Ulrich Drepper  <drepper@myware>
382         * localealias.c, libintl.inst, libgettext.h, hash-string.h,
383         gettextP.h, finddomain.c, dcgettext.c, cat-compat.c:
384         Use PARAMS instead of __P.  Suggested by Roland McGrath.
386 Tue Dec  5 11:39:14 1995  Larry Schwimmer  <rosebud@cyclone.stanford.edu>
388         * libgettext.h: Use `#if !defined (_LIBINTL_H)' instead of `#if
389         !_LIBINTL_H' because Solaris defines _LIBINTL_H as empty.
391 Mon Dec  4 15:42:07 1995  Ulrich Drepper  <drepper@myware>
393         * Makefile.in (install-src):
394         Install libintl.inst instead of libintl.h.install.
396 Sat Dec  2 22:51:38 1995  Marcus Daniels  <marcus@sysc.pdx.edu>
398         * cat-compat.c (textdomain):
399         Reverse order in which files are tried you load.  First
400         try local file, when this failed absolute path.
402 Wed Nov 29 02:03:53 1995  Nelson H. F. Beebe  <beebe@math.utah.edu>
404         * cat-compat.c (bindtextdomain): Add missing { }.
406 Sun Nov 26 18:21:41 1995  Ulrich Drepper  <drepper@myware>
408         * libintl.inst: Add missing __P definition.  Reported by Nelson Beebe.
410         * Makefile.in:
411         Add dummy `all' and `dvi' goals.  Reported by Tom Tromey.
413 Sat Nov 25 16:12:01 1995  Franc,ois Pinard  <pinard@iro.umontreal.ca>
415         * hash-string.h: Capitalize arguments of macros.
417 Sat Nov 25 12:01:36 1995  Ulrich Drepper  <drepper@myware>
419         * Makefile.in (DISTFILES): Prevent files names longer than 13
420         characters.  libintl.h.glibc->libintl.glibc,
421         libintl.h.install->libintl.inst.  Reported by Joshua R. Poulson.
423 Sat Nov 25 11:31:12 1995  Eric Backus  <ericb@lsid.hp.com>
425         * dcgettext.c: Fix bug in preprocessor conditionals.
427 Sat Nov 25 02:35:27 1995  Nelson H. F. Beebe  <beebe@math.utah.edu>
429         * libgettext.h: Solaris cc does not understand
430          #if !SYMBOL1 && !SYMBOL2.  Sad but true.
432 Thu Nov 23 16:22:14 1995  Ulrich Drepper  <drepper@myware>
434         * hash-string.h (hash_string):
435         Fix for machine with >32 bit `unsigned long's.
437         * dcgettext.c (DCGETTEXT):
438         Fix horrible bug in loop for alternative translation.
440 Thu Nov 23 01:45:29 1995  Ulrich Drepper  <drepper@myware>
442         * po2tbl.sed.in, linux-msg.sed, xopen-msg.sed:
443         Some further simplifications in message number generation.
445 Mon Nov 20 21:08:43 1995  Ulrich Drepper  <drepper@myware>
447         * libintl.h.glibc: Use __const instead of const in prototypes.
449         * Makefile.in (install-src):
450         Install libintl.h.install instead of libintl.h.  This
451         is a stripped-down version.  Suggested by Peter Miller.
453         * libintl.h.install, libintl.h.glibc: Initial revision.
455         * localealias.c (_nl_expand_alias, read_alias_file):
456         Protect prototypes in type casts by __P.
458 Tue Nov 14 16:43:58 1995  Ulrich Drepper  <drepper@myware>
460         * hash-string.h: Correct prototype for hash_string.
462 Sun Nov 12 12:42:30 1995  Ulrich Drepper  <drepper@myware>
464         * hash-string.h (hash_string): Add prototype.
466         * gettextP.h: Fix copyright.
467         (SWAP): Add prototype.
469 Wed Nov  8 22:56:33 1995  Ulrich Drepper  <drepper@myware>
471         * localealias.c (read_alias_file): Forgot sizeof.
472         Avoid calling *printf function.  This introduces a big overhead.
473         Patch by Roland McGrath.
475 Tue Nov  7 14:21:08 1995  Ulrich Drepper  <drepper@myware>
477         * finddomain.c, cat-compat.c: Wrong indentation in #if for stpcpy.
479         * finddomain.c (stpcpy):
480         Define substitution function local.  The macro was to flaky.
482         * cat-compat.c: Fix typo.
484         * xopen-msg.sed, linux-msg.sed:
485         While bringing message number to right place only accept digits.
487         * linux-msg.sed, xopen-msg.sed: Now that the counter does not have
488         leading 0s we don't need to remove them.  Reported by Marcus
489         Daniels.
491         * Makefile.in (../po/cat-id-tbl.o): Use $(top_srdir) in
492         dependency.  Reported by Marcus Daniels.
494         * cat-compat.c: (stpcpy) [!_LIBC && !HAVE_STPCPY]: Define replacement.
495         Generally cleanup using #if instead of #ifndef.
497         * Makefile.in: Correct typos in comment.  By Franc,ois Pinard.
499 Mon Nov  6 00:27:02 1995  Ulrich Drepper  <drepper@myware>
501         * Makefile.in (install-src): Don't install libintl.h and libintl.a
502         if we use an available gettext implementation.
504 Sun Nov  5 22:02:08 1995  Ulrich Drepper  <drepper@myware>
506         * libgettext.h: Fix typo: HAVE_CATGETTS -> HAVE_CATGETS.  Reported
507         by Franc,ois Pinard.
509         * libgettext.h: Use #if instead of #ifdef/#ifndef.
511         * finddomain.c:
512         Comments describing what has to be done should start with FIXME.
514 Sun Nov  5 19:38:01 1995  Ulrich Drepper  <drepper@myware>
516         * Makefile.in (DISTFILES): Split.  Use DISTFILES with normal meaning.
517         DISTFILES.common names the files common to both dist goals.
518         DISTFILES.gettext are the files only distributed in GNU gettext.
520 Sun Nov  5 17:32:54 1995  Ulrich Drepper  <drepper@myware>
522         * dcgettext.c (DCGETTEXT): Correct searching in derived locales.
523         This was necessary since a change in _nl_find_msg several weeks
524         ago.  I really don't know this is still not fixed.
526 Sun Nov  5 12:43:12 1995  Ulrich Drepper  <drepper@myware>
528         * loadmsgcat.c (_nl_load_domain): Test for FILENAME == NULL.  This
529         might mark a special condition.
531         * finddomain.c (make_entry_rec): Don't make illegal entry as decided.
533         * Makefile.in (dist): Suppress error message when ln failed.
534         Get files from $(srcdir) explicitly.
536         * libgettext.h (gettext_const): Rename to gettext_noop.
538 Fri Nov  3 07:36:50 1995  Ulrich Drepper  <drepper@myware>
540         * finddomain.c (make_entry_rec):
541         Protect against wrong locale names by testing mask.
543         * libgettext.h (gettext_const): Add macro definition.
544         Capitalize macro arguments.
546 Thu Nov  2 23:15:51 1995  Ulrich Drepper  <drepper@myware>
548         * finddomain.c (_nl_find_domain):
549         Test for pointer != NULL before accessing value.
550         Reported by Tom Tromey.
552         * gettext.c (NULL):
553         Define as (void*)0 instad of 0.  Reported by Franc,ois Pinard.
555 Mon Oct 30 21:28:52 1995  Ulrich Drepper  <drepper@myware>
557         * po2tbl.sed.in: Serious typo bug fixed by Jim Meyering.
559 Sat Oct 28 23:20:47 1995  Ulrich Drepper  <drepper@myware>
561         * libgettext.h: Disable dcgettext optimization for Solaris 2.3.
563         * localealias.c (alias_compare):
564         Peter Miller reported that tolower in some systems is
565         even dumber than I thought.  Protect call by `isupper'.
567 Fri Oct 27 22:22:51 1995  Ulrich Drepper  <drepper@myware>
569         * Makefile.in (libdir, includedir): New variables.
570         (install-src): Install libintl.a and libintl.h in correct dirs.
572 Fri Oct 27 22:07:29 1995  Ulrich Drepper  <drepper@myware>
574         * Makefile.in (SOURCES): Fix typo: intrl.compat.c -> intl-compat.c.
576         * po2tbl.sed.in: Patch for buggy SEDs by Christian von Roques.
578         * localealias.c:
579         Fix typo and superflous test.  Reported by Christian von Roques.
581 Fri Oct  6 11:52:05 1995  Ulrich Drepper  <drepper@myware>
583         * finddomain.c (_nl_find_domain):
584         Correct some remainder from the pre-CEN syntax.  Now
585         we don't have a constant number of successors anymore.
587 Wed Sep 27 21:41:13 1995  Ulrich Drepper  <drepper@myware>
589         * Makefile.in (DISTFILES): Add libintl.h.glibc.
591         * Makefile.in (dist-libc): Add goal for packing sources for glibc.
592         (COMSRCS, COMHDRS): Splitted to separate sources shared with glibc.
594         * loadmsgcat.c: Forget to continue #if line.
596         * localealias.c:
597         [_LIBC]: Rename strcasecmp to __strcasecmp to keep ANSI C name
598         space clean.
600         * dcgettext.c, finddomain.c: Better comment to last change.
602         * loadmsgcat.c:
603         [_LIBC]: Rename fstat, open, close, read, mmap, and munmap to
604         __fstat, __open, __close, __read, __mmap, and __munmap resp
605         to keep ANSI C name space clean.
607         * finddomain.c:
608         [_LIBC]: Rename stpcpy to __stpcpy to keep ANSI C name space clean.
610         * dcgettext.c:
611         [_LIBC]: Rename getced and stpcpy to __getcwd and __stpcpy resp to
612         keep ANSI C name space clean.
614         * libgettext.h:
615         Include sys/types.h for those old SysV systems out there.
616         Reported by Francesco Potorti`.
618         * loadmsgcat.c (use_mmap): Define if compiled for glibc.
620         * bindtextdom.c: Include all those standard headers
621         unconditionally if _LIBC is defined.
623         * finddomain.c: Fix 2 times defiend -> defined.
625         * textdomain.c: Include libintl.h instead of libgettext.h when
626         compiling for glibc.  Include all those standard headers
627         unconditionally if _LIBC is defined.
629         * localealias.c, loadmsgcat.c: Prepare to be compiled in glibc.
631         * gettext.c:
632         Include libintl.h instead of libgettext.h when compiling for glibc.
633         Get NULL from stddef.h if we compile for glibc.
635         * finddomain.c: Include libintl.h instead of libgettext.h when
636         compiling for glibc.  Include all those standard headers
637         unconditionally if _LIBC is defined.
639         * dcgettext.c: Include all those standard headers unconditionally
640         if _LIBC is defined.
642         * dgettext.c: If compiled in glibc include libintl.h instead of
643         libgettext.h.
644         (locale.h): Don't rely on HAVE_LOCALE_H when compiling for glibc.
646         * dcgettext.c: If compiled in glibc include libintl.h instead of
647         libgettext.h.
648         (getcwd): Don't rely on HAVE_GETCWD when compiling for glibc.
650         * bindtextdom.c:
651         If compiled in glibc include libintl.h instead of libgettext.h.
653 Mon Sep 25 22:23:06 1995  Ulrich Drepper  <drepper@myware>
655         * localealias.c (_nl_expand_alias): Don't call bsearch if NMAP <= 0.
656         Reported by Marcus Daniels.
658         * cat-compat.c (bindtextdomain):
659         String used in putenv must not be recycled.
660         Reported by Marcus Daniels.
662         * libgettext.h (__USE_GNU_GETTEXT):
663         Additional symbol to signal that we use GNU gettext
664         library.
666         * cat-compat.c (bindtextdomain):
667         Fix bug with the strange stpcpy replacement.
668         Reported by Nelson Beebe.
670 Sat Sep 23 08:23:51 1995  Ulrich Drepper  <drepper@myware>
672         * cat-compat.c: Include <string.h> for stpcpy prototype.
674         * localealias.c (read_alias_file):
675         While expand strdup code temporary variable `cp' hided
676         higher level variable with same name.  Rename to `tp'.
678         * textdomain.c (textdomain):
679         Avoid warning by using temporary variable in strdup code.
681         * finddomain.c (_nl_find_domain): Remove unused variable `application'.
683 Thu Sep 21 15:51:44 1995  Ulrich Drepper  <drepper@myware>
685         * localealias.c (alias_compare):
686         Use strcasecmp() only if available.  Else use
687         implementation in place.
689         * intl-compat.c:
690         Wrapper functions now call *__ functions instead of __*.
692         * libgettext.h: Declare prototypes for *__ functions instead for __*.
694         * cat-compat.c, loadmsgcat.c:
695         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
696         of the standard libc and so prevent libintl.a from being used
697         standalone.
699         * bindtextdom.c:
700         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
701         of the standard libc and so prevent libintl.a from being used
702         standalone.
703         Rename to bindtextdomain__ if not used in GNU C Library.
705         * dgettext.c:
706         Rename function to dgettext__ if not used in GNU C Library.
708         * gettext.c:
709         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
710         of the standard libc and so prevent libintl.a from being used
711         standalone.
712         Functions now called gettext__ if not used in GNU C Library.
714         * dcgettext.c, localealias.c, textdomain.c, finddomain.c:
715         Don't use xmalloc, xstrdup, and stpcpy.  These functions are not part
716         of the standard libc and so prevent libintl.a from being used
717         standalone.
719 Sun Sep 17 23:14:49 1995  Ulrich Drepper  <drepper@myware>
721         * finddomain.c: Correct some bugs in handling of CEN standard
722         locale definitions.
724 Thu Sep  7 01:49:28 1995  Ulrich Drepper  <drepper@myware>
726         * finddomain.c: Implement CEN syntax.
728         * gettextP.h (loaded_domain): Extend number of successors to 31.
730 Sat Aug 19 19:25:29 1995  Ulrich Drepper  <drepper@myware>
732         * Makefile.in (aliaspath): Remove path to X11 locale dir.
734         * Makefile.in: Make install-src depend on install.  This helps
735         gettext to install the sources and other packages can use the
736         install goal.
738 Sat Aug 19 15:19:33 1995  Ulrich Drepper  <drepper@myware>
740         * Makefile.in (uninstall): Remove stuff installed by install-src.
742 Tue Aug 15 13:13:53 1995  Ulrich Drepper  <drepper@myware>
744         * VERSION.in: Initial revision.
746         * Makefile.in (DISTFILES):
747         Add VERSION file.  This is not necessary for gettext, but
748         for other packages using this library.
750 Tue Aug 15 06:16:44 1995  Ulrich Drepper  <drepper@myware>
752         * gettextP.h (_nl_find_domain):
753         New prototype after changing search strategy.
755         * finddomain.c (_nl_find_domain):
756         We now try only to find a specified catalog.  Fall back to other
757         catalogs listed in the locale list is now done in __dcgettext.
759         * dcgettext.c (__dcgettext):
760         Now we provide message fall back even to different languages.
761         I.e. if a message is not available in one language all the other
762         in the locale list a tried.  Formerly fall back was only possible
763         within one language.  Implemented by moving one loop from
764         _nl_find_domain to here.
766 Mon Aug 14 23:45:50 1995  Ulrich Drepper  <drepper@myware>
768         * Makefile.in (gettextsrcdir):
769         Directory where source of GNU gettext library are made
770         available.
771         (INSTALL, INSTALL_DATA): Programs used for installing sources.
772         (gettext-src): New.  Rule to install GNU gettext sources for use in
773         gettextize shell script.
775 Sun Aug 13 14:40:48 1995  Ulrich Drepper  <drepper@myware>
777         * loadmsgcat.c (_nl_load_domain):
778         Use mmap for loading only when munmap function is
779         also available.
781         * Makefile.in (install): Depend on `all' goal.
783 Wed Aug  9 11:04:33 1995  Ulrich Drepper  <drepper@myware>
785         * localealias.c (read_alias_file):
786         Do not overwrite '\n' when terminating alias value string.
788         * localealias.c (read_alias_file):
789         Handle long lines.  Ignore the rest not fitting in
790         the buffer after the initial `fgets' call.
792 Wed Aug  9 00:54:29 1995  Ulrich Drepper  <drepper@myware>
794         * gettextP.h (_nl_load_domain):
795         Add prototype, replacing prototype for _nl_load_msg_cat.
797         * finddomain.c (_nl_find_domain):
798         Remove unneeded variable filename and filename_len.
799         (expand_alias): Remove prototype because functions does not
800         exist anymore.
802         * localealias.c (read_alias_file):
803         Change type of fname_len parameter to int.
804         (xmalloc): Add prototype.
806         * loadmsgcat.c: Better prototypes for xmalloc.
808 Tue Aug  8 22:30:39 1995  Ulrich Drepper  <drepper@myware>
810         * finddomain.c (_nl_find_domain):
811         Allow alias name to be constructed from the four components.
813         * Makefile.in (aliaspath): New variable.  Set to preliminary value.
814         (SOURCES): Add localealias.c.
815         (OBJECTS): Add localealias.o.
817         * gettextP.h: Add prototype for _nl_expand_alias.
819         * finddomain.c: Aliasing handled in intl/localealias.c.
821         * localealias.c: Aliasing for locale names.
823         * bindtextdom.c: Better prototypes for xmalloc and xstrdup.
825 Mon Aug  7 23:47:42 1995  Ulrich Drepper  <drepper@myware>
827         * Makefile.in (DISTFILES): gettext.perl is now found in misc/.
829         * cat-compat.c (bindtextdomain):
830         Correct implementation.  dirname parameter was not used.
831         Reported by Marcus Daniels.
833         * gettextP.h (loaded_domain):
834         New fields `successor' and `decided' for oo, lazy
835         message handling implementation.
837         * dcgettext.c:
838         Adopt for oo, lazy message handliing.
839         Now we can inherit translations from less specific locales.
840         (find_msg): New function.
842         * loadmsgcat.c, finddomain.c:
843         Complete rewrite.  Implement oo, lazy message handling :-).
844         We now have an additional environment variable `LANGUAGE' with
845         a higher priority than LC_ALL for the LC_MESSAGE locale.
846         Here we can set a colon separated list of specifications each
847         of the form `language[_territory[.codeset]][@modifier]'.
849 Sat Aug  5 09:55:42 1995  Ulrich Drepper  <drepper@myware>
851         * finddomain.c (unistd.h):
852         Include to get _PC_PATH_MAX defined on system having it.
854 Fri Aug  4 22:42:00 1995  Ulrich Drepper  <drepper@myware>
856         * finddomain.c (stpcpy): Include prototype.
858         * Makefile.in (dist): Remove `copying instead' message.
860 Wed Aug  2 18:52:03 1995  Ulrich Drepper  <drepper@myware>
862         * Makefile.in (ID, TAGS): Do not use $^.
864 Tue Aug  1 20:07:11 1995  Ulrich Drepper  <drepper@myware>
866         * Makefile.in (TAGS, ID): Use $^ as command argument.
867         (TAGS): Give etags -o option t write to current directory,
868         not $(srcdir).
869         (ID): Use $(srcdir) instead os $(top_srcdir)/src.
870         (distclean): Remove ID.
872 Sun Jul 30 11:51:46 1995  Ulrich Drepper  <drepper@myware>
874         * Makefile.in (gnulocaledir):
875         New variable, always using share/ for data directory.
876         (DEFS): Add GNULOCALEDIR, used in finddomain.c.
878         * finddomain.c (_nl_default_dirname):
879         Set to GNULOCALEDIR, because it always has to point
880         to the directory where GNU gettext Library writes it to.
882         * intl-compat.c (textdomain, bindtextdomain):
883         Undefine macros before function definition.
885 Sat Jul 22 01:10:02 1995  Ulrich Drepper  <drepper@myware>
887         * libgettext.h (_LIBINTL_H):
888         Protect definition in case where this file is included as
889         libgettext.h on Solaris machines.  Add comment about this.
891 Wed Jul 19 02:36:42 1995  Ulrich Drepper  <drepper@myware>
893         * intl-compat.c (textdomain): Correct typo.
895 Wed Jul 19 01:51:35 1995  Ulrich Drepper  <drepper@myware>
897         * dcgettext.c (dcgettext): Function now called __dcgettext.
899         * dgettext.c (dgettext): Now called __dgettext and calls
900         __dcgettext.
902         * gettext.c (gettext):
903         Function now called __gettext and calls __dgettext.
905         * textdomain.c (textdomain): Function now called __textdomain.
907         * bindtextdom.c (bindtextdomain): Function now called
908         __bindtextdomain.
910         * intl-compat.c: Initial revision.
912         * Makefile.in (SOURCES): Add intl-compat.c.
913         (OBJECTS): We always compile the GNU gettext library functions.
914         OBJECTS contains all objects but cat-compat.o, ../po/cat-if-tbl.o,
915         and intl-compat.o.
916         (GETTOBJS): Contains now only intl-compat.o.
918         * libgettext.h:
919         Re-include protection matches dualistic character of libgettext.h.
920         For all functions in GNU gettext library define __ counter part.
922         * finddomain.c (strchr): Define as index if not found in C library.
923         (_nl_find_domain): For relative paths paste / in between.
925 Tue Jul 18 16:37:45 1995  Ulrich Drepper  <drepper@myware>
927         * loadmsgcat.c, finddomain.c: Add inclusion of sys/types.h.
929         * xopen-msg.sed: Fix bug with `msgstr ""' lines.
930         A little bit better comments.
932 Tue Jul 18 01:18:27 1995  Ulrich Drepper  <drepper@myware>
934         * Makefile.in:
935         po-mode.el, makelinks, combine-sh are now found in ../misc.
937         * po-mode.el, makelinks, combine-sh, elisp-comp:
938         Moved to ../misc/.
940         * libgettext.h, gettextP.h, gettext.h: Uniform test for __STDC__.
942 Sun Jul 16 22:33:02 1995  Ulrich Drepper  <drepper@myware>
944         * Makefile.in (INSTALL, INSTALL_DATA): New variables.
945         (install-data, uninstall): Install/uninstall .elc file.
947         * po-mode.el (Installation comment):
948         Add .pox as possible extension of .po files.
950 Sun Jul 16 13:23:27 1995  Ulrich Drepper  <drepper@myware>
952         * elisp-comp: Complete new version by Franc,ois: This does not
953         fail when not compiling in the source directory.
955 Sun Jul 16 00:12:17 1995  Ulrich Drepper  <drepper@myware>
957         * Makefile.in (../po/cat-id-tbl.o):
958         Use $(MAKE) instead of make for recursive make.
960         * Makefile.in (.el.elc): Use $(SHELL) instead of /bin/sh.
961         (install-exec): Add missing dummy goal.
962         (install-data, uninstall): @ in multi-line shell command at
963         beginning, not in front of echo.  Reported by Eric Backus.
965 Sat Jul 15 00:21:28 1995  Ulrich Drepper  <drepper@myware>
967         * Makefile.in (DISTFILES):
968         Rename libgettext.perl to gettext.perl to fit in 14 chars
969         file systems.
971         * gettext.perl:
972         Rename to gettext.perl to fit in 14 chars file systems.
974 Thu Jul 13 23:17:20 1995  Ulrich Drepper  <drepper@myware>
976         * cat-compat.c: If !STDC_HEADERS try to include malloc.h.
978 Thu Jul 13 20:55:02 1995  Ulrich Drepper  <drepper@myware>
980         * po2tbl.sed.in: Pretty printing.
982         * linux-msg.sed, xopen-msg.sed:
983         Correct bugs with handling substitute flags in branches.
985         * hash-string.h (hash_string):
986         Old K&R compilers don't under stand `unsigned char'.
988         * gettext.h (nls_uint32):
989         Some old K&R compilers (eg HP) don't understand `unsigned int'.
991         * cat-compat.c (msg_to_cat_id): De-ANSI-fy prototypes.
993 Thu Jul 13 01:34:33 1995  Ulrich Drepper  <drepper@myware>
995         * Makefile.in (ELCFILES): New variable.
996         (DISTFILES): Add elisp-comp.
997         Add implicit rule for .el -> .elc compilation.
998         (install-data): install $ELCFILES
999         (clean): renamed po-to-tbl and po-to-msg to po2tbl and po2msg resp.
1001         * elisp-comp: Initial revision
1003 Wed Jul 12 16:14:52 1995  Ulrich Drepper  <drepper@myware>
1005         * Makefile.in:
1006         cat-id-tbl.c is now found in po/.  This enables us to use an identical
1007         intl/ directory in all packages.
1009         * dcgettext.c (dcgettext): hashing does not work for table size <= 2.
1011         * textdomain.c: fix typo (#if def -> #if defined)
1013 Tue Jul 11 18:44:43 1995  Ulrich Drepper  <drepper@myware>
1015         * Makefile.in (stamp-cat-id): use top_srcdir to address source files
1016         (DISTFILES,distclean): move tupdate.perl to src/
1018         * po-to-tbl.sed.in:
1019         add additional jump to clear change flag to recognize multiline strings
1021 Tue Jul 11 01:32:50 1995  Ulrich Drepper  <drepper@myware>
1023         * textdomain.c: Protect inclusion of stdlib.h and string.h.
1025         * loadmsgcat.c: Protect inclusion of stdlib.h.
1027         * libgettext.h: Protect inclusion of locale.h.
1028         Allow use in C++ programs.
1029         Define NULL is not happened already.
1031         * Makefile.in (DISTFILES): ship po-to-tbl.sed.in instead of
1032         po-to-tbl.sed.
1033         (distclean): remove po-to-tbl.sed and tupdate.perl.
1035         * tupdate.perl.in: Substitute Perl path even in exec line.
1036         Don't include entries without translation from old .po file.
1038 Tue Jul  4 00:41:51 1995  Ulrich Drepper  <drepper@myware>
1040         * tupdate.perl.in: use "Updated: " in msgid "".
1042         * cat-compat.c: Fix typo (LOCALDIR -> LOCALEDIR).
1043         Define getenv if !__STDC__.
1045         * bindtextdom.c: Protect stdlib.h and string.h inclusion.
1046         Define free if !__STDC__.
1048         * finddomain.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
1049         Define free if !__STDC__.
1051         * cat-compat.c: Change DEF_MSG_DOM_DIR to LOCALEDIR.
1053 Mon Jul  3 23:56:30 1995  Ulrich Drepper  <drepper@myware>
1055         * Makefile.in: Use LOCALEDIR instead of DEF_MSG_DOM_DIR.
1056         Remove unneeded $(srcdir) from Makefile.in dependency.
1058         * makelinks: Add copyright and short description.
1060         * po-mode.el: Last version for 0.7.
1062         * tupdate.perl.in: Fix die message.
1064         * dcgettext.c: Protect include of string.h.
1066         * gettext.c: Protect include of stdlib.h and further tries to get NULL.
1068         * finddomain.c: Some corrections in includes.
1070         * Makefile.in (INCLUDES): Prune list correct path to Makefile.in.
1072         * po-to-tbl.sed: Adopt for new .po file format.
1074         * linux-msg.sed, xopen-msg.sed: Adopt for new .po file format.
1076 Sun Jul  2 23:55:03 1995  Ulrich Drepper  <drepper@myware>
1078         * tupdate.perl.in: Complete rewrite for new .po file format.
1080 Sun Jul  2 02:06:50 1995  Ulrich Drepper  <drepper@myware>
1082         * First official release.  This directory contains all the code
1083         needed to internationalize own packages.  It provides functions
1084         which allow to use the X/Open catgets function with an interface
1085         like the Uniforum gettext function.  For system which does not
1086         have neither of those a complete implementation is provided.