gnulib.git
15 years agoregex: fix glibc bug 9697
Paolo Bonzini [Fri, 9 Jan 2009 08:10:36 +0000 (09:10 +0100)]
regex: fix glibc bug 9697

2009-01-09  Paolo Bonzini  <bonzini@gnu.org>

* lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
handling.

15 years agoregex: fix glibc bug 697
Paolo Bonzini [Fri, 9 Jan 2009 08:04:55 +0000 (09:04 +0100)]
regex: fix glibc bug 697

2009-01-09  Paolo Bonzini  <bonzini@gnu.org>

* lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
being NULL also if there are no backreferences.

15 years agoregex: replace mbrtowc with __mbrtowc.
Paolo Bonzini [Fri, 9 Jan 2009 08:00:58 +0000 (09:00 +0100)]
regex: replace mbrtowc with __mbrtowc.

2009-01-09  Paolo Bonzini  <bonzini@gnu.org>

* lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
* lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
re_string_skip_chars, re_string_reconstruct): Likewise.
* lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.

15 years agopoll: filter through cppi
Jim Meyering [Wed, 7 Jan 2009 20:02:12 +0000 (21:02 +0100)]
poll: filter through cppi

* lib/poll.c: Indent cpp directives to reflect nesting.

15 years agopoll: don't return uninitialized
Daniel P. Berrange [Wed, 7 Jan 2009 19:43:01 +0000 (20:43 +0100)]
poll: don't return uninitialized

* lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".

15 years agogetloadavg: avoid compile failure on AIX 6.1
Jeremy Olexa [Tue, 6 Jan 2009 20:25:54 +0000 (21:25 +0100)]
getloadavg: avoid compile failure on AIX 6.1

* lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465

15 years agoremove duplicate inclusion of <stdio.h>
Jim Meyering [Sun, 4 Jan 2009 19:59:12 +0000 (20:59 +0100)]
remove duplicate inclusion of <stdio.h>

* tests/test-fprintf-posix.c: Likewise.
* tests/test-printf-posix.c: Likewise.
* tests/test-snprintf-posix.c: Likewise.
* tests/test-sprintf-posix.c: Likewise.
* tests/test-vasprintf-posix.c: Likewise.
* tests/test-vfprintf-posix.c: Likewise.
* tests/test-vprintf-posix.c: Likewise.
* tests/test-vsnprintf-posix.c: Likewise.
* tests/test-vsprintf-posix.c: Likewise.

15 years agognulib-tool: fix sed-based filtering
Jim Meyering [Fri, 2 Jan 2009 18:29:30 +0000 (19:29 +0100)]
gnulib-tool: fix sed-based filtering

* gnulib-tool (func_filter_filelist): Remove extra backslash
in sed_fff_filter definition.

15 years agoautoupdate (for gendocs.sh accepting --email)
Karl Berry [Fri, 2 Jan 2009 16:11:41 +0000 (08:11 -0800)]
autoupdate (for gendocs.sh accepting --email)

15 years agoautoupdate (for gendocs.sh accepting --email)
Karl Berry [Fri, 2 Jan 2009 16:11:07 +0000 (08:11 -0800)]
autoupdate (for gendocs.sh accepting --email)

15 years agostrftime: avoid compilation failure on Solaris 2.6
Jim Meyering [Fri, 2 Jan 2009 08:58:09 +0000 (09:58 +0100)]
strftime: avoid compilation failure on Solaris 2.6

* modules/strftime (Depends-on): Add mbrlen and mbsinit.
* lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
Don't #define mbrlen or mbsinit, since now they're guaranteed to
be available.  Reported by Tom G. Christensen.  Details in
<http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.

15 years agoSpeed up gnulib-tool by doing more string processing through shell built-ins.
Bruno Haible [Fri, 2 Jan 2009 01:26:22 +0000 (02:26 +0100)]
Speed up gnulib-tool by doing more string processing through shell built-ins.

15 years agoupdate from texinfo
Karl Berry [Thu, 1 Jan 2009 22:47:33 +0000 (14:47 -0800)]
update from texinfo

15 years agoFix a security bug.
Bruno Haible [Thu, 1 Jan 2009 20:56:20 +0000 (21:56 +0100)]
Fix a security bug.

15 years agoAdd comments.
Bruno Haible [Thu, 1 Jan 2009 19:47:11 +0000 (20:47 +0100)]
Add comments.

15 years agoTerminate loops early when possible.
Bruno Haible [Thu, 1 Jan 2009 19:35:40 +0000 (20:35 +0100)]
Terminate loops early when possible.

15 years ago* lib/version-etc.c (version_etc_va): Update copyright year.
Jim Meyering [Thu, 1 Jan 2009 01:06:35 +0000 (02:06 +0100)]
* lib/version-etc.c (version_etc_va): Update copyright year.

SCALAR(0x831a154)
Copyright (C) 1997-2009 Free Software Foundation, Inc.

15 years agoFix a bug in the determination of LIB${NAME}_PREFIX.
Bruno Haible [Tue, 30 Dec 2008 23:28:09 +0000 (00:28 +0100)]
Fix a bug in the determination of LIB${NAME}_PREFIX.

15 years agomultiarch: avoid autoconf AC_REQUIRE bug
Eric Blake [Tue, 30 Dec 2008 03:06:44 +0000 (20:06 -0700)]
multiarch: avoid autoconf AC_REQUIRE bug

* m4/multiarch.m4 (gl_MULTIARCH): Split body...
(gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
2.63 and older.
Reported by Bruno Haible, and analyzed in
http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoFix small bug in update of .cvsignore or .gitignore.
Bruno Haible [Mon, 29 Dec 2008 22:10:55 +0000 (23:10 +0100)]
Fix small bug in update of .cvsignore or .gitignore.

15 years agowork around Solaris 8 'join' bug
Ralf Wildenhues [Mon, 29 Dec 2008 21:41:01 +0000 (22:41 +0100)]
work around Solaris 8 'join' bug

* gnulib-tool (func_update_ignorelist): Use 'join - FILE'
rather than 'join FILE -', for Solaris join.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMore systematic m4 argument quoting.
Bruno Haible [Mon, 29 Dec 2008 21:26:20 +0000 (22:26 +0100)]
More systematic m4 argument quoting.

15 years agoparse-duration: small doc tweak and coding aesthetics issue.
Bruce Korb [Mon, 29 Dec 2008 21:00:19 +0000 (22:00 +0100)]
parse-duration: small doc tweak and coding aesthetics issue.

* lib/parse-duration.h: non-iso form accepts years, months weeks, too
* lib/parse-duration.c: use a switch instead of cascading if's.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agowchar.h: supply WEOF on Irix 5.3
Eric Blake [Mon, 29 Dec 2008 16:09:58 +0000 (09:09 -0700)]
wchar.h: supply WEOF on Irix 5.3

* lib/wchar.in.h (wint_t): Also supply WEOF.
* lib/wctype.in.h (wint_t): Likewise.
* doc/posix-headers/wchar.texi (wchar.h): Document the bug.
* doc/posix-headers/wctype.texi (wctype.h): Likewise.
Reported by Tom G. Christensen.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRecognize more architecture names.
Bruno Haible [Fri, 26 Dec 2008 11:39:39 +0000 (12:39 +0100)]
Recognize more architecture names.

15 years agoFix indentation of comments.
Bruno Haible [Fri, 26 Dec 2008 10:05:42 +0000 (11:05 +0100)]
Fix indentation of comments.

15 years agoInclude <wchar.h> after defining the types, not before.
Bruno Haible [Fri, 26 Dec 2008 10:00:05 +0000 (11:00 +0100)]
Include <wchar.h> after defining the types, not before.

15 years agoAdd support for universal builds to vasnprintf.
Bruno Haible [Thu, 25 Dec 2008 19:18:10 +0000 (20:18 +0100)]
Add support for universal builds to vasnprintf.

15 years agoAdd support for universal builds to <inttypes.h>.
Bruno Haible [Thu, 25 Dec 2008 18:40:14 +0000 (19:40 +0100)]
Add support for universal builds to <inttypes.h>.

15 years agoAdd support for universal builds to <stdint.h>.
Bruno Haible [Thu, 25 Dec 2008 18:31:28 +0000 (19:31 +0100)]
Add support for universal builds to <stdint.h>.

15 years agoNew module 'multiarch'.
Bruno Haible [Thu, 25 Dec 2008 18:25:38 +0000 (19:25 +0100)]
New module 'multiarch'.

15 years agoFix a gnulib-tool failure.
Bruno Haible [Thu, 25 Dec 2008 15:07:35 +0000 (16:07 +0100)]
Fix a gnulib-tool failure.

15 years agoRelicense regex dependencies under LGPLv2+.
Bruno Haible [Thu, 25 Dec 2008 11:56:40 +0000 (12:56 +0100)]
Relicense regex dependencies under LGPLv2+.

15 years agoautoregenerate
Karl Berry [Wed, 24 Dec 2008 22:47:16 +0000 (14:47 -0800)]
autoregenerate

15 years agoautoupdate
Karl Berry [Wed, 24 Dec 2008 21:54:30 +0000 (13:54 -0800)]
autoupdate

15 years agoFix conditional and comment.
Bruno Haible [Tue, 23 Dec 2008 22:33:22 +0000 (23:33 +0100)]
Fix conditional and comment.

15 years agoautoupdate
Karl Berry [Tue, 23 Dec 2008 13:26:01 +0000 (05:26 -0800)]
autoupdate

15 years agoModule getaddrinfo requires linking with $(GETADDRINFO_LIB).
Bruno Haible [Tue, 23 Dec 2008 12:09:27 +0000 (13:09 +0100)]
Module getaddrinfo requires linking with $(GETADDRINFO_LIB).

15 years agoOops, typo in comment.
Bruno Haible [Tue, 23 Dec 2008 01:46:58 +0000 (02:46 +0100)]
Oops, typo in comment.

15 years agoMention platform-dependent limitations of wchar_t.
Bruno Haible [Tue, 23 Dec 2008 01:16:48 +0000 (02:16 +0100)]
Mention platform-dependent limitations of wchar_t.

15 years agoMake c-stack work on Haiku.
Ingo Weinhold [Mon, 22 Dec 2008 23:58:15 +0000 (00:58 +0100)]
Make c-stack work on Haiku.

15 years agoTreat Haiku like BeOS.
Bruno Haible [Mon, 22 Dec 2008 23:48:38 +0000 (00:48 +0100)]
Treat Haiku like BeOS.

15 years agoWork around mbrlen() bugs on various platforms.
Bruno Haible [Mon, 22 Dec 2008 23:33:10 +0000 (00:33 +0100)]
Work around mbrlen() bugs on various platforms.

15 years agoRemove an unused variable.
Bruno Haible [Mon, 22 Dec 2008 23:27:11 +0000 (00:27 +0100)]
Remove an unused variable.

15 years agoautoupdate
Karl Berry [Mon, 22 Dec 2008 20:53:51 +0000 (12:53 -0800)]
autoupdate

15 years agoAvoid gcc warnings on cygwin.
Eric Blake [Mon, 22 Dec 2008 13:11:32 +0000 (06:11 -0700)]
Avoid gcc warnings on cygwin.

* lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
Avoid unused variable.
* lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRemove HAVE_MBRTOWC conditionals. Use mbrtowc unconditionally.
Bruno Haible [Mon, 22 Dec 2008 11:11:44 +0000 (12:11 +0100)]
Remove HAVE_MBRTOWC conditionals. Use mbrtowc unconditionally.

15 years agoMerge branch 'master' of ssh://haible@git.sv.gnu.org/srv/git/gnulib
Bruno Haible [Mon, 22 Dec 2008 10:34:14 +0000 (11:34 +0100)]
Merge branch 'master' of ssh://haible@git.sv.gnu.org/srv/git/gnulib

15 years agoMention a glibc bug.
Bruno Haible [Mon, 22 Dec 2008 10:33:52 +0000 (11:33 +0100)]
Mention a glibc bug.

15 years agoupdate regex to use the emulated mb*/wc* functions
Paolo Bonzini [Mon, 22 Dec 2008 09:59:46 +0000 (10:59 +0100)]
update regex to use the emulated mb*/wc* functions

* modules/regex: Request emulations for the mb*/wc* functions we need.
* m4/regex.m4: Don't look for those functions here.
* lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.

15 years agoOops, undo last commit.
Bruno Haible [Mon, 22 Dec 2008 09:48:52 +0000 (10:48 +0100)]
Oops, undo last commit.

15 years agoMake mbiter, mbuiter, mbfile usable also if !HAVE_MBRTOWC.
Bruno Haible [Mon, 22 Dec 2008 02:48:56 +0000 (03:48 +0100)]
Make mbiter, mbuiter, mbfile usable also if !HAVE_MBRTOWC.

15 years agoClassify some recently added modules.
Bruno Haible [Mon, 22 Dec 2008 01:13:17 +0000 (02:13 +0100)]
Classify some recently added modules.

15 years agoOops, typo.
Bruno Haible [Mon, 22 Dec 2008 00:54:41 +0000 (01:54 +0100)]
Oops, typo.

15 years agoChange subtitles to refer to POSIX:2008.
Bruno Haible [Mon, 22 Dec 2008 00:51:57 +0000 (01:51 +0100)]
Change subtitles to refer to POSIX:2008.

15 years agoOops, fix syntax error.
Bruno Haible [Mon, 22 Dec 2008 00:26:36 +0000 (01:26 +0100)]
Oops, fix syntax error.

15 years agoTests for module 'wcsnrtombs'.
Bruno Haible [Sun, 21 Dec 2008 23:43:50 +0000 (00:43 +0100)]
Tests for module 'wcsnrtombs'.

15 years agoNew module 'wcsnrtombs'.
Bruno Haible [Sun, 21 Dec 2008 23:42:11 +0000 (00:42 +0100)]
New module 'wcsnrtombs'.

15 years agoTests for module 'wcsrtombs'.
Bruno Haible [Sun, 21 Dec 2008 22:50:07 +0000 (23:50 +0100)]
Tests for module 'wcsrtombs'.

15 years agoNew module 'wcsrtombs'.
Bruno Haible [Sun, 21 Dec 2008 22:48:19 +0000 (23:48 +0100)]
New module 'wcsrtombs'.

15 years agoOops, don't ignore exit code of subprocesses.
Bruno Haible [Sun, 21 Dec 2008 20:59:13 +0000 (21:59 +0100)]
Oops, don't ignore exit code of subprocesses.

15 years agoWork around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
Bruno Haible [Sun, 21 Dec 2008 20:57:36 +0000 (21:57 +0100)]
Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.

15 years agoWork around a btowc() bug on IRIX 6.5.
Bruno Haible [Sun, 21 Dec 2008 16:35:30 +0000 (17:35 +0100)]
Work around a btowc() bug on IRIX 6.5.

15 years agoTests for module 'wcrtomb'.
Bruno Haible [Sun, 21 Dec 2008 16:00:05 +0000 (17:00 +0100)]
Tests for module 'wcrtomb'.

15 years agoNew module 'wcrtomb'.
Bruno Haible [Sun, 21 Dec 2008 15:58:29 +0000 (16:58 +0100)]
New module 'wcrtomb'.

15 years agocodeset.m4 is required by locale-fr.m4.
Bruno Haible [Sun, 21 Dec 2008 15:13:11 +0000 (16:13 +0100)]
codeset.m4 is required by locale-fr.m4.

15 years agogitlog-to-changelog: pass all command-line arguments to git-log
William Pursell [Sun, 21 Dec 2008 11:24:13 +0000 (11:24 +0000)]
gitlog-to-changelog: pass all command-line arguments to git-log

When producing a ChangeLog, it is sometimes convenient
to filter the commits in various ways.  gitlog-to-changelog
only allows --since to specify a start date, but git-log
itself supports many other filtering mechanisms.  At the
moment, I want to filter by branch name.  Rather than adding
a --branch option to gitlog-to-changelog, it seems more
flexible to simply pass all options directly to git-log
and let git do the work.  Notice that this effectively
makes --since a redundant option for gitlog-to-changelog,
but removing it would require current usage to change since
calls would then require an additional '--'.

15 years agoTests for module 'mbsnrtowcs'.
Bruno Haible [Sun, 21 Dec 2008 13:47:35 +0000 (14:47 +0100)]
Tests for module 'mbsnrtowcs'.

15 years agoNew module 'mbsnrtowcs'.
Bruno Haible [Sun, 21 Dec 2008 13:45:44 +0000 (14:45 +0100)]
New module 'mbsnrtowcs'.

15 years agoWork around mbsrtowcs bug on various platforms.
Bruno Haible [Sun, 21 Dec 2008 12:36:23 +0000 (13:36 +0100)]
Work around mbsrtowcs bug on various platforms.

15 years agoExecute the main loop twice, as intended.
Bruno Haible [Sun, 21 Dec 2008 12:29:51 +0000 (13:29 +0100)]
Execute the main loop twice, as intended.

15 years agoMention that AIX has a crippled wchar_t type.
Bruno Haible [Sun, 21 Dec 2008 12:26:10 +0000 (13:26 +0100)]
Mention that AIX has a crippled wchar_t type.

15 years agoUpdate for HP-UX 11.11.
Bruno Haible [Sun, 21 Dec 2008 11:33:42 +0000 (12:33 +0100)]
Update for HP-UX 11.11.

15 years agoWork around a portability problem.
Bruno Haible [Sun, 21 Dec 2008 11:05:35 +0000 (12:05 +0100)]
Work around a portability problem.

15 years agoOops, remove unintended commit.
Bruno Haible [Sun, 21 Dec 2008 10:31:43 +0000 (11:31 +0100)]
Oops, remove unintended commit.

15 years agoOverride mbsrtowcs when redefining mbstate_t.
Bruno Haible [Sun, 21 Dec 2008 03:53:17 +0000 (04:53 +0100)]
Override mbsrtowcs when redefining mbstate_t.

15 years agoWork around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
Bruno Haible [Sun, 21 Dec 2008 01:55:00 +0000 (02:55 +0100)]
Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.

15 years agoAvoid test failure on AIX.
Bruno Haible [Sun, 21 Dec 2008 01:36:06 +0000 (02:36 +0100)]
Avoid test failure on AIX.

15 years agoWork around wctob bug on Solaris 9.
Bruno Haible [Sun, 21 Dec 2008 00:22:07 +0000 (01:22 +0100)]
Work around wctob bug on Solaris 9.

15 years agoDocument a select() bug on Solaris 2.6.
Bruno Haible [Sat, 20 Dec 2008 19:44:55 +0000 (20:44 +0100)]
Document a select() bug on Solaris 2.6.

15 years agoAvoid false report of ja_JP.EUC-JP locale under Cygwin.
Bruno Haible [Sat, 20 Dec 2008 15:08:46 +0000 (16:08 +0100)]
Avoid false report of ja_JP.EUC-JP locale under Cygwin.

15 years agoAvoid compiler warnings on Cygwin.
Bruno Haible [Sat, 20 Dec 2008 13:31:30 +0000 (14:31 +0100)]
Avoid compiler warnings on Cygwin.

15 years agoEnsure mbstate_t is defined on HP-UX 11.11.
Bruno Haible [Sat, 20 Dec 2008 12:43:27 +0000 (13:43 +0100)]
Ensure mbstate_t is defined on HP-UX 11.11.

15 years agoEnsure wctob is declared on IRIX 6.5.
Bruno Haible [Sat, 20 Dec 2008 11:48:18 +0000 (12:48 +0100)]
Ensure wctob is declared on IRIX 6.5.

15 years agoAvoid a test failure on AIX.
Bruno Haible [Sat, 20 Dec 2008 03:35:27 +0000 (04:35 +0100)]
Avoid a test failure on AIX.

15 years agoAvoid test failure on platforms where sizeof (wchar_t) < sizeof (int).
Bruno Haible [Sat, 20 Dec 2008 03:21:20 +0000 (04:21 +0100)]
Avoid test failure on platforms where sizeof (wchar_t) < sizeof (int).

15 years agoTests for module 'mbsrtowcs'.
Bruno Haible [Sat, 20 Dec 2008 01:04:14 +0000 (02:04 +0100)]
Tests for module 'mbsrtowcs'.

15 years agoNew module 'mbsrtowcs'.
Bruno Haible [Sat, 20 Dec 2008 01:02:35 +0000 (02:02 +0100)]
New module 'mbsrtowcs'.

15 years agoNew module 'mbrlen'.
Bruno Haible [Sat, 20 Dec 2008 00:54:05 +0000 (01:54 +0100)]
New module 'mbrlen'.

15 years agoautoupdate
Karl Berry [Fri, 19 Dec 2008 13:45:50 +0000 (05:45 -0800)]
autoupdate

15 years agoNew module 'mbrlen'.
Bruno Haible [Fri, 19 Dec 2008 12:01:07 +0000 (13:01 +0100)]
New module 'mbrlen'.

15 years agoVerify an assumption.
Bruno Haible [Fri, 19 Dec 2008 11:54:07 +0000 (12:54 +0100)]
Verify an assumption.

15 years agoTests for module 'mbsinit'.
Bruno Haible [Fri, 19 Dec 2008 02:34:16 +0000 (03:34 +0100)]
Tests for module 'mbsinit'.

15 years agoTests for module 'mbrtowc'.
Bruno Haible [Fri, 19 Dec 2008 02:33:05 +0000 (03:33 +0100)]
Tests for module 'mbrtowc'.

15 years agoNew module 'mbrtowc'.
Bruno Haible [Fri, 19 Dec 2008 02:30:28 +0000 (03:30 +0100)]
New module 'mbrtowc'.

15 years agoNew module 'wctob'.
Bruno Haible [Fri, 19 Dec 2008 02:12:24 +0000 (03:12 +0100)]
New module 'wctob'.

15 years agoEnsure wchar.h is replaced when needed.
Bruno Haible [Fri, 19 Dec 2008 01:58:16 +0000 (02:58 +0100)]
Ensure wchar.h is replaced when needed.

15 years agoflock: Fix trivial mistakes.
Simon Josefsson [Thu, 18 Dec 2008 18:30:16 +0000 (19:30 +0100)]
flock: Fix trivial mistakes.

15 years agoautoupdate
Karl Berry [Thu, 18 Dec 2008 17:44:20 +0000 (09:44 -0800)]
autoupdate

15 years agoDetermination of a Japanese EUC-JP locale.
Bruno Haible [Thu, 18 Dec 2008 11:51:03 +0000 (12:51 +0100)]
Determination of a Japanese EUC-JP locale.