gnulib.git
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.

15 years agoMake 64-bit clean.
Bruno Haible [Sat, 7 Feb 2009 17:42:56 +0000 (18:42 +0100)]
Make 64-bit clean.

15 years agoautoupdate
Karl Berry [Sat, 7 Feb 2009 16:32:59 +0000 (08:32 -0800)]
autoupdate

15 years agoImprove doc of dirfd module.
Bruno Haible [Sat, 7 Feb 2009 10:39:09 +0000 (11:39 +0100)]
Improve doc of dirfd module.

15 years agoregex: avoid compilation failure with upcoming gcc-4.4
Jim Meyering [Thu, 5 Feb 2009 18:57:35 +0000 (19:57 +0100)]
regex: avoid compilation failure with upcoming gcc-4.4

* lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
[workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
"... error: integer overflow in preprocessor expression".

15 years agoFix link errors on Windows when close module is used.
Ben Pfaff [Fri, 6 Feb 2009 06:11:57 +0000 (22:11 -0800)]
Fix link errors on Windows when close module is used.

* modules/close: Add $(LIB_CLOSE) to Link section.
* m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
$(LIB_CLOSE) on Windows.

15 years agostill avoid unused-parameter warnings, but do it cleanly
Jim Meyering [Thu, 5 Feb 2009 10:02:05 +0000 (11:02 +0100)]
still avoid unused-parameter warnings, but do it cleanly

* lib/fsusage.c (UNUSED_PARAM): Remove definition.
(get_fs_usage): Cast to void instead.
* lib/mountlist.c (UNUSED_PARAM): Remove definition.
(dev_from_mount_options, read_file_system_list): Cast to void.
Prompted by Bruno Haible.

15 years agofsusage.c: correct copyright year
Jim Meyering [Wed, 4 Feb 2009 15:35:56 +0000 (16:35 +0100)]
fsusage.c: correct copyright year

* lib/fsusage.c: Reflect year in which the change is pushed into
the public repository, not the year in which it was locally committed.

15 years agoavoid misc. warnings
Jim Meyering [Sun, 30 Nov 2008 16:10:29 +0000 (17:10 +0100)]
avoid misc. warnings

* lib/fsusage.c (UNUSED_PARAM): Define.
(get_fs_usage): Mark parameter "disk" as unused.
* lib/getugroups.c (getgrent): Use "void" in prototype.
* lib/mountlist.c: Mark unused parameters.
(read_file_system_list): Declare a local with "const".
* lib/nanosleep.c (getnow): Declare static.
* lib/strftime.c: Include strftime.h, for declaration of nstrftime.

15 years agoChangeLog: add entry for today's dirfd change
Jim Meyering [Wed, 4 Feb 2009 14:53:51 +0000 (15:53 +0100)]
ChangeLog: add entry for today's dirfd change

15 years agoautoupdate
Karl Berry [Wed, 4 Feb 2009 14:18:03 +0000 (06:18 -0800)]
autoupdate

15 years agodirfd: set errno upon failure
Jim Meyering [Tue, 3 Feb 2009 06:47:07 +0000 (07:47 +0100)]
dirfd: set errno upon failure

* lib/dirfd.c: Include <errno.h>.
Set errno to ENOTSUP when returning -1.
* modules/dirfd (Depends-on): Add errno.
Suggested by John Kodis <kodis@comcast.net>.

15 years agoFix use of integer types in memcmp.c.
Bruno Haible [Sun, 1 Feb 2009 21:11:23 +0000 (22:11 +0100)]
Fix use of integer types in memcmp.c.