gnulib.git
15 years agoWork around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
Bruno Haible [Thu, 26 Feb 2009 01:21:14 +0000 (02:21 +0100)]
Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.

15 years agoWork around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
Bruno Haible [Thu, 26 Feb 2009 00:21:03 +0000 (01:21 +0100)]
Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.

15 years agotests: skip fseek/ftell tests if ungetc is broken
Eric Blake [Wed, 25 Feb 2009 14:42:31 +0000 (07:42 -0700)]
tests: skip fseek/ftell tests if ungetc is broken

* m4/ungetc.m4: New file.
* modules/fseek-tests: Split test, so ungetc dependency is
separate from rest of test.
* modules/fseeko-tests: Likewise.
* modules/ftell-tests: Likewise.
* modules/ftello-tests: Likewise.
* tests/test-fseek.c (main): Isolate ungetc dependency.
* tests/test-fseeko.c (main): Likewise.
* tests/test-ftell.c (main): Likewise.
* tests/test-ftello.c (main): Likewise.
* tests/test-fseek2.sh: New file.
* tests/test-fseeko2.sh: Likewise.
* tests/test-ftell2.sh: Likewise.
* tests/test-ftello2.sh: Likewise.

15 years agoFix typo in last commit.
Simon Josefsson [Wed, 25 Feb 2009 15:23:18 +0000 (16:23 +0100)]
Fix typo in last commit.

15 years agotest-getaddrinfo: fix usage of skip return code 77
Ondřej Vašík [Wed, 25 Feb 2009 14:41:55 +0000 (15:41 +0100)]
test-getaddrinfo: fix usage of skip return code 77

* tests/test-gettaddrinfo.c: Return skip code 77 only
  for first occurance of skip (4x77 is not 77)

Signed-off-by: Simon Josefsson <simon@josefsson.org>
15 years agostrtod: avoid C99 decl-after-statement
Gary V. Vaughan [Wed, 25 Feb 2009 13:00:43 +0000 (06:00 -0700)]
strtod: avoid C99 decl-after-statement

* m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix comment.
Bruno Haible [Wed, 25 Feb 2009 01:02:22 +0000 (02:02 +0100)]
Fix comment.

15 years agostrtod: detect HP-UX 11.31 bug
Eric Blake [Tue, 24 Feb 2009 13:15:59 +0000 (06:15 -0700)]
strtod: detect HP-UX 11.31 bug

* m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
Reported by Gary V. Vaughan.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoTypography in comments.
Bruno Haible [Tue, 24 Feb 2009 11:34:41 +0000 (12:34 +0100)]
Typography in comments.

15 years agoUpdate copyright year.
Bruno Haible [Tue, 24 Feb 2009 03:21:06 +0000 (04:21 +0100)]
Update copyright year.

15 years agovasnprintf: Fix invalid read past end of memory block.
Bruno Haible [Tue, 24 Feb 2009 03:10:02 +0000 (04:10 +0100)]
vasnprintf: Fix invalid read past end of memory block.

15 years agoImplement new clarified decomposition of Hangul syllables.
Bruno Haible [Sun, 22 Feb 2009 14:05:45 +0000 (15:05 +0100)]
Implement new clarified decomposition of Hangul syllables.

15 years agoHandle empty strings correctly.
Bruno Haible [Sun, 22 Feb 2009 12:15:52 +0000 (13:15 +0100)]
Handle empty strings correctly.

15 years agoCosmetic tweaks in the safe-alloc module.
Bruno Haible [Sun, 22 Feb 2009 00:51:42 +0000 (01:51 +0100)]
Cosmetic tweaks in the safe-alloc module.

15 years agoTests for module 'uninorm/filter'.
Bruno Haible [Sat, 21 Feb 2009 14:52:35 +0000 (15:52 +0100)]
Tests for module 'uninorm/filter'.

15 years agoNew module 'uninorm/filter'.
Bruno Haible [Sat, 21 Feb 2009 14:51:29 +0000 (15:51 +0100)]
New module 'uninorm/filter'.

15 years agoWhitespace.
Bruno Haible [Sat, 21 Feb 2009 12:51:46 +0000 (13:51 +0100)]
Whitespace.

15 years agoAdd a comment.
Bruno Haible [Sat, 21 Feb 2009 12:23:54 +0000 (13:23 +0100)]
Add a comment.

15 years agoTests for module 'uninorm/nfkc'.
Bruno Haible [Sat, 21 Feb 2009 11:53:03 +0000 (12:53 +0100)]
Tests for module 'uninorm/nfkc'.

15 years agoNew module 'uninorm/nfkc'.
Bruno Haible [Sat, 21 Feb 2009 11:52:06 +0000 (12:52 +0100)]
New module 'uninorm/nfkc'.

15 years agoTests for module 'uninorm/nfkd'.
Bruno Haible [Sat, 21 Feb 2009 11:51:31 +0000 (12:51 +0100)]
Tests for module 'uninorm/nfkd'.

15 years agoNew module 'uninorm/nfkd'.
Bruno Haible [Sat, 21 Feb 2009 11:50:31 +0000 (12:50 +0100)]
New module 'uninorm/nfkd'.

15 years agoTests for module 'uninorm/nfc'.
Bruno Haible [Sat, 21 Feb 2009 11:49:36 +0000 (12:49 +0100)]
Tests for module 'uninorm/nfc'.

15 years agoNew module 'uninorm/nfc'.
Bruno Haible [Sat, 21 Feb 2009 11:47:51 +0000 (12:47 +0100)]
New module 'uninorm/nfc'.

15 years agoTests for module 'uninorm/nfd'.
Bruno Haible [Sat, 21 Feb 2009 11:46:44 +0000 (12:46 +0100)]
Tests for module 'uninorm/nfd'.

15 years agoCreated through: sed -e 's| *#.*||' < .../ucd/NormalizationTest.txt
Bruno Haible [Sat, 21 Feb 2009 11:46:15 +0000 (12:46 +0100)]
Created through:  sed -e 's| *#.*||' < .../ucd/NormalizationTest.txt

15 years agoNew module 'uninorm/nfd'.
Bruno Haible [Sat, 21 Feb 2009 11:42:42 +0000 (12:42 +0100)]
New module 'uninorm/nfd'.

15 years agoNew module 'uninorm/u32-normalize'.
Bruno Haible [Sat, 21 Feb 2009 11:39:55 +0000 (12:39 +0100)]
New module 'uninorm/u32-normalize'.

15 years agoNew module 'uninorm/u16-normalize'.
Bruno Haible [Sat, 21 Feb 2009 11:39:28 +0000 (12:39 +0100)]
New module 'uninorm/u16-normalize'.

15 years agoNew module 'uninorm/u8-normalize'.
Bruno Haible [Sat, 21 Feb 2009 11:38:14 +0000 (12:38 +0100)]
New module 'uninorm/u8-normalize'.

15 years agoNew module 'uninorm/decompose-internal'.
Bruno Haible [Sat, 21 Feb 2009 11:35:36 +0000 (12:35 +0100)]
New module 'uninorm/decompose-internal'.

15 years agoTests for module 'uninorm/composition'.
Bruno Haible [Sat, 21 Feb 2009 11:33:48 +0000 (12:33 +0100)]
Tests for module 'uninorm/composition'.

15 years agoNew module 'uninorm/composition'.
Bruno Haible [Sat, 21 Feb 2009 11:32:41 +0000 (12:32 +0100)]
New module 'uninorm/composition'.

15 years agoTests for module 'uninorm/compat-decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:30:06 +0000 (12:30 +0100)]
Tests for module 'uninorm/compat-decomposition'.

15 years agoNew module 'uninorm/compat-decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:28:56 +0000 (12:28 +0100)]
New module 'uninorm/compat-decomposition'.

15 years agoTests for module 'uninorm/canonical-decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:26:45 +0000 (12:26 +0100)]
Tests for module 'uninorm/canonical-decomposition'.

15 years agoNew module 'uninorm/canonical-decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:25:26 +0000 (12:25 +0100)]
New module 'uninorm/canonical-decomposition'.

15 years agoTests for module 'uninorm/decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:20:52 +0000 (12:20 +0100)]
Tests for module 'uninorm/decomposition'.

15 years agoNew module 'uninorm/decomposition'.
Bruno Haible [Sat, 21 Feb 2009 11:19:16 +0000 (12:19 +0100)]
New module 'uninorm/decomposition'.

15 years agoNew module 'uninorm/decomposition-table'.
Bruno Haible [Sat, 21 Feb 2009 11:13:28 +0000 (12:13 +0100)]
New module 'uninorm/decomposition-table'.

15 years agoRemove old, dead code in last commit.
Bruno Haible [Sat, 21 Feb 2009 11:10:21 +0000 (12:10 +0100)]
Remove old, dead code in last commit.

15 years agoEmit decomposition and composition tables.
Bruno Haible [Sat, 21 Feb 2009 11:07:00 +0000 (12:07 +0100)]
Emit decomposition and composition tables.

15 years agoNew module 'uninorm/base'.
Bruno Haible [Sat, 21 Feb 2009 11:01:44 +0000 (12:01 +0100)]
New module 'uninorm/base'.

15 years agoTests for module 'safe-alloc'.
David Lutterkort [Sat, 21 Feb 2009 10:10:01 +0000 (11:10 +0100)]
Tests for module 'safe-alloc'.

15 years agoNew module 'safe-alloc'.
David Lutterkort [Sat, 21 Feb 2009 10:08:37 +0000 (11:08 +0100)]
New module 'safe-alloc'.

15 years agoFix link error on non-glibc systems.
Bruno Haible [Wed, 18 Feb 2009 21:55:48 +0000 (22:55 +0100)]
Fix link error on non-glibc systems.

15 years agofts: avoid used-uninitialized error due to recent change
Jim Meyering [Wed, 18 Feb 2009 07:37:24 +0000 (08:37 +0100)]
fts: avoid used-uninitialized error due to recent change

* lib/fts.c (fts_read): Guard uses of the new member,
parent->fts_n_dirs_remaining, since it's not relevant for
the parent of a directory specified on the command-line.

15 years agoReformulate comment.
Bruno Haible [Tue, 17 Feb 2009 22:43:29 +0000 (23:43 +0100)]
Reformulate comment.

15 years agofts: add #if guards so that the fts_lgpl module still builds
Jim Meyering [Mon, 16 Feb 2009 14:49:08 +0000 (15:49 +0100)]
fts: add #if guards so that the fts_lgpl module still builds

* lib/fts.c: Guard just-added hash-table-using parts with
Reported by Simon Josefsson.

15 years agoTests for module 'array-mergesort'.
Bruno Haible [Mon, 16 Feb 2009 02:16:08 +0000 (03:16 +0100)]
Tests for module 'array-mergesort'.

15 years agoNew module 'array-mergesort'.
Bruno Haible [Mon, 16 Feb 2009 02:14:41 +0000 (03:14 +0100)]
New module 'array-mergesort'.

15 years agoFix 2009-02-07 commit of format strings.
Bruno Haible [Sun, 15 Feb 2009 23:27:42 +0000 (00:27 +0100)]
Fix 2009-02-07 commit of format strings.

15 years agoUpdate comment about IBM C 9.0/10.1 bug.
Albert Chin-A-Young [Sun, 15 Feb 2009 23:02:34 +0000 (00:02 +0100)]
Update comment about IBM C 9.0/10.1 bug.

15 years agofts: arrange not to stat non-directories in more cases
Jim Meyering [Wed, 11 Feb 2009 20:32:01 +0000 (21:32 +0100)]
fts: arrange not to stat non-directories in more cases

This makes GNU find (when it doesn't need to stat each file)
*much* more efficient at traversing reiserfs file systems.

* lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
(struct FTS) [fts_leaf_optimization_works_ht]: Add member.
* lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
(S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
(leaf_optimization_applies): New function.
(LCO_hash, LCO_compare): New helper functions.
(link_count_optimize_ok): New function.
(fts_stat): Initialize new member (if dir).
(fts_read): Decrement parent's fts_n_dirs_remaining count if
we've just stat'ed a directory.  Skip the stat call when possible.

Note this AFS-related exchange:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
and note find's pioctl call in find/fstype.c.
But that is necessary only if you want to enable the
optimization for AFS, and for now, I don't.

15 years agofts: move a function definition "up" (no semantic change)
Jim Meyering [Wed, 11 Feb 2009 20:08:11 +0000 (21:08 +0100)]
fts: move a function definition "up" (no semantic change)

* lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
"up" to precede upcoming use of a related function.

15 years agofts: correct internal computation of nlinks (optimization-related)
Jim Meyering [Wed, 11 Feb 2009 10:13:11 +0000 (11:13 +0100)]
fts: correct internal computation of nlinks (optimization-related)

* lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
whether the current entry is a directory, so don't test it.

15 years agoTests for module 'uniwbrk/ulc-wordbreaks'.
Bruno Haible [Wed, 11 Feb 2009 01:23:36 +0000 (02:23 +0100)]
Tests for module 'uniwbrk/ulc-wordbreaks'.

15 years agoTests for module 'uniwbrk/u32-wordbreaks'.
Bruno Haible [Wed, 11 Feb 2009 01:22:26 +0000 (02:22 +0100)]
Tests for module 'uniwbrk/u32-wordbreaks'.

15 years agoTests for module 'uniwbrk/u16-wordbreaks'.
Bruno Haible [Wed, 11 Feb 2009 01:21:51 +0000 (02:21 +0100)]
Tests for module 'uniwbrk/u16-wordbreaks'.

15 years agoTests for module 'uniwbrk/u8-wordbreaks'.
Bruno Haible [Wed, 11 Feb 2009 01:21:10 +0000 (02:21 +0100)]
Tests for module 'uniwbrk/u8-wordbreaks'.

15 years agoAdd missing module dependencies.
Bruno Haible [Wed, 11 Feb 2009 01:19:30 +0000 (02:19 +0100)]
Add missing module dependencies.

15 years agosockets: Call AC_C_INLINE.
Simon Josefsson [Tue, 10 Feb 2009 12:16:22 +0000 (13:16 +0100)]
sockets: Call AC_C_INLINE.

15 years agoRename tables.[hc] to lbrktables.[hc].
Bruno Haible [Tue, 10 Feb 2009 10:56:21 +0000 (11:56 +0100)]
Rename tables.[hc] to lbrktables.[hc].

15 years agoRename tables.[hc] to lbrktables.[hc].
Bruno Haible [Tue, 10 Feb 2009 10:55:04 +0000 (11:55 +0100)]
Rename tables.[hc] to lbrktables.[hc].

15 years agoautoupdate
Karl Berry [Mon, 9 Feb 2009 17:07:52 +0000 (09:07 -0800)]
autoupdate

15 years agosockets: Add gl_fd_to_handle.
Simon Josefsson [Mon, 9 Feb 2009 13:54:23 +0000 (14:54 +0100)]
sockets: Add gl_fd_to_handle.

15 years agoDocument the complications of bi-arch systems.
Bruno Haible [Mon, 9 Feb 2009 10:54:37 +0000 (11:54 +0100)]
Document the complications of bi-arch systems.

15 years agoDocument the 'havelib' module.
Bruno Haible [Mon, 9 Feb 2009 00:29:54 +0000 (01:29 +0100)]
Document the 'havelib' module.

15 years agoFix wrong order of sections, compared to TOC.
Bruno Haible [Sun, 8 Feb 2009 23:27:43 +0000 (00:27 +0100)]
Fix wrong order of sections, compared to TOC.

15 years agoTests for module 'unicase/totitle'.
Bruno Haible [Sun, 8 Feb 2009 20:26:24 +0000 (21:26 +0100)]
Tests for module 'unicase/totitle'.

15 years agoTests for module 'unicase/tolower'.
Bruno Haible [Sun, 8 Feb 2009 20:25:42 +0000 (21:25 +0100)]
Tests for module 'unicase/tolower'.

15 years agoTests for module 'unicase/toupper'.
Bruno Haible [Sun, 8 Feb 2009 20:24:51 +0000 (21:24 +0100)]
Tests for module 'unicase/toupper'.

15 years agoAutomatically generated by gen-uni-tables for Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 20:23:21 +0000 (21:23 +0100)]
Automatically generated by gen-uni-tables for Unicode 5.1.0.

15 years agoNew module 'unicase/totitle'.
Bruno Haible [Sun, 8 Feb 2009 20:22:11 +0000 (21:22 +0100)]
New module 'unicase/totitle'.

15 years agoNew module 'unicase/tolower'.
Bruno Haible [Sun, 8 Feb 2009 20:21:34 +0000 (21:21 +0100)]
New module 'unicase/tolower'.

15 years agoNew module 'unicase/toupper'.
Bruno Haible [Sun, 8 Feb 2009 20:20:59 +0000 (21:20 +0100)]
New module 'unicase/toupper'.

15 years agoGenerate also simple case mapping tables.
Bruno Haible [Sun, 8 Feb 2009 20:18:39 +0000 (21:18 +0100)]
Generate also simple case mapping tables.

15 years agoNew module 'unicase/base'.
Bruno Haible [Sun, 8 Feb 2009 20:12:36 +0000 (21:12 +0100)]
New module 'unicase/base'.

15 years agoNew module 'uniwbrk/ulc-wordbreaks'.
Bruno Haible [Sun, 8 Feb 2009 19:58:32 +0000 (20:58 +0100)]
New module 'uniwbrk/ulc-wordbreaks'.

15 years agoNew module 'uniwbrk/u32-wordbreaks'.
Bruno Haible [Sun, 8 Feb 2009 19:57:50 +0000 (20:57 +0100)]
New module 'uniwbrk/u32-wordbreaks'.

15 years agoNew module 'uniwbrk/u16-wordbreaks'.
Bruno Haible [Sun, 8 Feb 2009 19:57:22 +0000 (20:57 +0100)]
New module 'uniwbrk/u16-wordbreaks'.

15 years agoNew module 'uniwbrk/u8-wordbreaks'.
Bruno Haible [Sun, 8 Feb 2009 19:56:37 +0000 (20:56 +0100)]
New module 'uniwbrk/u8-wordbreaks'.

15 years agoNew module 'uniwbrk/table'.
Bruno Haible [Sun, 8 Feb 2009 19:54:44 +0000 (20:54 +0100)]
New module 'uniwbrk/table'.

15 years agoNew module 'uniwbrk/wordbreak-property'.
Bruno Haible [Sun, 8 Feb 2009 19:52:49 +0000 (20:52 +0100)]
New module 'uniwbrk/wordbreak-property'.

15 years agoAutomatically generated by gen-uni-tables.
Bruno Haible [Sun, 8 Feb 2009 19:52:14 +0000 (20:52 +0100)]
Automatically generated by gen-uni-tables.

15 years agoGenerate table with word break data.
Bruno Haible [Sun, 8 Feb 2009 19:51:46 +0000 (20:51 +0100)]
Generate table with word break data.

15 years agoNew module 'uniwbrk/base'.
Bruno Haible [Sun, 8 Feb 2009 19:42:32 +0000 (20:42 +0100)]
New module 'uniwbrk/base'.

15 years agoRegenerated for Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 16:18:13 +0000 (17:18 +0100)]
Regenerated for Unicode 5.1.0.

15 years agoUpdate for Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 16:17:51 +0000 (17:17 +0100)]
Update for Unicode 5.1.0.

15 years agoRegenerated for Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 15:13:39 +0000 (16:13 +0100)]
Regenerated for Unicode 5.1.0.

15 years agoUpdate to Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 15:13:18 +0000 (16:13 +0100)]
Update to Unicode 5.1.0.

15 years agoUpdate to Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 15:11:56 +0000 (16:11 +0100)]
Update to Unicode 5.1.0.

15 years agoRegenerated for Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 15:11:07 +0000 (16:11 +0100)]
Regenerated for Unicode 5.1.0.

15 years agoUpdate to Unicode 5.1.0.
Bruno Haible [Sun, 8 Feb 2009 15:10:11 +0000 (16:10 +0100)]
Update to Unicode 5.1.0.

15 years agoMerge gen-ctype and gen-lbrk into gen-uni-tables.
Bruno Haible [Sun, 8 Feb 2009 02:02:06 +0000 (03:02 +0100)]
Merge gen-ctype and gen-lbrk into gen-uni-tables.

15 years agoNew modules unistr/u{8,16,32}-strcoll.
Bruno Haible [Sat, 7 Feb 2009 22:31:49 +0000 (23:31 +0100)]
New modules unistr/u{8,16,32}-strcoll.

15 years agoNew module 'unistr/u32-strcoll'.
Bruno Haible [Sat, 7 Feb 2009 22:28:40 +0000 (23:28 +0100)]
New module 'unistr/u32-strcoll'.

15 years agoNew module 'unistr/u16-strcoll'.
Bruno Haible [Sat, 7 Feb 2009 22:28:00 +0000 (23:28 +0100)]
New module 'unistr/u16-strcoll'.

15 years agoNew module 'unistr/u8-strcoll'.
Bruno Haible [Sat, 7 Feb 2009 22:27:20 +0000 (23:27 +0100)]
New module 'unistr/u8-strcoll'.

15 years agoFix fallback value of LOCALE_ZH_CN.
Bruno Haible [Sat, 7 Feb 2009 21:29:08 +0000 (22:29 +0100)]
Fix fallback value of LOCALE_ZH_CN.