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