diff --git a/ABOUT-NLS b/ABOUT-NLS index ed3565a..83bc72e 100644 --- a/ABOUT-NLS +++ b/ABOUT-NLS @@ -101,8 +101,11 @@ codes, stating which languages are allowed. As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate -`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, -and `CC' is an ISO 3166 two-letter country code. For example, let's +`LL_CC' combination. If you happen to have the `LC_ALL' or some other +`LC_xxx' environment variables set, you should unset them before +setting `LANG', otherwise the setting of `LANG' will not have the +desired effect. Here `LL' is an ISO 639 two-letter language code, and +`CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). @@ -118,8 +121,8 @@ country code serves to distinguish the dialects. language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of -locales supported by your system for your country by running the command -`locale -a | grep '^LL''. +locales supported by your system for your language by running the +command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you @@ -153,8 +156,7 @@ people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, -`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" -area. +`http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. @@ -168,786 +170,866 @@ message to `sv-request@li.org', having this message body: _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to -get started, please write to `translation@iro.umontreal.ca' to reach the -coordinator for all translator teams. +get started, please write to `coordinator@translationproject.org' to +reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing -the terminology in use. Proven linguistic skill are praised more than -programming skill, here. +the terminology in use. Proven linguistic skills are praised more than +programming skills, here. 1.5 Available Packages ====================== Languages are not equally supported in all packages. The following -matrix shows the current state of internationalization, as of April -2005. The matrix shows, in regard of each package, for which languages +matrix shows the current state of internationalization, as of November +2007. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. - Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB - +-------------------------------------------------+ - GNUnet | | - a2ps | [] [] [] [] [] | - aegis | () | - ant-phone | () | - anubis | [] | - ap-utils | | - aspell | [] [] [] [] | - bash | [] [] | - batchelor | [] | - bfd | | - bibshelf | [] | - binutils | [] | - bison | [] [] | - bluez-pin | [] [] [] [] | - clisp | [] [] | - console-tools | [] [] | - coreutils | [] [] [] [] | - cpio | | - cpplib | [] [] [] | - darkstat | [] () [] | - dialog | [] [] [] [] [] [] | - diffutils | [] [] [] [] [] | - doodle | [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] | - error | [] [] [] [] | - fetchmail | [] () [] [] [] | - fileutils | [] [] | - findutils | [] [] [] | - flex | [] [] [] | - fslint | [] | - gas | | - gawk | [] [] [] | - gbiff | [] | - gcal | [] | - gcc | [] | - gettext-examples | [] [] [] [] | - gettext-runtime | [] [] [] [] | - gettext-tools | [] [] | - gimp-print | [] [] [] [] | - gip | | - gliv | [] | - glunarclock | | - gmult | [] [] | - gnubiff | () | - gnucash | [] () () [] | - gnucash-glossary | [] () | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | [] [] | - gpe-clock | [] [] | - gpe-conf | [] [] | - gpe-contacts | | - gpe-edit | [] | - gpe-go | [] | - gpe-login | [] [] | - gpe-ownerinfo | [] [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] | - gpe-taskmanager | [] [] | - gpe-timesheet | [] | - gpe-today | [] [] | - gpe-todo | [] [] | - gphoto2 | [] [] [] [] | - gprof | [] [] | - gpsdrive | () () | - gramadoir | [] [] | - grep | [] [] [] [] [] [] | - gretl | | - gsasl | [] | - gss | | - gst-plugins | [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] () | - gtkspell | [] [] [] | - hello | [] [] [] [] | - id-utils | [] [] | - impost | | - indent | [] [] | - iso_3166 | | - iso_3166_1 | [] [] [] [] [] | - iso_3166_2 | | - iso_3166_3 | [] | - iso_4217 | | - iso_639 | | - jpilot | [] | - jtag | | - jwhois | | - kbd | [] [] [] [] | - latrine | () | - ld | [] | - libc | [] [] [] [] [] | - libextractor | | - libgpewidget | [] [] [] | - libgsasl | | - libiconv | [] [] [] [] [] | - libidn | | - lifelines | [] () | - lilypond | [] | - lingoteach | | - lynx | [] [] [] [] | - m4 | [] [] [] [] | - mailutils | [] | - make | [] [] | - man-db | [] () [] [] | - minicom | [] [] | - mysecretdiary | [] [] | - nano | [] () [] | - nano_1_0 | [] () [] [] | - opcodes | [] | - parted | [] [] [] [] | - psmisc | | - ptx | [] [] [] | - pwdutils | | - python | | - radius | [] | - recode | [] [] [] [] [] | - rpm | [] [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] [] | - sed | [] [] | - sh-utils | [] [] | - shared-mime-info | [] [] | - sharutils | [] [] [] [] [] | - silky | | - skencil | [] () | - sketch | [] () | - solfege | [] | - soundtracker | [] [] | - sp | [] | - stardict | [] | - tar | | - texinfo | [] [] | - textutils | [] [] [] | - tin | () () | - tp-robot | [] | - tuxpaint | [] [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] [] | - vorbis-tools | [] [] [] [] | - wastesedge | () | - wdiff | [] [] [] [] | - wget | [] [] [] [] [] [] | - xchat | [] [] [] [] | - xkeyboard-config | | - xpad | | - +-------------------------------------------------+ - af am ar az be bg bs ca cs cy da de el en en_GB - 10 0 0 2 7 4 0 41 43 3 52 90 20 1 15 + Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo + +----------------------------------------------------+ + Compendium | [] [] [] [] | + a2ps | [] [] [] [] [] | + aegis | () | + ant-phone | () | + anubis | [] | + ap-utils | | + aspell | [] [] [] [] [] | + bash | [] | + bfd | | + bibshelf | [] | + binutils | | + bison | [] [] | + bison-runtime | [] | + bluez-pin | [] [] [] [] [] | + cflow | [] | + clisp | [] [] [] | + console-tools | [] [] | + coreutils | [] [] [] [] | + cpio | | + cpplib | [] [] [] | + cryptonit | [] | + dialog | | + diffutils | [] [] [] [] [] [] | + doodle | [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] | + fetchmail | [] [] () [] [] | + findutils | [] | + findutils_stable | [] [] [] | + flex | [] [] [] | + fslint | | + gas | | + gawk | [] [] [] | + gcal | [] | + gcc | [] | + gettext-examples | [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] | + gettext-tools | [] [] | + gip | [] | + gliv | [] [] | + glunarclock | [] | + gmult | [] [] | + gnubiff | () | + gnucash | [] [] () () [] | + gnuedu | | + gnulib | [] | + gnunet | | + gnunet-gtk | | + gnutls | [] | + gpe-aerial | [] [] | + gpe-beam | [] [] | + gpe-calendar | | + gpe-clock | [] [] | + gpe-conf | [] [] | + gpe-contacts | | + gpe-edit | [] | + gpe-filemanager | | + gpe-go | [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] | + gpe-package | | + gpe-sketchbook | [] [] | + gpe-su | [] [] | + gpe-taskmanager | [] [] | + gpe-timesheet | [] | + gpe-today | [] [] | + gpe-todo | | + gphoto2 | [] [] [] [] | + gprof | [] [] | + gpsdrive | | + gramadoir | [] [] | + grep | [] [] | + gretl | () | + gsasl | | + gss | | + gst-plugins-bad | [] [] | + gst-plugins-base | [] [] | + gst-plugins-good | [] [] [] | + gst-plugins-ugly | [] [] | + gstreamer | [] [] [] [] [] [] [] | + gtick | () | + gtkam | [] [] [] [] | + gtkorphan | [] [] | + gtkspell | [] [] [] [] | + gutenprint | [] | + hello | [] [] [] [] [] | + herrie | [] | + hylafax | | + idutils | [] [] | + indent | [] [] [] [] | + iso_15924 | | + iso_3166 | [] [] [] [] [] [] [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | [] [] [] | + iso_639 | [] [] [] [] | + jpilot | [] | + jtag | | + jwhois | | + kbd | [] [] [] [] | + keytouch | [] [] | + keytouch-editor | [] | + keytouch-keyboa... | [] | + latrine | () | + ld | [] | + leafpad | [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] | + libextractor | [] | + libgpewidget | [] [] [] | + libgpg-error | [] | + libgphoto2 | [] [] | + libgphoto2_port | [] [] | + libgsasl | | + libiconv | [] [] | + libidn | [] [] [] | + lifelines | [] () | + lilypond | [] | + lingoteach | | + lprng | | + lynx | [] [] [] [] | + m4 | [] [] [] [] | + mailfromd | | + mailutils | [] | + make | [] [] | + man-db | [] [] [] | + minicom | [] [] [] | + nano | [] [] [] | + opcodes | [] | + parted | [] [] | + pilot-qof | | + popt | [] [] [] | + psmisc | [] | + pwdutils | | + qof | | + radius | [] | + recode | [] [] [] [] [] [] | + rpm | [] | + screem | | + scrollkeeper | [] [] [] [] [] [] [] [] | + sed | [] [] [] | + shared-mime-info | [] [] [] [] () [] [] [] | + sharutils | [] [] [] [] [] [] | + shishi | | + skencil | [] () | + solfege | | + soundtracker | [] [] | + sp | [] | + system-tools-ba... | [] [] [] [] [] [] [] [] [] | + tar | [] [] | + texinfo | [] [] [] | + tin | () () | + tuxpaint | [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] [] [] | + util-linux-ng | [] [] [] [] | + vorbis-tools | [] | + wastesedge | () | + wdiff | [] [] [] [] | + wget | [] [] [] | + xchat | [] [] [] [] [] [] [] | + xkeyboard-config | [] | + xpad | [] [] [] | + +----------------------------------------------------+ + af am ar az be bg bs ca cs cy da de el en en_GB eo + 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18 - eo es et eu fa fi fr ga gl he hr hu id is it - +-----------------------------------------------+ - GNUnet | | - a2ps | [] [] [] () | - aegis | | - ant-phone | [] | - anubis | [] | - ap-utils | [] | - aspell | [] [] | - bash | [] [] [] [] | - batchelor | [] [] | - bfd | [] | - bibshelf | [] [] [] | - binutils | [] [] | - bison | [] [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] | - clisp | [] [] | - console-tools | | - coreutils | [] [] [] [] [] | - cpio | [] [] | - cpplib | [] [] | - darkstat | [] () [] [] [] | - dialog | [] [] [] [] [] [] [] [] | - diffutils | [] [] [] [] [] [] [] [] [] [] | - doodle | [] [] | - e2fsprogs | [] [] [] | - enscript | [] [] | - error | [] [] [] [] [] | - fetchmail | [] | - fileutils | [] [] [] [] [] [] | - findutils | [] [] [] [] [] | - flex | [] [] [] | - fslint | [] | - gas | [] [] | - gawk | [] [] [] [] | - gbiff | [] | - gcal | [] [] | - gcc | [] | - gettext-examples | [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] | - gimp-print | [] [] | - gip | [] [] [] | - gliv | () | - glunarclock | [] [] [] | - gmult | [] [] [] | - gnubiff | () () | - gnucash | [] () [] | - gnucash-glossary | [] [] | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | [] [] [] [] | - gpe-clock | [] [] [] | - gpe-conf | [] | - gpe-contacts | [] | - gpe-edit | [] [] | - gpe-go | [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] [] [] [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] | - gpe-taskmanager | [] [] [] | - gpe-timesheet | [] [] [] [] | - gpe-today | [] [] [] [] | - gpe-todo | [] [] [] | - gphoto2 | [] [] [] [] [] | - gprof | [] [] [] | - gpsdrive | () () [] () | - gramadoir | [] [] | - grep | [] [] [] [] [] [] [] [] [] [] [] [] | - gretl | [] [] [] | - gsasl | [] [] [] | - gss | [] | - gst-plugins | [] [] [] | - gstreamer | [] | - gtick | [] [] [] [] [] | - gtkspell | [] [] [] [] [] [] | - hello | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | - id-utils | [] [] [] [] | - impost | [] [] | - indent | [] [] [] [] [] [] [] [] [] [] [] | - iso_3166 | [] [] [] | - iso_3166_1 | [] [] [] [] [] [] [] | - iso_3166_2 | [] | - iso_3166_3 | [] | - iso_4217 | [] [] [] | - iso_639 | [] [] [] [] | - jpilot | [] [] | - jtag | [] | - jwhois | [] [] [] [] [] | - kbd | [] [] | - latrine | [] [] [] | - ld | [] [] | - libc | [] [] [] [] [] | - libextractor | | - libgpewidget | [] [] [] [] [] | - libgsasl | [] [] | - libiconv | [] [] [] [] [] [] [] [] [] [] [] | - libidn | [] [] | - lifelines | () | - lilypond | [] | - lingoteach | [] [] [] | - lynx | [] [] [] | - m4 | [] [] [] [] | - mailutils | [] [] | - make | [] [] [] [] [] [] [] | - man-db | () | - minicom | [] [] [] [] | - mysecretdiary | [] [] [] | - nano | [] [] () [] [] | - nano_1_0 | [] [] [] [] [] | - opcodes | [] [] | - parted | [] [] [] [] | - psmisc | [] [] | - ptx | [] [] [] [] [] [] [] [] [] | - pwdutils | | - python | | - radius | [] [] | - recode | [] [] [] [] [] [] [] [] | - rpm | [] | - screem | | - scrollkeeper | [] [] [] | - sed | [] [] [] [] [] | - sh-utils | [] [] [] [] [] [] [] | - shared-mime-info | [] [] [] [] [] [] | - sharutils | [] [] [] [] [] [] [] | - silky | [] | - skencil | [] [] | - sketch | [] [] | - solfege | [] | - soundtracker | [] [] [] | - sp | [] | - stardict | [] | - tar | [] [] [] [] [] | - texinfo | [] [] [] | - textutils | [] [] [] [] [] | - tin | [] () | - tp-robot | [] [] | - tuxpaint | [] [] [] [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | [] [] | - util-linux | [] [] [] [] [] [] | - vorbis-tools | [] [] | - wastesedge | () | - wdiff | [] [] [] [] [] [] [] [] | - wget | [] [] [] [] [] [] [] [] [] [] | - xchat | [] [] [] [] [] | - xkeyboard-config | | - xpad | [] [] [] | - +-----------------------------------------------+ - eo es et eu fa fi fr ga gl he hr hu id is it - 13 85 21 15 2 35 115 45 17 8 6 40 27 1 45 + es et eu fa fi fr ga gl gu he hi hr hu id is it + +--------------------------------------------------+ + Compendium | [] [] [] [] [] | + a2ps | [] [] [] () | + aegis | | + ant-phone | [] | + anubis | [] | + ap-utils | [] [] | + aspell | [] [] [] | + bash | [] | + bfd | [] [] | + bibshelf | [] [] [] | + binutils | [] [] [] | + bison | [] [] [] [] [] [] | + bison-runtime | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] | + cflow | [] | + clisp | [] [] | + console-tools | | + coreutils | [] [] [] [] [] [] | + cpio | [] [] [] | + cpplib | [] [] | + cryptonit | [] | + dialog | [] [] [] | + diffutils | [] [] [] [] [] [] [] [] [] | + doodle | [] [] | + e2fsprogs | [] [] [] | + enscript | [] [] [] | + fetchmail | [] | + findutils | [] [] [] | + findutils_stable | [] [] [] [] | + flex | [] [] [] | + fslint | | + gas | [] [] | + gawk | [] [] [] [] () | + gcal | [] [] | + gcc | [] | + gettext-examples | [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] | + gettext-tools | [] [] [] [] | + gip | [] [] [] [] | + gliv | () | + glunarclock | [] [] [] | + gmult | [] [] [] | + gnubiff | () () | + gnucash | () () () | + gnuedu | [] | + gnulib | [] [] [] | + gnunet | | + gnunet-gtk | | + gnutls | | + gpe-aerial | [] [] | + gpe-beam | [] [] | + gpe-calendar | | + gpe-clock | [] [] [] [] | + gpe-conf | [] | + gpe-contacts | [] [] | + gpe-edit | [] [] [] [] | + gpe-filemanager | [] | + gpe-go | [] [] [] | + gpe-login | [] [] [] | + gpe-ownerinfo | [] [] [] [] [] | + gpe-package | [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] [] [] | + gpe-taskmanager | [] [] [] | + gpe-timesheet | [] [] [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] | + gphoto2 | [] [] [] [] [] | + gprof | [] [] [] [] [] | + gpsdrive | [] | + gramadoir | [] [] | + grep | [] [] [] | + gretl | [] [] [] () | + gsasl | [] [] | + gss | [] [] | + gst-plugins-bad | [] [] [] [] | + gst-plugins-base | [] [] [] [] | + gst-plugins-good | [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] | + gstreamer | [] [] [] | + gtick | [] [] [] | + gtkam | [] [] [] [] | + gtkorphan | [] [] | + gtkspell | [] [] [] [] [] [] [] | + gutenprint | [] | + hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | + herrie | [] | + hylafax | | + idutils | [] [] [] [] [] | + indent | [] [] [] [] [] [] [] [] [] [] | + iso_15924 | [] | + iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | + iso_3166_2 | [] | + iso_4217 | [] [] [] [] [] [] | + iso_639 | [] [] [] [] [] [] | + jpilot | [] [] | + jtag | [] | + jwhois | [] [] [] [] [] | + kbd | [] [] | + keytouch | [] [] [] | + keytouch-editor | [] | + keytouch-keyboa... | [] [] | + latrine | [] [] | + ld | [] [] [] [] | + leafpad | [] [] [] [] [] [] | + libc | [] [] [] [] [] | + libexif | [] | + libextractor | [] | + libgpewidget | [] [] [] [] [] | + libgpg-error | [] | + libgphoto2 | [] [] [] | + libgphoto2_port | [] [] | + libgsasl | [] [] | + libiconv | [] [] [] | + libidn | [] [] | + lifelines | () | + lilypond | [] [] [] | + lingoteach | [] [] [] | + lprng | | + lynx | [] [] [] | + m4 | [] [] [] [] | + mailfromd | | + mailutils | [] [] | + make | [] [] [] [] [] [] [] [] | + man-db | [] | + minicom | [] [] [] [] | + nano | [] [] [] [] [] [] [] | + opcodes | [] [] [] [] | + parted | [] [] [] | + pilot-qof | | + popt | [] [] [] [] | + psmisc | [] [] | + pwdutils | | + qof | [] | + radius | [] [] | + recode | [] [] [] [] [] [] [] [] | + rpm | [] [] | + screem | | + scrollkeeper | [] [] [] | + sed | [] [] [] [] [] | + shared-mime-info | [] [] [] [] [] [] | + sharutils | [] [] [] [] [] [] [] [] | + shishi | [] | + skencil | [] [] | + solfege | [] | + soundtracker | [] [] [] | + sp | [] | + system-tools-ba... | [] [] [] [] [] [] [] [] [] | + tar | [] [] [] [] [] | + texinfo | [] [] [] | + tin | [] () | + tuxpaint | [] [] | + unicode-han-tra... | | + unicode-transla... | [] [] | + util-linux | [] [] [] [] [] [] [] | + util-linux-ng | [] [] [] [] [] [] [] | + vorbis-tools | | + wastesedge | () | + wdiff | [] [] [] [] [] [] [] [] | + wget | [] [] [] [] [] [] [] [] | + xchat | [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] [] | + xpad | [] [] [] | + +--------------------------------------------------+ + es et eu fa fi fr ga gl gu he hi hr hu id is it + 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52 - ja ko ku lg lt lv mk mn ms mt nb nl nn no nso - +-----------------------------------------------+ - GNUnet | | - a2ps | () [] [] () | - aegis | () | - ant-phone | [] | - anubis | [] [] [] | - ap-utils | | - aspell | [] [] | - bash | [] | - batchelor | [] | - bfd | | - bibshelf | | - binutils | | - bison | [] [] [] | - bluez-pin | [] | - clisp | [] | - console-tools | | - coreutils | [] [] | - cpio | | - cpplib | | - darkstat | [] [] | - dialog | [] | - diffutils | [] [] [] | - doodle | | - e2fsprogs | | - enscript | [] | - error | [] | - fetchmail | [] [] | - fileutils | [] [] | - findutils | [] | - flex | [] [] | - fslint | [] | - gas | | - gawk | [] [] | - gbiff | [] | - gcal | | - gcc | | - gettext-examples | [] [] | - gettext-runtime | [] [] [] | - gettext-tools | [] [] | - gimp-print | [] [] | - gip | [] | - gliv | [] | - glunarclock | [] [] | - gmult | [] | - gnubiff | | - gnucash | () () [] | - gnucash-glossary | [] | - gpe-aerial | [] | - gpe-beam | [] | - gpe-calendar | [] | - gpe-clock | [] | - gpe-conf | [] | - gpe-contacts | | - gpe-edit | [] | - gpe-go | [] | - gpe-login | [] | - gpe-ownerinfo | [] | - gpe-sketchbook | [] | - gpe-su | [] | - gpe-taskmanager | [] [] | - gpe-timesheet | [] | - gpe-today | [] | - gpe-todo | [] | - gphoto2 | [] [] | - gprof | | - gpsdrive | () () () | - gramadoir | () | - grep | [] [] [] | - gretl | | - gsasl | [] | - gss | | - gst-plugins | [] | - gstreamer | [] | - gtick | [] | - gtkspell | [] [] | - hello | [] [] [] [] [] [] [] [] | - id-utils | [] | - impost | | - indent | [] [] | - iso_3166 | [] | - iso_3166_1 | [] [] | - iso_3166_2 | [] | - iso_3166_3 | [] | - iso_4217 | [] [] [] | - iso_639 | [] [] [] | - jpilot | () () () | - jtag | | - jwhois | [] | - kbd | [] | - latrine | [] | - ld | | - libc | [] [] [] [] [] | - libextractor | | - libgpewidget | [] | - libgsasl | [] | - libiconv | [] | - libidn | | - lifelines | [] | - lilypond | [] | - lingoteach | [] | - lynx | [] [] | - m4 | [] [] | - mailutils | | - make | [] [] [] | - man-db | () | - minicom | [] | - mysecretdiary | [] | - nano | [] [] | - nano_1_0 | [] [] [] | - opcodes | [] | - parted | [] [] | - psmisc | [] [] | - ptx | [] [] [] | - pwdutils | | - python | | - radius | | - recode | [] | - rpm | [] [] | - screem | [] | - scrollkeeper | [] [] [] | - sed | [] [] | - sh-utils | [] [] | - shared-mime-info | [] [] [] [] | - sharutils | [] [] | - silky | [] | - skencil | | - sketch | | - solfege | [] [] | - soundtracker | | - sp | () | - stardict | [] [] | - tar | [] [] | - texinfo | [] [] [] | - textutils | [] [] [] | - tin | | - tp-robot | [] | - tuxpaint | [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] | - vorbis-tools | [] | - wastesedge | [] | - wdiff | [] [] | - wget | [] [] | - xchat | [] [] [] [] | - xkeyboard-config | [] | - xpad | [] | - +-----------------------------------------------+ - ja ko ku lg lt lv mk mn ms mt nb nl nn no nso - 33 11 1 1 1 2 2 3 11 0 15 96 7 5 0 + ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn + +--------------------------------------------------+ + Compendium | [] | + a2ps | () [] [] | + aegis | () | + ant-phone | [] | + anubis | [] [] [] | + ap-utils | [] | + aspell | [] [] | + bash | [] | + bfd | | + bibshelf | [] | + binutils | | + bison | [] [] [] | + bison-runtime | [] [] [] | + bluez-pin | [] [] [] | + cflow | | + clisp | [] | + console-tools | | + coreutils | [] | + cpio | [] | + cpplib | [] | + cryptonit | [] | + dialog | [] [] | + diffutils | [] [] [] | + doodle | | + e2fsprogs | [] | + enscript | [] | + fetchmail | [] [] | + findutils | [] | + findutils_stable | [] | + flex | [] [] | + fslint | | + gas | | + gawk | [] [] | + gcal | | + gcc | | + gettext-examples | [] [] [] | + gettext-runtime | [] [] [] | + gettext-tools | [] [] | + gip | [] [] | + gliv | [] | + glunarclock | [] [] | + gmult | [] [] [] | + gnubiff | | + gnucash | () () () | + gnuedu | | + gnulib | [] [] | + gnunet | | + gnunet-gtk | | + gnutls | [] | + gpe-aerial | [] | + gpe-beam | [] | + gpe-calendar | [] | + gpe-clock | [] [] [] | + gpe-conf | [] [] [] | + gpe-contacts | [] | + gpe-edit | [] [] [] | + gpe-filemanager | [] [] | + gpe-go | [] [] [] | + gpe-login | [] [] [] | + gpe-ownerinfo | [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] [] | + gpe-taskmanager | [] [] [] [] | + gpe-timesheet | [] | + gpe-today | [] [] | + gpe-todo | [] | + gphoto2 | [] [] | + gprof | [] | + gpsdrive | [] | + gramadoir | () | + grep | [] [] | + gretl | | + gsasl | [] | + gss | | + gst-plugins-bad | [] | + gst-plugins-base | [] | + gst-plugins-good | [] | + gst-plugins-ugly | [] | + gstreamer | [] | + gtick | [] | + gtkam | [] [] | + gtkorphan | [] | + gtkspell | [] [] | + gutenprint | [] | + hello | [] [] [] [] [] [] [] | + herrie | [] | + hylafax | | + idutils | [] | + indent | [] [] | + iso_15924 | [] | + iso_3166 | [] [] [] [] [] [] [] [] | + iso_3166_2 | [] | + iso_4217 | [] [] [] | + iso_639 | [] [] [] [] | + jpilot | () () | + jtag | | + jwhois | [] | + kbd | [] | + keytouch | [] | + keytouch-editor | [] | + keytouch-keyboa... | | + latrine | [] | + ld | | + leafpad | [] [] | + libc | [] [] [] | + libexif | | + libextractor | | + libgpewidget | [] | + libgpg-error | | + libgphoto2 | [] | + libgphoto2_port | [] | + libgsasl | [] | + libiconv | [] | + libidn | [] [] | + lifelines | [] | + lilypond | [] | + lingoteach | [] | + lprng | | + lynx | [] [] | + m4 | [] [] | + mailfromd | | + mailutils | | + make | [] [] [] | + man-db | | + minicom | [] | + nano | [] [] [] | + opcodes | [] | + parted | [] [] | + pilot-qof | | + popt | [] [] [] | + psmisc | [] [] [] | + pwdutils | | + qof | | + radius | | + recode | [] | + rpm | [] [] | + screem | [] | + scrollkeeper | [] [] [] [] | + sed | [] [] | + shared-mime-info | [] [] [] [] [] [] [] | + sharutils | [] [] | + shishi | | + skencil | | + solfege | () () | + soundtracker | | + sp | () | + system-tools-ba... | [] [] [] [] | + tar | [] [] [] | + texinfo | [] [] | + tin | | + tuxpaint | () [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] | + util-linux-ng | [] [] | + vorbis-tools | | + wastesedge | [] | + wdiff | [] [] | + wget | [] [] | + xchat | [] [] [] [] | + xkeyboard-config | [] [] [] | + xpad | [] [] [] | + +--------------------------------------------------+ + ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn + 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6 - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - +-------------------------------------------------+ - GNUnet | | - a2ps | () [] [] [] [] [] [] | - aegis | () () | - ant-phone | [] | - anubis | [] [] [] | - ap-utils | () | - aspell | [] [] | - bash | [] [] [] | - batchelor | [] | - bfd | | - bibshelf | | - binutils | [] [] | - bison | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] [] [] | - clisp | [] | - console-tools | [] | - coreutils | [] [] [] [] | - cpio | [] [] | - cpplib | | - darkstat | [] [] [] [] [] [] | - dialog | [] [] [] [] [] [] [] | - diffutils | [] [] [] [] [] [] | - doodle | [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] | - error | [] [] [] | - fetchmail | [] () [] [] [] | - fileutils | [] [] [] [] [] | - findutils | [] [] [] [] [] [] | - flex | [] [] [] [] [] | - fslint | [] [] [] | - gas | | - gawk | [] [] [] [] | - gbiff | [] | - gcal | [] | - gcc | | - gettext-examples | [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] [] [] | - gimp-print | [] [] | - gip | [] [] [] | - gliv | [] [] [] | - glunarclock | [] [] [] [] [] [] | - gmult | [] [] [] [] | - gnubiff | () [] | - gnucash | () [] [] [] [] | - gnucash-glossary | [] [] [] | - gpe-aerial | [] [] [] [] [] [] | - gpe-beam | [] [] [] [] [] [] | - gpe-calendar | [] [] [] [] [] [] [] | - gpe-clock | [] [] [] [] [] [] [] | - gpe-conf | [] [] [] [] [] [] | - gpe-contacts | [] [] [] | - gpe-edit | [] [] [] [] [] [] [] | - gpe-go | [] [] [] [] [] | - gpe-login | [] [] [] [] [] [] [] | - gpe-ownerinfo | [] [] [] [] [] [] [] | - gpe-sketchbook | [] [] [] [] [] [] [] | - gpe-su | [] [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] [] [] | - gpe-timesheet | [] [] [] [] [] [] [] | - gpe-today | [] [] [] [] [] [] [] | - gpe-todo | [] [] [] [] [] [] [] | - gphoto2 | [] [] [] [] | - gprof | [] [] [] | - gpsdrive | [] | - gramadoir | [] | - grep | [] [] [] [] [] [] [] | - gretl | [] | - gsasl | [] [] [] [] [] | - gss | [] [] [] | - gst-plugins | [] [] [] [] | - gstreamer | [] [] [] [] | - gtick | [] [] [] | - gtkspell | [] [] [] [] [] [] | - hello | [] [] [] [] [] [] [] | - id-utils | [] [] [] [] | - impost | | - indent | [] [] [] [] [] [] | - iso_3166 | [] [] [] [] [] | - iso_3166_1 | [] [] [] [] | - iso_3166_2 | | - iso_3166_3 | [] [] [] | - iso_4217 | [] [] | - iso_639 | [] [] [] | - jpilot | | - jtag | [] | - jwhois | [] [] [] () () | - kbd | [] [] [] | - latrine | [] [] | - ld | [] | - libc | [] [] [] [] [] | - libextractor | [] | - libgpewidget | [] [] [] [] [] [] | - libgsasl | [] [] [] | - libiconv | [] [] [] [] [] [] [] [] [] [] | - libidn | [] () | - lifelines | [] [] | - lilypond | [] | - lingoteach | [] | - lynx | [] [] [] | - m4 | [] [] [] [] [] | - mailutils | [] [] [] | - make | [] [] [] [] | - man-db | [] [] | - minicom | [] [] [] [] | - mysecretdiary | [] [] [] [] | - nano | [] [] [] | - nano_1_0 | [] [] [] [] | - opcodes | [] [] | - parted | [] [] [] [] | - psmisc | [] [] | - ptx | [] [] [] [] [] [] | - pwdutils | [] | - python | | - radius | [] [] | - recode | [] [] [] [] [] [] | - rpm | [] [] [] [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] | - sed | [] [] [] [] [] [] [] [] | - sh-utils | [] [] [] | - shared-mime-info | [] [] [] [] [] | - sharutils | [] [] [] | - silky | [] | - skencil | [] [] [] | - sketch | [] [] [] | - solfege | | - soundtracker | [] [] | - sp | | - stardict | [] [] | - tar | [] [] [] [] | - texinfo | [] [] [] [] | - textutils | [] [] [] | - tin | | - tp-robot | [] | - tuxpaint | [] [] [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] | - vorbis-tools | [] [] | - wastesedge | | - wdiff | [] [] [] [] [] [] | - wget | [] [] [] [] [] [] [] [] [] | - xchat | [] [] [] [] [] [] | - xkeyboard-config | | - xpad | | - +-------------------------------------------------+ - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - 1 0 48 30 58 6 79 71 5 45 13 12 50 86 0 + or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta + +--------------------------------------------------+ + Compendium | [] [] [] [] [] | + a2ps | () [] [] [] [] [] [] | + aegis | () () | + ant-phone | [] [] | + anubis | [] [] [] | + ap-utils | () | + aspell | [] [] [] | + bash | [] [] | + bfd | | + bibshelf | [] | + binutils | [] [] | + bison | [] [] [] [] [] | + bison-runtime | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] [] | + cflow | [] | + clisp | [] | + console-tools | [] | + coreutils | [] [] [] [] | + cpio | [] [] [] | + cpplib | [] | + cryptonit | [] [] | + dialog | [] | + diffutils | [] [] [] [] [] [] | + doodle | [] [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] [] | + fetchmail | [] [] [] | + findutils | [] [] [] | + findutils_stable | [] [] [] [] [] [] | + flex | [] [] [] [] [] | + fslint | [] | + gas | | + gawk | [] [] [] [] | + gcal | [] | + gcc | [] [] | + gettext-examples | [] [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] [] [] | + gettext-tools | [] [] [] [] [] [] [] | + gip | [] [] [] [] | + gliv | [] [] [] [] [] [] | + glunarclock | [] [] [] [] [] [] | + gmult | [] [] [] [] | + gnubiff | () [] | + gnucash | () [] | + gnuedu | | + gnulib | [] [] [] | + gnunet | | + gnunet-gtk | [] | + gnutls | [] [] | + gpe-aerial | [] [] [] [] [] [] [] | + gpe-beam | [] [] [] [] [] [] [] | + gpe-calendar | [] [] [] [] | + gpe-clock | [] [] [] [] [] [] [] [] | + gpe-conf | [] [] [] [] [] [] [] | + gpe-contacts | [] [] [] [] [] | + gpe-edit | [] [] [] [] [] [] [] [] [] | + gpe-filemanager | [] [] | + gpe-go | [] [] [] [] [] [] [] [] | + gpe-login | [] [] [] [] [] [] [] [] | + gpe-ownerinfo | [] [] [] [] [] [] [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] [] [] [] [] [] [] | + gpe-su | [] [] [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] [] | + gpe-todo | [] [] [] [] | + gphoto2 | [] [] [] [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] | + gramadoir | [] [] | + grep | [] [] [] [] | + gretl | [] [] [] | + gsasl | [] [] [] | + gss | [] [] [] [] | + gst-plugins-bad | [] [] [] | + gst-plugins-base | [] [] | + gst-plugins-good | [] [] | + gst-plugins-ugly | [] [] [] | + gstreamer | [] [] [] [] | + gtick | [] | + gtkam | [] [] [] [] [] | + gtkorphan | [] | + gtkspell | [] [] [] [] [] [] [] [] | + gutenprint | [] | + hello | [] [] [] [] [] [] [] [] | + herrie | [] [] [] | + hylafax | | + idutils | [] [] [] [] [] | + indent | [] [] [] [] [] [] [] | + iso_15924 | | + iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | [] [] [] [] [] [] [] | + iso_639 | [] [] [] [] [] [] [] | + jpilot | | + jtag | [] | + jwhois | [] [] [] [] | + kbd | [] [] [] | + keytouch | [] | + keytouch-editor | [] | + keytouch-keyboa... | [] | + latrine | | + ld | [] | + leafpad | [] [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] [] | + libextractor | [] [] | + libgpewidget | [] [] [] [] [] [] [] [] | + libgpg-error | [] [] [] | + libgphoto2 | [] | + libgphoto2_port | [] [] [] | + libgsasl | [] [] [] [] | + libiconv | [] [] [] | + libidn | [] [] () | + lifelines | [] [] | + lilypond | | + lingoteach | [] | + lprng | [] | + lynx | [] [] [] | + m4 | [] [] [] [] [] | + mailfromd | [] | + mailutils | [] [] [] | + make | [] [] [] [] | + man-db | [] [] [] [] | + minicom | [] [] [] [] [] | + nano | [] [] [] [] | + opcodes | [] [] | + parted | [] | + pilot-qof | | + popt | [] [] [] [] | + psmisc | [] [] | + pwdutils | [] [] | + qof | [] [] | + radius | [] [] | + recode | [] [] [] [] [] [] [] | + rpm | [] [] [] [] | + screem | | + scrollkeeper | [] [] [] [] [] [] [] | + sed | [] [] [] [] [] [] [] [] [] | + shared-mime-info | [] [] [] [] [] [] | + sharutils | [] [] [] [] | + shishi | [] | + skencil | [] [] [] | + solfege | [] | + soundtracker | [] [] | + sp | | + system-tools-ba... | [] [] [] [] [] [] [] [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] [] | + tin | () | + tuxpaint | [] [] [] [] [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux | [] [] [] [] | + util-linux-ng | [] [] [] [] | + vorbis-tools | [] | + wastesedge | | + wdiff | [] [] [] [] [] [] [] | + wget | [] [] [] [] | + xchat | [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] | + xpad | [] [] [] | + +--------------------------------------------------+ + or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta + 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3 - tg th tk tr uk ven vi wa xh zh_CN zh_TW zu - +--------------------------------------------+ - GNUnet | | 0 - a2ps | [] [] [] | 19 - aegis | | 0 - ant-phone | [] | 4 - anubis | [] | 9 - ap-utils | () | 1 - aspell | [] [] [] | 13 - bash | | 10 - batchelor | [] [] | 7 - bfd | | 1 - bibshelf | [] | 5 - binutils | [] | 6 - bison | [] | 17 - bluez-pin | [] [] [] [] [] | 24 - clisp | | 7 - console-tools | [] | 4 - coreutils | [] | 16 - cpio | [] [] | 6 - cpplib | [] [] | 7 - darkstat | [] () () | 15 - dialog | [] [] [] | 25 - diffutils | [] [] [] [] | 28 - doodle | [] | 5 - e2fsprogs | [] | 8 - enscript | [] | 12 - error | [] [] [] | 16 - fetchmail | [] | 12 - fileutils | [] [] [] | 18 - findutils | [] [] | 17 - flex | [] [] | 15 - fslint | [] | 7 - gas | [] | 3 - gawk | [] | 14 - gbiff | | 4 - gcal | [] | 5 - gcc | [] | 3 - gettext-examples | [] [] [] [] | 20 - gettext-runtime | [] [] [] [] [] | 25 - gettext-tools | [] [] [] | 17 - gimp-print | [] | 11 - gip | [] | 8 - gliv | [] | 6 - glunarclock | [] [] | 13 - gmult | [] [] [] | 13 - gnubiff | [] | 3 - gnucash | () [] | 10 - gnucash-glossary | [] | 8 - gpe-aerial | [] [] | 13 - gpe-beam | [] [] | 13 - gpe-calendar | [] [] [] [] | 18 - gpe-clock | [] [] [] [] | 17 - gpe-conf | [] [] | 12 - gpe-contacts | [] [] | 6 - gpe-edit | [] [] [] [] | 15 - gpe-go | [] [] | 11 - gpe-login | [] [] [] [] [] | 18 - gpe-ownerinfo | [] [] [] [] | 19 - gpe-sketchbook | [] [] | 14 - gpe-su | [] [] [] | 16 - gpe-taskmanager | [] [] [] | 17 - gpe-timesheet | [] [] [] [] | 17 - gpe-today | [] [] [] [] [] | 19 - gpe-todo | [] [] [] | 16 - gphoto2 | [] [] | 17 - gprof | [] [] | 10 - gpsdrive | | 2 - gramadoir | [] | 6 - grep | [] [] [] [] | 32 - gretl | | 4 - gsasl | [] [] | 12 - gss | [] | 5 - gst-plugins | [] [] | 16 - gstreamer | [] [] [] | 14 - gtick | [] | 11 - gtkspell | [] [] [] | 20 - hello | [] [] [] [] | 37 - id-utils | [] [] | 13 - impost | [] | 3 - indent | [] [] [] | 24 - iso_3166 | [] [] [] | 12 - iso_3166_1 | [] [] | 20 - iso_3166_2 | | 2 - iso_3166_3 | [] [] | 8 - iso_4217 | [] [] | 10 - iso_639 | [] [] | 12 - jpilot | [] [] [] | 6 - jtag | | 2 - jwhois | [] [] [] | 12 - kbd | [] [] | 12 - latrine | [] [] | 8 - ld | [] | 5 - libc | [] [] | 22 - libextractor | | 1 - libgpewidget | [] [] | 17 - libgsasl | [] | 7 - libiconv | [] [] [] [] [] | 32 - libidn | [] [] | 5 - lifelines | | 4 - lilypond | [] | 5 - lingoteach | | 5 - lynx | [] [] | 14 - m4 | [] [] | 17 - mailutils | [] | 7 - make | [] [] | 18 - man-db | | 5 - minicom | | 11 - mysecretdiary | [] [] | 12 - nano | | 11 - nano_1_0 | [] [] | 17 - opcodes | [] | 7 - parted | [] [] [] | 17 - psmisc | [] | 7 - ptx | [] [] | 23 - pwdutils | | 1 - python | | 0 - radius | [] | 6 - recode | [] [] | 22 - rpm | [] [] | 11 - screem | | 1 - scrollkeeper | [] [] | 23 - sed | [] [] | 19 - sh-utils | [] | 15 - shared-mime-info | [] [] | 19 - sharutils | [] [] [] | 20 - silky | | 3 - skencil | | 6 - sketch | | 6 - solfege | | 4 - soundtracker | [] | 8 - sp | [] | 3 - stardict | [] [] [] [] | 10 - tar | [] [] | 13 - texinfo | [] [] | 14 - textutils | [] [] [] | 17 - tin | | 1 - tp-robot | [] [] | 7 - tuxpaint | [] [] [] [] | 34 - unicode-han-tra... | | 0 - unicode-transla... | | 2 - util-linux | [] [] | 17 - vorbis-tools | [] | 10 - wastesedge | | 1 - wdiff | [] [] | 22 - wget | [] [] [] [] | 31 - xchat | [] [] [] | 22 - xkeyboard-config | | 1 - xpad | [] | 5 - +--------------------------------------------+ - 72 teams tg th tk tr uk ven vi wa xh zh_CN zh_TW zu - 147 domains 0 0 1 78 29 0 71 16 0 41 20 0 1711 + tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu + +---------------------------------------------------+ + Compendium | [] [] [] [] | 19 + a2ps | [] [] [] | 19 + aegis | [] | 1 + ant-phone | [] [] | 6 + anubis | [] [] [] | 11 + ap-utils | () [] | 4 + aspell | [] [] [] | 16 + bash | [] | 6 + bfd | | 2 + bibshelf | [] | 7 + binutils | [] [] [] [] | 9 + bison | [] [] [] [] | 20 + bison-runtime | [] [] [] [] | 18 + bluez-pin | [] [] [] [] [] [] | 28 + cflow | [] [] | 5 + clisp | | 9 + console-tools | [] [] | 5 + coreutils | [] [] [] | 18 + cpio | [] [] [] [] | 11 + cpplib | [] [] [] [] [] | 12 + cryptonit | [] | 6 + dialog | [] [] [] | 9 + diffutils | [] [] [] [] [] | 29 + doodle | [] | 6 + e2fsprogs | [] [] | 10 + enscript | [] [] [] | 16 + fetchmail | [] [] | 12 + findutils | [] [] [] | 11 + findutils_stable | [] [] [] [] | 18 + flex | [] [] | 15 + fslint | [] | 2 + gas | [] | 3 + gawk | [] [] [] | 16 + gcal | [] | 5 + gcc | [] [] [] | 7 + gettext-examples | [] [] [] [] [] [] | 29 + gettext-runtime | [] [] [] [] [] [] | 28 + gettext-tools | [] [] [] [] [] | 20 + gip | [] [] | 13 + gliv | [] [] | 11 + glunarclock | [] [] [] | 15 + gmult | [] [] [] [] | 16 + gnubiff | [] | 2 + gnucash | () [] | 5 + gnuedu | [] | 2 + gnulib | [] | 10 + gnunet | | 0 + gnunet-gtk | [] [] | 3 + gnutls | | 4 + gpe-aerial | [] [] | 14 + gpe-beam | [] [] | 14 + gpe-calendar | [] [] | 7 + gpe-clock | [] [] [] [] | 21 + gpe-conf | [] [] [] | 16 + gpe-contacts | [] [] | 10 + gpe-edit | [] [] [] [] [] | 22 + gpe-filemanager | [] [] | 7 + gpe-go | [] [] [] [] | 19 + gpe-login | [] [] [] [] [] | 21 + gpe-ownerinfo | [] [] [] [] | 21 + gpe-package | [] | 6 + gpe-sketchbook | [] [] | 16 + gpe-su | [] [] [] [] | 21 + gpe-taskmanager | [] [] [] [] | 21 + gpe-timesheet | [] [] [] [] | 18 + gpe-today | [] [] [] [] [] | 21 + gpe-todo | [] [] | 8 + gphoto2 | [] [] [] [] | 21 + gprof | [] [] | 13 + gpsdrive | [] | 5 + gramadoir | [] | 7 + grep | [] | 12 + gretl | | 6 + gsasl | [] [] [] | 9 + gss | [] | 7 + gst-plugins-bad | [] [] [] | 13 + gst-plugins-base | [] [] | 11 + gst-plugins-good | [] [] [] [] [] | 16 + gst-plugins-ugly | [] [] [] | 13 + gstreamer | [] [] [] | 18 + gtick | [] [] | 7 + gtkam | [] | 16 + gtkorphan | [] | 7 + gtkspell | [] [] [] [] [] [] | 27 + gutenprint | | 4 + hello | [] [] [] [] [] | 38 + herrie | [] [] | 8 + hylafax | | 0 + idutils | [] [] | 15 + indent | [] [] [] [] [] | 28 + iso_15924 | [] [] | 4 + iso_3166 | [] [] [] [] [] [] [] [] [] | 54 + iso_3166_2 | [] [] | 4 + iso_4217 | [] [] [] [] [] | 24 + iso_639 | [] [] [] [] [] | 26 + jpilot | [] [] [] [] | 7 + jtag | [] | 3 + jwhois | [] [] [] | 13 + kbd | [] [] [] | 13 + keytouch | [] | 8 + keytouch-editor | [] | 5 + keytouch-keyboa... | [] | 5 + latrine | [] [] | 5 + ld | [] [] [] [] | 10 + leafpad | [] [] [] [] [] | 24 + libc | [] [] [] | 19 + libexif | [] | 5 + libextractor | [] | 5 + libgpewidget | [] [] [] | 20 + libgpg-error | [] | 6 + libgphoto2 | [] [] | 9 + libgphoto2_port | [] [] [] | 11 + libgsasl | [] | 8 + libiconv | [] [] | 11 + libidn | [] [] | 11 + lifelines | | 4 + lilypond | [] | 6 + lingoteach | [] | 6 + lprng | [] | 2 + lynx | [] [] [] | 15 + m4 | [] [] [] | 18 + mailfromd | [] [] | 3 + mailutils | [] [] | 8 + make | [] [] [] | 20 + man-db | [] | 9 + minicom | [] | 14 + nano | [] [] [] | 20 + opcodes | [] [] | 10 + parted | [] [] [] | 11 + pilot-qof | [] | 1 + popt | [] [] [] [] | 18 + psmisc | [] [] | 10 + pwdutils | [] | 3 + qof | [] | 4 + radius | [] [] | 7 + recode | [] [] [] | 25 + rpm | [] [] [] [] | 13 + screem | [] | 2 + scrollkeeper | [] [] [] [] | 26 + sed | [] [] [] [] | 23 + shared-mime-info | [] [] [] | 29 + sharutils | [] [] [] | 23 + shishi | [] | 3 + skencil | [] | 7 + solfege | [] | 3 + soundtracker | [] [] | 9 + sp | [] | 3 + system-tools-ba... | [] [] [] [] [] [] [] | 38 + tar | [] [] [] | 17 + texinfo | [] [] [] | 15 + tin | | 1 + tuxpaint | [] [] [] | 19 + unicode-han-tra... | | 0 + unicode-transla... | | 2 + util-linux | [] [] [] | 20 + util-linux-ng | [] [] [] | 20 + vorbis-tools | [] [] | 4 + wastesedge | | 1 + wdiff | [] [] | 23 + wget | [] [] [] | 20 + xchat | [] [] [] [] | 29 + xkeyboard-config | [] [] [] | 14 + xpad | [] [] [] | 15 + +---------------------------------------------------+ + 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu + 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are @@ -960,10 +1042,10 @@ distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. - If April 2005 seems to be old, you may fetch a more recent copy of -this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date -matrix with full percentage details can be found at -`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. + If November 2007 seems to be old, you may fetch a more recent copy +of this `ABOUT-NLS' file on most GNU archive sites. The most +up-to-date matrix with full percentage details can be found at +`http://translationproject.org/extra/matrix.html'. 1.6 Using `gettext' in new packages =================================== @@ -981,6 +1063,6 @@ the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact -`translation@iro.umontreal.ca' to make the `.pot' files available to -the translation teams. +`coordinator@translationproject.org' to make the `.pot' files available +to the translation teams. diff --git a/AUTHORS b/AUTHORS index 77da833..48dc145 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + Mike Haertel wrote the main program and the dfa and kwset matchers. Arthur David Olson contributed the heuristics for finding fixed substrings @@ -43,6 +50,6 @@ Alain Magloire maintained GNU grep until version 2.5e. Bernhard "Bero" Rosenkränzer maintained GNU grep until version 2.5.1, ie. from Sep 2001 till 2003. -Stepan Kasal maintains GNU grep since Feb 2004. +Stepan Kasal maintained GNU grep since Feb 2004. Tony Abou-Assaleh maintains GNU grep since Oct 2007. diff --git a/ChangeLog b/ChangeLog index d712cee..7ad1112 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,1911 +1,1969 @@ +2009-01-29 Karl Berry + + Update and/or add copyright notices: + * ABOUT-NLS + * AUTHORS + * ChangeLog + * Makefile.am + * NEWS + * README + * README-alpha + * README.DOS + * THANKS + * autogen.sh + * configure.ac.in + * bootstrap/Makefile.am + * bootstrap/Makefile.try + * bootstrap/README + * doc/Makefile.am + * doc/grep.texi + * lib/Makefile.am + * m4/Makefile.am + * po/POTFILES.in + * src/Makefile.am + * src/dfa.h + * src/dosbuf.c + * src/grep.h + * src/kwset.c + * src/kwset.h + * src/mbsupport.h + * src/search.c + * src/system.h + * src/vms_fab.c + * src/vms_fab.h + * tests/Makefile.am + * tests/backref.sh + * tests/bre.awk + * tests/bre.sh + * tests/empty.sh + * tests/ere.awk + * tests/ere.sh + * tests/file.sh + * tests/fmbtest.sh + * tests/foad1.sh + * tests/khadafy.sh + * tests/options.sh + * tests/pcre.sh + * tests/spencer1.awk + * tests/spencer1.sh + * tests/spencer2.sh + * tests/status.sh + * tests/tests + * tests/warning.sh + * tests/yesno.sh + * vms/Makefile.am + * vms/config_vms.h + + * po/ChangeLog: remove this file, just a bit of ancient cruft. + 2009-01-25 Tony Abou-Assaleh - * README: updated "KNOWN BUGS" section + * README: updated "KNOWN BUGS" section 2009-01-24 Bruno Haible - * lib/posix/regex.h (__restrict, __restrict_arr): Remove macros. - (_Restrict_, _Restrict_arr_): New macros. From gnulib/lib/regex.h. - (regcomp, regexec): Update declarations to use them. + * lib/posix/regex.h (__restrict, __restrict_arr): Remove macros. + (_Restrict_, _Restrict_arr_): New macros. From gnulib/lib/regex.h. + (regcomp, regexec): Update declarations to use them. - * lib/savedir.c (isdir): New declaration. + * lib/savedir.c (isdir): New declaration. - * src/dfa.c (update_mb_len_index): Change argument type to - 'char const *'. - (match_mb_charset): Cast argument to strncpy. - (dfaexec): Add pointer cast. + * src/dfa.c (update_mb_len_index): Change argument type to + 'char const *'. + (match_mb_charset): Cast argument to strncpy. + (dfaexec): Add pointer cast. - * src/grep.c (parse_grep_colors): Add braces for disambiguation. + * src/grep.c (parse_grep_colors): Add braces for disambiguation. - * src/kwset.c: Include xalloc.h instead of declaring xmalloc manually. + * src/kwset.c: Include xalloc.h instead of declaring xmalloc manually. 2009-01-20 Tony Abou-Assaleh - * tests/foad1.sh: disable tests that fail under cs_CZ.UTF-8. - * tests/fmbtest.sh: likewise - * README: added "KNOWN BUGS" section - * src/grep.c: updated copyright year + * tests/foad1.sh: disable tests that fail under cs_CZ.UTF-8. + * tests/fmbtest.sh: likewise + * README: added "KNOWN BUGS" section + * src/grep.c: updated copyright year 2008-12-12 Karl Berry - * doc/grep.texi (Exit Status, grep Programs): move these - nodes to under Invoking. + * doc/grep.texi (Exit Status, grep Programs): move these + nodes to under Invoking. - * doc/grep.texi: remove all remaining node pointers; - downcase cindex entries. + * doc/grep.texi: remove all remaining node pointers; + downcase cindex entries. 2008-12-11 Karl Berry - * doc/grep.texi (Copying): update url's. - (GNU General Public License): remove node. - (GNU Free Documentation License): @include fdl.texi instead. - (@copying): update to v1.3 or later. - * doc/fdl.texi: new file, copied from - http://www.gnu.org/licenses/fdl.texi. - * doc/Makefile.am (grep_TEXINFOS): new variable to get fdl.texi. - Also add usual GPL license statement. + * doc/grep.texi (Copying): update url's. + (GNU General Public License): remove node. + (GNU Free Documentation License): @include fdl.texi instead. + (@copying): update to v1.3 or later. + * doc/fdl.texi: new file, copied from + http://www.gnu.org/licenses/fdl.texi. + * doc/Makefile.am (grep_TEXINFOS): new variable to get fdl.texi. + Also add usual GPL license statement. - * doc/grep.texi (Index): Merge in Concept Index node, - to have only one index. Arrange @syncodeindex's accordingly. + * doc/grep.texi (Index): Merge in Concept Index node, + to have only one index. Arrange @syncodeindex's accordingly. 2008-12-10 Karl Berry - * doc/grep.texi (@copying): use @copying; move @contents to - beginning; rearrange other frontmatter in the conventional ways. + * doc/grep.texi (@copying): use @copying; move @contents to + beginning; rearrange other frontmatter in the conventional ways. 2008-06-15 Tony Abou-Assaleh - * src/ansi2knr.[1c]: Remove generated files (installed by - automake). Thanks to Emanuele Giaquinta for this. + * src/ansi2knr.[1c]: Remove generated files (installed by + automake). Thanks to Emanuele Giaquinta for this. 2008-02-14 Tony Abou-Assaleh - * src/grep.c: Factor out copyright year in --version. Thanks to - Karl Berry for this. - * src/grep.c: Update copyright years + * src/grep.c: Factor out copyright year in --version. Thanks to + Karl Berry for this. + * src/grep.c: Update copyright years - * po/POTFILES.in: +src/system.h +lib/closeout.c +lib/regex.c - +lib/xmalloc.c -lib/getopt1.c + * po/POTFILES.in: +src/system.h +lib/closeout.c +lib/regex.c + +lib/xmalloc.c -lib/getopt1.c 2008-02-09 Tony Abou-Assaleh - * src/dfa.c: Replace a MALLOC and for loop with a CALLOC. Thanks to - Johan Walles for this. Patch #6288 + * src/dfa.c: Replace a MALLOC and for loop with a CALLOC. Thanks to + Johan Walles for this. Patch #6288 - * README-alpha: more info about CVS code - * README: pointer to README-alpha + * README-alpha: more info about CVS code + * README: pointer to README-alpha - * src/grep.c: Update grep copyright year + * src/grep.c: Update grep copyright year 2008-02-08 Reuben Thomas (tiny change) - * .cvsignore: add configure.ac - * src/.cvsignore: add .deps + * .cvsignore: add configure.ac + * src/.cvsignore: add .deps 2008-02-06 Tony Abou-Assaleh - * tests/foad1.sh: Comment out cases that are known to fail. These + * tests/foad1.sh: Comment out cases that are known to fail. These should be uncommented after the 2.5.4 release. - * tests/yesno.sh: Likewise. - * doc/grep.1: Update description of -e PATTERN; from Benno Schulenberg - * doc/grep.texi: Likewise. + * tests/yesno.sh: Likewise. + * doc/grep.1: Update description of -e PATTERN; from Benno Schulenberg + * doc/grep.texi: Likewise. 2007-11-19 Tony Abou-Assaleh - * m4/Makefile.am: Remove reference strerror_r.m4 + * m4/Makefile.am: Remove reference strerror_r.m4 2007-11-16 Tony Abou-Assaleh - * po/sk.po: updated from the translation project + * po/sk.po: updated from the translation project 2007-11-03 Tony Abou-Assaleh - * po/*.po: get latest translations - * po/no.po: removed - * po/ky.po: added - * po/sk.po: added + * po/*.po: get latest translations + * po/no.po: removed + * po/ky.po: added + * po/sk.po: added 2007-10-10 Tony Abou-Assaleh - * configure.ac.in: update version to 2.6-dev + * configure.ac.in: update version to 2.6-dev - * src/grep.c: update --version message + * src/grep.c: update --version message 2007-10-07 Tony Abou-Assaleh - * src/grep.c: When -h and -H are combined, use the last specified, - Bug #15620, Patch #4866 - * tests/foad1.sh: add tests for -h and -H + * src/grep.c: When -h and -H are combined, use the last specified, + Bug #15620, Patch #4866 + * tests/foad1.sh: add tests for -h and -H - * ChangeLog: Add a copyright notice (years taken from commit logs), - add a license notice (taken from gnulib ChangeLog) + * ChangeLog: Add a copyright notice (years taken from commit logs), + add a license notice (taken from gnulib ChangeLog) - * TODO: update the link to a list of other grep implementations + * TODO: update the link to a list of other grep implementations 2007-06-29 Bernhard Rosenkraenzer - * all files: GPLv3 - * configure.ac.in: Change version number + * all files: GPLv3 + * configure.ac.in: Change version number 2006-11-25 Bernhard Rosenkraenzer - * configure.ac.in: Update version number for post-2.5.2 development + * configure.ac.in: Update version number for post-2.5.2 development 2006-11-25 Bernhard Rosenkraenzer - * configure.ac.in, grep.spec: Update version number + * configure.ac.in, grep.spec: Update version number - * Makefile.cvs: Update to work with current autoconf scripts + * Makefile.cvs: Update to work with current autoconf scripts - * po/Makefile.in.in: Adjust to work with automake 1.1x + * po/Makefile.in.in: Adjust to work with automake 1.1x 2006-08-19 Bernhard Rosenkraenzer - * po/*: Sync with translation project + * po/*: Sync with translation project - * doc/*: Assorted documentation updates, Patch #4610 + * doc/*: Assorted documentation updates, Patch #4610 - * autogen.sh, configure.in, configure.ac.in: Autogenerate - ALL_LINGUAS variable + * autogen.sh, configure.in, configure.ac.in: Autogenerate + ALL_LINGUAS variable - * m4/strerror_r.m4, configure.ac.in: Fix detection of strerror_r + * m4/strerror_r.m4, configure.ac.in: Fix detection of strerror_r - * lib/error.c: Remove bogus warning + * lib/error.c: Remove bogus warning - * lib/savedir.c, lib/savedir.h, src/grep.c, doc/*: - Add --exclude-dir option (patch #5051) + * lib/savedir.c, lib/savedir.h, src/grep.c, doc/*: + Add --exclude-dir option (patch #5051) 2005-11-18 Charles Levert - * tests/foad1.sh: Use ": ${VERBOSE=}" so that the caller can - set it without modifying the script; the usual caller (Makefile) - still leaves it untouched (usually unset, so it's off by default). - Modify "-m1 -A99 '^...$'" tests that failed so that their - expectation now corresponds to the output currently produced - by grep. Those tests used to expect that two selected (or - selectable) lines be output, even with -m1. Nothing was - modified with other similar tests that output _context_ lines - after one selected line has been output with -m1; they used to - and still succeed. Although tests/yesno.sh now provides a more - comprehensive framework for testing -m/-C feature interaction, - it doesn't exercise mixing them with anchors so the whole - relevant tests/foad1.sh test group is kept, notably to check - that grep doesn't crash when it is run. + * tests/foad1.sh: Use ": ${VERBOSE=}" so that the caller can + set it without modifying the script; the usual caller (Makefile) + still leaves it untouched (usually unset, so it's off by default). + Modify "-m1 -A99 '^...$'" tests that failed so that their + expectation now corresponds to the output currently produced + by grep. Those tests used to expect that two selected (or + selectable) lines be output, even with -m1. Nothing was + modified with other similar tests that output _context_ lines + after one selected line has been output with -m1; they used to + and still succeed. Although tests/yesno.sh now provides a more + comprehensive framework for testing -m/-C feature interaction, + it doesn't exercise mixing them with anchors so the whole + relevant tests/foad1.sh test group is kept, notably to check + that grep doesn't crash when it is run. 2005-11-17 Charles Levert - On 2005-06-21, many changes were made that affected --color, - --only-matching, and --invert-match. Some of them introduced a - misunderstanding between the concepts of matched/non-matched and - selected/rejected lines. Furthermore, a few bugs with -v sneaked - in stemming from this. This set of changes aims to rectify most - of this situation. Some GREP_COLORS capabilities are also added - as a result of the clarification. (Further issues with -v/-o/-C - feature interaction still remain to be sorted out.) + On 2005-06-21, many changes were made that affected --color, + --only-matching, and --invert-match. Some of them introduced a + misunderstanding between the concepts of matched/non-matched and + selected/rejected lines. Furthermore, a few bugs with -v sneaked + in stemming from this. This set of changes aims to rectify most + of this situation. Some GREP_COLORS capabilities are also added + as a result of the clarification. (Further issues with -v/-o/-C + feature interaction still remain to be sorted out.) - * src/grep.c: Rename/add global variables, macros, and capabilities: - SEP_CHAR_MATCH --> SEP_CHAR_SELECTED - SEP_CHAR_CONTEXT --> SEP_CHAR_REJECTED - SEP_STR_CHUNK --> SEP_STR_GROUP - grep_color --> selected_match_color + context_match_color - mlines_color --> selected_line_color - context_color --> context_line_color - "ml" --> "sl" - "mt" --> "mt" = "ms" + "mc" - --> "rv" (reverse "sl"/"cx" when -v) - * src/grep.c (color_cap_mt_fct, color_cap_rv_fct): New functions. - * src/grep.c (print_line_tail): Renamed color argument to line_color. - * src/grep.c (print_line_middle, prline): Revert part of the logic to - a pre-2005-06-21 one so that lines with matches have their matched - parts properly handled again ("m?" colors or --only-matching), - whether or not -v is specified. Whole line colors ("sl", "cx") - follow a selected / rejected(context) logic, as opposed to a - matched / non-matched one (unless "rv"). Matched text colors ("ms", - "mc") always follow a selected / rejected(context) logic, - regardless of "rv", because only matched lines use them anyway. - pr_line_middle() now takes additional line_color and match_color - arguments computed by prline() prior to calling that function. - The old logic was a buggy hybrid matched / rejected(context) one. - * src/grep.c (prpending, prtext, grepfile): Renamed macro invocations. - * src/grep.c (parse_grep_colors): Update top comment. - * src/grep.c (main): GREP_COLOR (singular) now sets both - selected_match_color and context_match_color. + * src/grep.c: Rename/add global variables, macros, and capabilities: + SEP_CHAR_MATCH --> SEP_CHAR_SELECTED + SEP_CHAR_CONTEXT --> SEP_CHAR_REJECTED + SEP_STR_CHUNK --> SEP_STR_GROUP + grep_color --> selected_match_color + context_match_color + mlines_color --> selected_line_color + context_color --> context_line_color + "ml" --> "sl" + "mt" --> "mt" = "ms" + "mc" + --> "rv" (reverse "sl"/"cx" when -v) + * src/grep.c (color_cap_mt_fct, color_cap_rv_fct): New functions. + * src/grep.c (print_line_tail): Renamed color argument to line_color. + * src/grep.c (print_line_middle, prline): Revert part of the logic to + a pre-2005-06-21 one so that lines with matches have their matched + parts properly handled again ("m?" colors or --only-matching), + whether or not -v is specified. Whole line colors ("sl", "cx") + follow a selected / rejected(context) logic, as opposed to a + matched / non-matched one (unless "rv"). Matched text colors ("ms", + "mc") always follow a selected / rejected(context) logic, + regardless of "rv", because only matched lines use them anyway. + pr_line_middle() now takes additional line_color and match_color + arguments computed by prline() prior to calling that function. + The old logic was a buggy hybrid matched / rejected(context) one. + * src/grep.c (prpending, prtext, grepfile): Renamed macro invocations. + * src/grep.c (parse_grep_colors): Update top comment. + * src/grep.c (main): GREP_COLOR (singular) now sets both + selected_match_color and context_match_color. 2005-11-16 Charles Levert - * src/search.c (Pcompile): Clarify message for the -P option - not being supported so that users don't assume it's a run-time - problem, but know that it's a compile-time configuration choice. - Based on an idea by: Benno Schulenberg . + * src/search.c (Pcompile): Clarify message for the -P option + not being supported so that users don't assume it's a run-time + problem, but know that it's a compile-time configuration choice. + Based on an idea by: Benno Schulenberg . 2005-11-13 Charles Levert - * tests/yesno.sh: New file. Test feature interaction - of -C, -v, -o, and -m. This reveals bugs, including some I - introduced on 2005-06-21, but also others. - * tests/Makefile.am (TESTS): Add yesno.sh. - * tests/Makefile.am (CLEANFILES): Add cspatfile and csinput, as - created by fmbtest.sh. Add yesno.txt, as created by yesno.sh. + * tests/yesno.sh: New file. Test feature interaction + of -C, -v, -o, and -m. This reveals bugs, including some I + introduced on 2005-06-21, but also others. + * tests/Makefile.am (TESTS): Add yesno.sh. + * tests/Makefile.am (CLEANFILES): Add cspatfile and csinput, as + created by fmbtest.sh. Add yesno.txt, as created by yesno.sh. 2005-11-11 Charles Levert - * configure.in (ALL_LINGUAS): Add languages that were missing - from this variable (bg, ca, da, nb, tr), but that GNU grep supports - with a po/xx.po file. Reported by Tony Abou-Assaleh . + * configure.in (ALL_LINGUAS): Add languages that were missing + from this variable (bg, ca, da, nb, tr), but that GNU grep supports + with a po/xx.po file. Reported by Tony Abou-Assaleh . - * src/search.c (Pcompile): Abort in error if -P and multiple patterns - are specified, with an error message explaining the situation. - Fixing this won't be simple; the '\n' characters separating the - patterns cannot just be replaced by '|' to create an alternation as - back-references are assumed to be local to each individual pattern. + * src/search.c (Pcompile): Abort in error if -P and multiple patterns + are specified, with an error message explaining the situation. + Fixing this won't be simple; the '\n' characters separating the + patterns cannot just be replaced by '|' to create an alternation as + back-references are assumed to be local to each individual pattern. - * src/grep.c (parse_grep_colors, main): Replace all uses of - fprintf(stderr, _("%s: foo\n"), program_name, ...) with - error(0, 0, _("foo"), ...) for uniformization and simplification - of warning messages that will be up for localization. (My bad.) + * src/grep.c (parse_grep_colors, main): Replace all uses of + fprintf(stderr, _("%s: foo\n"), program_name, ...) with + error(0, 0, _("foo"), ...) for uniformization and simplification + of warning messages that will be up for localization. (My bad.) 2005-11-10 Charles Levert - The introduction of the --only-matching and --color GNU extensions - to grep added the requirement that each execute() implementation - not only be able to identify matching lines as a whole, but also - individual "exact" matches within a line known to be matching, - from leftmost to rightmost match, when the output from matching - lines is actually produced. The interface and implementations - of execute() were not up to it. This set of changes aims to - rectify that situation. Previously failing tests relative to - left anchors (^ and \<) and -w should now pass. This fixes - , - , - , - and possibly part of other, bigger, pending patches. The problem - was also compounded by the POSIX requirement to support a pattern - list instead of just an individual pattern (for -G and -E as well). + The introduction of the --only-matching and --color GNU extensions + to grep added the requirement that each execute() implementation + not only be able to identify matching lines as a whole, but also + individual "exact" matches within a line known to be matching, + from leftmost to rightmost match, when the output from matching + lines is actually produced. The interface and implementations + of execute() were not up to it. This set of changes aims to + rectify that situation. Previously failing tests relative to + left anchors (^ and \<) and -w should now pass. This fixes + , + , + , + and possibly part of other, bigger, pending patches. The problem + was also compounded by the POSIX requirement to support a pattern + list instead of just an individual pattern (for -G and -E as well). - * tests/foad1.sh: Test for increasing/decreasing-length word - matches, given pattern order, and leftmost/longest match. - * tests/fmbtest.sh: Modify test #6 according to new expectations. - Better document what tests #6 and #7 are actually for. Eliminate - test #5 in favor of bringing tests #6 and #7 within the F G E loop. - * src/grep.h (EXECUTE_ARGS): Change last argument from "int exact" - to "char const *start_ptr". Testing for "start_ptr" being non-NULL - retains the same semantics as testing for "exact" being non-zero. - * src/grep.c (print_line_middle): Call execute() with whole - buffer to work on, but using current position as start_ptr. - * src/grep.c (prpending, grepbuf): Call execute() with NULL - as start_ptr. - * src/search.c (EGexecute, Fexecute, Pexecute): When start_ptr is - non-NULL, return first match from it as an offset relative to buf. - * src/search.c (EGexecute): Consider all patterns if many and, - for an exact match, return the best one (leftmost, then longest). - Don't explore worst solutions, of course (branch and bound). + * tests/foad1.sh: Test for increasing/decreasing-length word + matches, given pattern order, and leftmost/longest match. + * tests/fmbtest.sh: Modify test #6 according to new expectations. + Better document what tests #6 and #7 are actually for. Eliminate + test #5 in favor of bringing tests #6 and #7 within the F G E loop. + * src/grep.h (EXECUTE_ARGS): Change last argument from "int exact" + to "char const *start_ptr". Testing for "start_ptr" being non-NULL + retains the same semantics as testing for "exact" being non-zero. + * src/grep.c (print_line_middle): Call execute() with whole + buffer to work on, but using current position as start_ptr. + * src/grep.c (prpending, grepbuf): Call execute() with NULL + as start_ptr. + * src/search.c (EGexecute, Fexecute, Pexecute): When start_ptr is + non-NULL, return first match from it as an offset relative to buf. + * src/search.c (EGexecute): Consider all patterns if many and, + for an exact match, return the best one (leftmost, then longest). + Don't explore worst solutions, of course (branch and bound). 2005-11-10 Charles Levert - * src/grep.c (main): Fix a subtle memory allocation bug introduced - with the mb_icase_keys() function, which can call xrealloc() or - free() on keys, by making sure keys is always dynamically allocated. + * src/grep.c (main): Fix a subtle memory allocation bug introduced + with the mb_icase_keys() function, which can call xrealloc() or + free() on keys, by making sure keys is always dynamically allocated. 2005-11-09 Charles Levert - * doc/grep.1, doc/grep.texi: Advise users to test for - "exit_status > 1" instead of "exit_status == 2" in order to - detect errors, for portability with other POSIX-compliant - implementations. + * doc/grep.1, doc/grep.texi: Advise users to test for + "exit_status > 1" instead of "exit_status == 2" in order to + detect errors, for portability with other POSIX-compliant + implementations. 2005-11-09 Charles Levert - The following set of changes aims to make "egrep" and "fgrep" - minimal executable programs for legacy applications, instead of - shell scripts. This "fgrep" is much smaller than "grep". - This set of changes appears more daunting than it really is. + The following set of changes aims to make "egrep" and "fgrep" + minimal executable programs for legacy applications, instead of + shell scripts. This "fgrep" is much smaller than "grep". + This set of changes appears more daunting than it really is. - * src/egrep.c, src/fgrep.c, src/esearch.c, src/fsearch.c: New files - that #define either EGREP_PROGRAM or FGREP_PROGRAM and #include - the corresponding generic (i.e., non e or f specific) *.c file. - * src/grepmat.c: Remove whole file. - * src/Makefile.am: Remove no-dependencies from AUTOMAKE_OPTIONS. - Add definitions to make "egrep" and "fgrep" specific standalone - executable programs that only use the source files they need. - Remove rules for "egrep" and "fgrep" shell scripts. - * src/grep.h: #define GREP_PROGRAM if both EGREP_PROGRAM and - FGREP_PROGRAM are #undef. Only declare matchers[] in this case - along with the compile_fp_t and execute_fp_t function pointers - typedefs, otherwise declare prototypes for straight compile() - and execute() functions for the specialized "egrep" and "fgrep" - programs. Remove the extern declaration for matcher. - Define COMPILE_RET, COMPILE_ARGS, EXECUTE_RET, EXECUTE_ARGS, - COMPILE_FCT, and EXECUTE_FCT helper preprocessor macros. - * src/grep.c (short_options, long_options, usage, main): Only - support -G, -E, -F, -P, and -X for GREP_PROGRAM, but not for - EGREP_PROGRAM or FGREP_PROGRAM. Customize usage messages. - * src/grep.c (set_limits): New function with unchanged code, - called from main(), because it shouldn't be in install_matcher() - since it was already matcher-independent. - * src/grep.c (matcher): Add as static, only for GREP_PROGRAM. - * src/grep.c (setmatcher, install_matcher): Only for GREP_PROGRAM. - * src/grep.c (main): Remove any tweaking and dependence on argv[0]. - * src/grep.c (print_line_middle, prpending, grepbuf, main): Call - compile() and execute() directly, not through a function - pointer dereferencing notation, so that it works with both - straight functions (in EGREP_PROGRAM and FGREP_PROGRAM) and - function pointers (in GREP_PROGRAM). - * src/search.c (, "dfa.h", dfa, pattern0, patterns, - pcount, dfaerror, kwset_exact_matches, kwsmusts): Only - include/declare/define if not FGREP_PROGRAM. - * src/search.c: Remove function prototypes for all functions - that are not used before their definition, since this is just - a hassle now with their varying names and conditional definition. - * src/search.c (GEAcompile): Rename from Ecompile(). Add new - syntax_bits argument/variable. Use as compile() for EGREP_PROGRAM. - Put in the needed RE_ICASE fix, albeit commented-out for now. - Make sure to free() modified word/line pattern after use, if any. - * src/search.c (Gcompile): Merge with GEAcompile() then remove. - * src/search.c (Gcompile, Acompile, Ecompile): New small functions - that call GEAcompile(), now that matcher is not an extern variable. - * src/search.c (GEAcompile, Gcompile, Acompile, Ecompile, - Fcompile, Pcompile, EGexecute, Fexecute, Pexecute, matchers): - Only define when needed according to *GREP_PROGRAM, and rename - to just compile() and execute() when appropriate. - * grep/bootstrap/Makefile.try: Similar changes. + * src/egrep.c, src/fgrep.c, src/esearch.c, src/fsearch.c: New files + that #define either EGREP_PROGRAM or FGREP_PROGRAM and #include + the corresponding generic (i.e., non e or f specific) *.c file. + * src/grepmat.c: Remove whole file. + * src/Makefile.am: Remove no-dependencies from AUTOMAKE_OPTIONS. + Add definitions to make "egrep" and "fgrep" specific standalone + executable programs that only use the source files they need. + Remove rules for "egrep" and "fgrep" shell scripts. + * src/grep.h: #define GREP_PROGRAM if both EGREP_PROGRAM and + FGREP_PROGRAM are #undef. Only declare matchers[] in this case + along with the compile_fp_t and execute_fp_t function pointers + typedefs, otherwise declare prototypes for straight compile() + and execute() functions for the specialized "egrep" and "fgrep" + programs. Remove the extern declaration for matcher. + Define COMPILE_RET, COMPILE_ARGS, EXECUTE_RET, EXECUTE_ARGS, + COMPILE_FCT, and EXECUTE_FCT helper preprocessor macros. + * src/grep.c (short_options, long_options, usage, main): Only + support -G, -E, -F, -P, and -X for GREP_PROGRAM, but not for + EGREP_PROGRAM or FGREP_PROGRAM. Customize usage messages. + * src/grep.c (set_limits): New function with unchanged code, + called from main(), because it shouldn't be in install_matcher() + since it was already matcher-independent. + * src/grep.c (matcher): Add as static, only for GREP_PROGRAM. + * src/grep.c (setmatcher, install_matcher): Only for GREP_PROGRAM. + * src/grep.c (main): Remove any tweaking and dependence on argv[0]. + * src/grep.c (print_line_middle, prpending, grepbuf, main): Call + compile() and execute() directly, not through a function + pointer dereferencing notation, so that it works with both + straight functions (in EGREP_PROGRAM and FGREP_PROGRAM) and + function pointers (in GREP_PROGRAM). + * src/search.c (, "dfa.h", dfa, pattern0, patterns, + pcount, dfaerror, kwset_exact_matches, kwsmusts): Only + include/declare/define if not FGREP_PROGRAM. + * src/search.c: Remove function prototypes for all functions + that are not used before their definition, since this is just + a hassle now with their varying names and conditional definition. + * src/search.c (GEAcompile): Rename from Ecompile(). Add new + syntax_bits argument/variable. Use as compile() for EGREP_PROGRAM. + Put in the needed RE_ICASE fix, albeit commented-out for now. + Make sure to free() modified word/line pattern after use, if any. + * src/search.c (Gcompile): Merge with GEAcompile() then remove. + * src/search.c (Gcompile, Acompile, Ecompile): New small functions + that call GEAcompile(), now that matcher is not an extern variable. + * src/search.c (GEAcompile, Gcompile, Acompile, Ecompile, + Fcompile, Pcompile, EGexecute, Fexecute, Pexecute, matchers): + Only define when needed according to *GREP_PROGRAM, and rename + to just compile() and execute() when appropriate. + * grep/bootstrap/Makefile.try: Similar changes. 2005-11-08 Charles Levert - * README.DOS, TODO, grep.spec, doc/grep.1, doc/grep.texi, - src/grep.h, po/da.po, po/nb.po, po/no.po, po/sv.po: - Replace all capitalized "Grep" by a lowercase "grep", except - in citations. Reported by Benno Schulenberg - from the - entry in the Debian bug tracker. - * doc/grep.1, doc/grep.texi: Explain that the "egrep" and "fgrep" - commands are deprecated and provided for historical applications. - Replace some "egrep" uses by "grep -E" to promote the newer usage. - Typeset "zgrep" as a command. Fix some spacing and punctuation bugs. + * README.DOS, TODO, grep.spec, doc/grep.1, doc/grep.texi, + src/grep.h, po/da.po, po/nb.po, po/no.po, po/sv.po: + Replace all capitalized "Grep" by a lowercase "grep", except + in citations. Reported by Benno Schulenberg + from the + entry in the Debian bug tracker. + * doc/grep.1, doc/grep.texi: Explain that the "egrep" and "fgrep" + commands are deprecated and provided for historical applications. + Replace some "egrep" uses by "grep -E" to promote the newer usage. + Typeset "zgrep" as a command. Fix some spacing and punctuation bugs. 2005-11-08 Julian Foad - * doc/grep.texi: Rewrite a poorly written usage example about - back-references, and tweak another. New text by Benno Schulenberg. + * doc/grep.texi: Rewrite a poorly written usage example about + back-references, and tweak another. New text by Benno Schulenberg. 2005-11-04 Charles Levert - * src/grep.c (mb_icase_keys): New function to properly lowercase - keys if match_icase. The problem was that some multi-octet - characters can get longer or shorter upon this conversion, so that - it cannot just naively be done in place on the same memory buffer. - * src/grep.c (main): Call mb_icase_keys (and remove in-line code). + * src/grep.c (mb_icase_keys): New function to properly lowercase + keys if match_icase. The problem was that some multi-octet + characters can get longer or shorter upon this conversion, so that + it cannot just naively be done in place on the same memory buffer. + * src/grep.c (main): Call mb_icase_keys (and remove in-line code). - * tests/foad1.sh: Duplicate three "-o -b" tests for the "-F" - mode because it relies on a different code path that deserves - the same kind of testing. + * tests/foad1.sh: Duplicate three "-o -b" tests for the "-F" + mode because it relies on a different code path that deserves + the same kind of testing. 2005-09-27 Stepan Kasal - * doc/grep.1: Fix a typo. + * doc/grep.1: Fix a typo. 2005-08-24 Charles Levert - * src/grep.c (print_line_middle): In case of an empty match, - make minimal progress and continue instead of aborting process - of the remainder of the line, in case there's still an upcoming - non-empty match. - * tests/foad1.sh: Add two tests for this. - * doc/grep.texi, doc/grep.1: Document this behavior, since - --only-matching and --color are GNU extensions which are - otherwise unspecified by POSIX or other standards. + * src/grep.c (print_line_middle): In case of an empty match, + make minimal progress and continue instead of aborting process + of the remainder of the line, in case there's still an upcoming + non-empty match. + * tests/foad1.sh: Add two tests for this. + * doc/grep.texi, doc/grep.1: Document this behavior, since + --only-matching and --color are GNU extensions which are + otherwise unspecified by POSIX or other standards. 2005-07-26 Charles Levert - * tests/pcre.sh: New file. Add test 1. - * tests/Makefile.am: Add pcre.sh to TESTS. + * tests/pcre.sh: New file. Add test 1. + * tests/Makefile.am: Add pcre.sh to TESTS. 2005-07-07 Charles Levert - * src/grep.c: Remove all xm capability code. + * src/grep.c: Remove all xm capability code. 2005-07-05 Charles Levert - * doc/grep.texi: Add missing green color in GREP_COLORS description. - * doc/grep.1: Fix typo and reorganize GREP_COLORS documentation. + * doc/grep.texi: Add missing green color in GREP_COLORS description. + * doc/grep.1: Fix typo and reorganize GREP_COLORS documentation. - * src/kwset.c (DEPTH_SIZE): New macro to anticipate - architectures/compilers where CHAR_BIT is not 8 (we assume it - won't be less than 4, which would be non-standard and unlikely). - Checked to hold for CHAR_BIT up to 1023 (and maybe more)! - * src/kwset.c (kwsincr): Use DEPTH_SIZE in two array declarations. + * src/kwset.c (DEPTH_SIZE): New macro to anticipate + architectures/compilers where CHAR_BIT is not 8 (we assume it + won't be less than 4, which would be non-standard and unlikely). + Checked to hold for CHAR_BIT up to 1023 (and maybe more)! + * src/kwset.c (kwsincr): Use DEPTH_SIZE in two array declarations. - * src/kwset.c (kwsincr): When a second obstack_alloc() call fails, - free what the first one successfully allocated by popping it - off the top of the obstack, before returning in error, just - to keep things clean. - * src/kwset.c (kwsprep): Verify return value of obstack_alloc() - and return a memory exhausted error if so. This function had - a prototype to return such errors, but never did. + * src/kwset.c (kwsincr): When a second obstack_alloc() call fails, + free what the first one successfully allocated by popping it + off the top of the obstack, before returning in error, just + to keep things clean. + * src/kwset.c (kwsprep): Verify return value of obstack_alloc() + and return a memory exhausted error if so. This function had + a prototype to return such errors, but never did. 2005-07-04 Charles Levert - * src/kwset.c: Readability changes. - Replace uses of 0 for pointer values by NULL. - Generalize use of existing U() macro to whole file. + * src/kwset.c: Readability changes. + Replace uses of 0 for pointer values by NULL. + Generalize use of existing U() macro to whole file. - * src/kwset.c (kwsprep): Use memset() and memcpy() when appropriate. + * src/kwset.c (kwsprep): Use memset() and memcpy() when appropriate. - * src/kwset.c (kwsprep): Move three variable declarations to - the single {}-block where they are used. + * src/kwset.c (kwsprep): Move three variable declarations to + the single {}-block where they are used. - * src/kwset.c (kwsprep): Optimize search for mind2 value by - starting from the end of the target[] array. + * src/kwset.c (kwsprep): Optimize search for mind2 value by + starting from the end of the target[] array. 2005-06-22 Charles Levert - * grep/autogen.sh, grep/src/Makefile.am, grep/tests/backref.sh, - grep/tests/bre.sh, grep/tests/empty.sh, grep/tests/ere.sh, - grep/tests/file.sh, grep/tests/fmbtest.sh, grep/tests/foad1.sh, - grep/tests/khadafy.sh, grep/tests/options.sh, - grep/tests/spencer1.sh, grep/tests/spencer2.sh, - grep/tests/status.sh, grep/tests/warning.sh: As per autoconf's - "Portable Shell Programming" guidelines, replace all instances - of "#!/bin/sh" by "#! /bin/sh" (notice the space). + * grep/autogen.sh, grep/src/Makefile.am, grep/tests/backref.sh, + grep/tests/bre.sh, grep/tests/empty.sh, grep/tests/ere.sh, + grep/tests/file.sh, grep/tests/fmbtest.sh, grep/tests/foad1.sh, + grep/tests/khadafy.sh, grep/tests/options.sh, + grep/tests/spencer1.sh, grep/tests/spencer2.sh, + grep/tests/status.sh, grep/tests/warning.sh: As per autoconf's + "Portable Shell Programming" guidelines, replace all instances + of "#!/bin/sh" by "#! /bin/sh" (notice the space). 2005-06-21 Charles Levert - * src/grep.c (nlscan): Make this function more robust by removing - the undocumented assumption that its "lim" argument points - right after a line boundary. This will be used later to fix - --byte-offset's broken behavior. Patch #3769. + * src/grep.c (nlscan): Make this function more robust by removing + the undocumented assumption that its "lim" argument points + right after a line boundary. This will be used later to fix + --byte-offset's broken behavior. Patch #3769. - * src/grep.c (main): Add a test to check if -o/--only-matching - and context lines are both specified and if so, set both context - specifications (before and after) to zero then print an explicit - warning to stderr explaining what was done and why (as opposed - to drastically aborting the process in error). Patch #3768. - Other code needs this zero setting to work correctly without - having to repeatedly test for this conflictual condition. + * src/grep.c (main): Add a test to check if -o/--only-matching + and context lines are both specified and if so, set both context + specifications (before and after) to zero then print an explicit + warning to stderr explaining what was done and why (as opposed + to drastically aborting the process in error). Patch #3768. + Other code needs this zero setting to work correctly without + having to repeatedly test for this conflictual condition. - * tests/foad1.sh: Add tests combining -o, -n/-b/-H, and -i, - since there are separate code paths for -i. Add tests combining - -o, -n/-b/-H, and -3, since any context line specification - should be ignored when combined with -o. - * src/grep.c (print_line_head): New function, culled off the - top content of prline(). Adds a guard against "lastnl" having - already reached "lim", which can happen when if the function - is called more than once per line. - * src/grep.c (prline): Now calls print_line_head(), not only at - the beginning to replace the moved code when -o is not - specified, but also for each match when -o is specified (two - code paths with this). Patch #3770, more or less. This makes - all tests combining -o and -n/-b/-H pass, which they didn't - before. Fixes bug #12727. + * tests/foad1.sh: Add tests combining -o, -n/-b/-H, and -i, + since there are separate code paths for -i. Add tests combining + -o, -n/-b/-H, and -3, since any context line specification + should be ignored when combined with -o. + * src/grep.c (print_line_head): New function, culled off the + top content of prline(). Adds a guard against "lastnl" having + already reached "lim", which can happen when if the function + is called more than once per line. + * src/grep.c (prline): Now calls print_line_head(), not only at + the beginning to replace the moved code when -o is not + specified, but also for each match when -o is specified (two + code paths with this). Patch #3770, more or less. This makes + all tests combining -o and -n/-b/-H pass, which they didn't + before. Fixes bug #12727. - * src/grep.c (SEP_CHAR_MATCH, SEP_CHAR_CONTEXT, SEP_STR_CHUNK): - New macros for ':', '-', and "--". Used throughout the file. - Will be used even more in upcoming updates, so good to have now. + * src/grep.c (SEP_CHAR_MATCH, SEP_CHAR_CONTEXT, SEP_STR_CHUNK): + New macros for ':', '-', and "--". Used throughout the file. + Will be used even more in upcoming updates, so good to have now. - * src/grep.c: The new GREP_COLORS (plural) framework, only - partially used at this point to make for a simpler initial - patch in CVS. A subset of patch #3644 on Savannah. - * src/grep.c (color_cap_ne_fct, color_cap_xm_fct, print_filename, - print_sep, parse_grep_colors): New functions. - * src/grep.c (prtext, grepfile, main): Existing functions modified - to use the new framework. - * doc/grep.texi, doc/grep.1: Document GREP_COLORS. + * src/grep.c: The new GREP_COLORS (plural) framework, only + partially used at this point to make for a simpler initial + patch in CVS. A subset of patch #3644 on Savannah. + * src/grep.c (color_cap_ne_fct, color_cap_xm_fct, print_filename, + print_sep, parse_grep_colors): New functions. + * src/grep.c (prtext, grepfile, main): Existing functions modified + to use the new framework. + * doc/grep.texi, doc/grep.1: Document GREP_COLORS. - * src/grep.c: The new -T/--initial-tab framework, only - partially used at this point to make for a simpler initial - patch in CVS. A subset of patch #3644 on Savannah. - The option name/calling convention is the same as for GNU diff. - * doc/grep.texi, doc/grep.1: Document -T/--initial-tab. + * src/grep.c: The new -T/--initial-tab framework, only + partially used at this point to make for a simpler initial + patch in CVS. A subset of patch #3644 on Savannah. + The option name/calling convention is the same as for GNU diff. + * doc/grep.texi, doc/grep.1: Document -T/--initial-tab. - * src/grep.c (print_offset): Renamed print_offset_sep() to better - represent its new functionality; new calling convention. - * src/grep.c (print_offset, print_line_head): Use and implement - missing parts of the GREP_COLORS and -T/--initial-tab frameworks. + * src/grep.c (print_offset): Renamed print_offset_sep() to better + represent its new functionality; new calling convention. + * src/grep.c (print_offset, print_line_head): Use and implement + missing parts of the GREP_COLORS and -T/--initial-tab frameworks. - * src/grep.c (print_line_middle, print_line_tail): New functions, - unused for now, intended to allow a simplifying rewrite of - prline(). Adding them first will make for cleaner CVS patches. + * src/grep.c (print_line_middle, print_line_tail): New functions, + unused for now, intended to allow a simplifying rewrite of + prline(). Adding them first will make for cleaner CVS patches. - * src/grep.c (prline): Simplifying rewrite using - print_line_middle() and print_line_tail(). No longer attempts - to find matches to colorize in context lines, thus avoiding - costly calls to (*execute)(), since we know by then that they - can't contain any by definition. There are no longer four - different code paths whether -o and -i are each specified - or not; they have been unified into one, which should help - avoid bugs similar to previous ones due to not updating all - code paths in a synchronized fashion. The -i code has been - explicitly marked since it doesn't belong there and should - be removed as soon as other -i code elsewhere is fixed. - The remaining GREP_COLORS functionality is implemented. - Savannah patch #3771 and patch #3644, heavily reworked. + * src/grep.c (prline): Simplifying rewrite using + print_line_middle() and print_line_tail(). No longer attempts + to find matches to colorize in context lines, thus avoiding + costly calls to (*execute)(), since we know by then that they + can't contain any by definition. There are no longer four + different code paths whether -o and -i are each specified + or not; they have been unified into one, which should help + avoid bugs similar to previous ones due to not updating all + code paths in a synchronized fashion. The -i code has been + explicitly marked since it doesn't belong there and should + be removed as soon as other -i code elsewhere is fixed. + The remaining GREP_COLORS functionality is implemented. + Savannah patch #3771 and patch #3644, heavily reworked. - * src/grep.c (color_cap_ne_fct, color_cap_xm_fct, - print_line_middle, print_line_tail): Make these four functions - static. + * src/grep.c (color_cap_ne_fct, color_cap_xm_fct, + print_line_middle, print_line_tail): Make these four functions + static. 2005-06-20 Charles Levert - * src/grep.c: Extensively document the SGR/EL-to-Right issue. + * src/grep.c: Extensively document the SGR/EL-to-Right issue. - * src/grep.c: Explain the context and logic for choosing default - --color screen attributes (SGR parameters). + * src/grep.c: Explain the context and logic for choosing default + --color screen attributes (SGR parameters). 2005-06-15 Charles Levert - * tests/foad1.sh: Since this script is run by /bin/sh, it - must work under posix mode. That means not using assignment - statements right before a function call (LC_ALL=... grep_test, - in this case), because it won't do the expected thing. + * tests/foad1.sh: Since this script is run by /bin/sh, it + must work under posix mode. That means not using assignment + statements right before a function call (LC_ALL=... grep_test, + in this case), because it won't do the expected thing. 2005-06-14 Charles Levert - Fix bug #11022 (Line wrapping causes GREP_COLOR background - color to "smear") by outputting a "clear to end of line" - control sequence after each SGR (Select Graphic Rendition) - control sequence (START and END). This also avoid similar - problems with HT (tab) characters. + Fix bug #11022 (Line wrapping causes GREP_COLOR background + color to "smear") by outputting a "clear to end of line" + control sequence after each SGR (Select Graphic Rendition) + control sequence (START and END). This also avoid similar + problems with HT (tab) characters. - * src/grep.c (SGR_START, SGR_END, PR_SGR_FMT, PR_SGR_FMT_IF, - PR_SGR_START, PR_SGR_END, PR_SGR_START_IF, PR_SGR_END_IF): - New macros. - * src/grep.c (prline): Use the new macros. - * tests/fmbtest.sh, tests/foad1.sh: Adjust the regression tests - to expect the new control sequences. + * src/grep.c (SGR_START, SGR_END, PR_SGR_FMT, PR_SGR_FMT_IF, + PR_SGR_START, PR_SGR_END, PR_SGR_START_IF, PR_SGR_END_IF): + New macros. + * src/grep.c (prline): Use the new macros. + * tests/fmbtest.sh, tests/foad1.sh: Adjust the regression tests + to expect the new control sequences. 2005-05-06 Charles Levert - * TODO: Add a few more projects and derived versions to check out. + * TODO: Add a few more projects and derived versions to check out. 2005-05-05 Charles Levert - * README-alpha: Document grep-commit mailing list. - * TODO: Add various stuff culled from the mailing list. + * README-alpha: Document grep-commit mailing list. + * TODO: Add various stuff culled from the mailing list. 2005-05-02 Charles Levert - * 78 files: Update FSF's civic address, zip code, - and citizen relocation code. + * 78 files: Update FSF's civic address, zip code, + and citizen relocation code. 2005-04-29 Charles Levert - * tests/foad1.sh: Add -b and tricky UTF-8 tests. - Display LC_ALL when its value is special. Patch #3962. + * tests/foad1.sh: Add -b and tricky UTF-8 tests. + Display LC_ALL when its value is special. Patch #3962. - * ABOUT-NLS: Sync with CVS revision 1.9 - of 2005-04-13T11:21:55Z from GNU gettext - on ":pserver:anoncvs@sources.redhat.com:/cvs/gettext", - file "gettext/gettext-runtime/ABOUT-NLS". + * ABOUT-NLS: Sync with CVS revision 1.9 + of 2005-04-13T11:21:55Z from GNU gettext + on ":pserver:anoncvs@sources.redhat.com:/cvs/gettext", + file "gettext/gettext-runtime/ABOUT-NLS". 2005-04-29 Julian Foad - * Makefile.am: Remove reference to long-gone files PATCHES.AC and - PATCHES.AM. Thanks to Tony Abou-Assaleh for this. Patch #3961. + * Makefile.am: Remove reference to long-gone files PATCHES.AC and + PATCHES.AM. Thanks to Tony Abou-Assaleh for this. Patch #3961. 2005-04-29 Charles Levert - * src/grep.c: Fix typo in prline()'s --only-matching --ignore-case - code path; this fixes bug #9768 and passes one more test - in tests/foad1.sh. This whole code path should be removed in - the future, when other --ignore-case issues are dealt with. + * src/grep.c: Fix typo in prline()'s --only-matching --ignore-case + code path; this fixes bug #9768 and passes one more test + in tests/foad1.sh. This whole code path should be removed in + the future, when other --ignore-case issues are dealt with. 2005-04-28 Julian Foad - * tests/foad1.sh: Remove Bash-specific syntax. + * tests/foad1.sh: Remove Bash-specific syntax. - * src/dfa.c: Fix a DFA bug whereby a bracket "[" was matched by the - pattern "[[:alpha:]]" in UTF-8 locales. Patch #3800, by Tim Waugh. - * tests/foad1.sh: Add a regression test for that. + * src/dfa.c: Fix a DFA bug whereby a bracket "[" was matched by the + pattern "[[:alpha:]]" in UTF-8 locales. Patch #3800, by Tim Waugh. + * tests/foad1.sh: Add a regression test for that. 2005-04-27 Julian Foad - Fix a bug reported by Elliott Hughes in patch #1834 whereby "grep -Fw" - would miss matches after a non-word occurrence of the pattern. Fix by - Gordon Lack; tests based on reproduction recipes by Gordon Lack. + Fix a bug reported by Elliott Hughes in patch #1834 whereby "grep -Fw" + would miss matches after a non-word occurrence of the pattern. Fix by + Gordon Lack; tests based on reproduction recipes by Gordon Lack. - * src/search.c (Fexecute): Fix the "match_words" case. - * tests/foad1.sh: Modify the test framework so that the "PATTERN" - argument is optional. Add a regression test and a test for - a similar case that other proposed patches have got wrong. + * src/search.c (Fexecute): Fix the "match_words" case. + * tests/foad1.sh: Modify the test framework so that the "PATTERN" + argument is optional. Add a regression test and a test for + a similar case that other proposed patches have got wrong. - Add more tests, some initially failing. + Add more tests, some initially failing. - * tests/foad1.sh: Add tests for "--color", most initially failing. - * tests/fmbtest.sh: New file of tests for "grep -i" with multi-byte - chars, by Jakub Jelinek, from patch #3808: Red Hat's "tests" patch. - Initially, test #4 fails (in all three modes). - * tests/Makefile.am: Include the new tests file "fmbtest.sh". + * tests/foad1.sh: Add tests for "--color", most initially failing. + * tests/fmbtest.sh: New file of tests for "grep -i" with multi-byte + chars, by Jakub Jelinek, from patch #3808: Red Hat's "tests" patch. + Initially, test #4 fails (in all three modes). + * tests/Makefile.am: Include the new tests file "fmbtest.sh". 2005-04-12 Julian Foad - * tests/bre.tests: Enable a regression test for bug #9519. - * src/grep.c: Fix a seg-fault in "-o -i": patch #1939. - * tests/foad1.sh: New tests for "-o", initially all failing. - * tests/Makefile.am: Include the new tests file "foad1.sh". - * tests/spencer2.sh: Be consistent with "spencer1.sh" in the - naming of associated files. - * src/grep.c: Fix off-by-one error in prpending(). - Patch #3840 by Claudio Fontana. - * tests/foad1.sh: Add tests by Pavol Gono for patch #3840. - Some of them still fail, but no longer seg-fault due to that bug. + * tests/bre.tests: Enable a regression test for bug #9519. + * src/grep.c: Fix a seg-fault in "-o -i": patch #1939. + * tests/foad1.sh: New tests for "-o", initially all failing. + * tests/Makefile.am: Include the new tests file "foad1.sh". + * tests/spencer2.sh: Be consistent with "spencer1.sh" in the + naming of associated files. + * src/grep.c: Fix off-by-one error in prpending(). + Patch #3840 by Claudio Fontana. + * tests/foad1.sh: Add tests by Pavol Gono for patch #3840. + Some of them still fail, but no longer seg-fault due to that bug. 2005-04-11 Julian Foad - * doc/grep.texi, doc/grep.1: Document USG grep -s too. - Based on a patch by Paul Eggert; suggested by Keith Marshall. - * src/dfa.c (lex): Fix bug #9519: "echo do^re | grep do^re" was - failing to find a match. + * doc/grep.texi, doc/grep.1: Document USG grep -s too. + Based on a patch by Paul Eggert; suggested by Keith Marshall. + * src/dfa.c (lex): Fix bug #9519: "echo do^re | grep do^re" was + failing to find a match. 2005-03-09 Stepan Kasal - * src/search.c (EGexecute, Fexecute): Use xmalloc, not malloc. - (EGexecute): Handle the failure in one place, goto there. + * src/search.c (EGexecute, Fexecute): Use xmalloc, not malloc. + (EGexecute): Handle the failure in one place, goto there. 2005-02-26 Stepan Kasal - * src/grep.c (get_nondigit_option): Don't give up too early. - * src/search.c (Pexecute): Add a comment explaining that this - situation should not happen. + * src/grep.c (get_nondigit_option): Don't give up too early. + * src/search.c (Pexecute): Add a comment explaining that this + situation should not happen. 2005-02-22 Claudio Fontana (tiny change) - * src/search.c (Pexecute): Consider eof case when delimiting - matching line. Fixes bug #4531. + * src/search.c (Pexecute): Consider eof case when delimiting + matching line. Fixes bug #4531. 2005-02-23 Julian Foad - * po/ko.po: Fix email address. - * README-alpha: Fix email addresses and clarify the notes. - * tests/backref.sh: Fix trivial typos. + * po/ko.po: Fix email address. + * README-alpha: Fix email addresses and clarify the notes. + * tests/backref.sh: Fix trivial typos. 2005-02-08 Bruno Haible (tiny change) - * src/kwset.h (kwsincr, kwsprep): Change return type to 'const char *'. - * src/kwset.c (kwsincr, kwsprep): Likewise. + * src/kwset.h (kwsincr, kwsprep): Change return type to 'const char *'. + * src/kwset.c (kwsincr, kwsprep): Likewise. 2005-02-08 Arnold D. Robbins - Stepan Kasal + Stepan Kasal - * src/mbsupport.h: Don't say the file is part of GAWK. - Make wording in explanatory comment more generic. + * src/mbsupport.h: Don't say the file is part of GAWK. + Make wording in explanatory comment more generic. 2005-02-07 Stepan Kasal - * src/grep.c: Document that -X is undocumented. + * src/grep.c: Document that -X is undocumented. 2005-01-16 Bruno Haible (tiny change) - Stepan Kasal + Stepan Kasal - * configure.in: Add tests for iswctype, mbrlen, wcrtomb, wcscoll; - use AC_FUNC_MBRTOWC to check for mbrtowc and mbstate_t; move - AC_MBSTATE_T below it. - * src/grep.c: Include mbsupport.h to define MBS_SUPPORT uniformly. - * src/mbsupport.h: Don't test for HAVE_WCTYPE_T. + * configure.in: Add tests for iswctype, mbrlen, wcrtomb, wcscoll; + use AC_FUNC_MBRTOWC to check for mbrtowc and mbstate_t; move + AC_MBSTATE_T below it. + * src/grep.c: Include mbsupport.h to define MBS_SUPPORT uniformly. + * src/mbsupport.h: Don't test for HAVE_WCTYPE_T. 2005-01-13 Arnold D. Robbins - * src/dfa.c (dfaparse): Use LC_COLLATE whenever it is defined; - ENABLE_NLS has nothing to do with this. + * src/dfa.c (dfaparse): Use LC_COLLATE whenever it is defined; + ENABLE_NLS has nothing to do with this. 2005-01-07 Stepan Kasal - * tests/status.sh: Added two tests--option `-s' should have no - influence on the exit status. + * tests/status.sh: Added two tests--option `-s' should have no + influence on the exit status. 2004-12-16 Stepan Kasal - Cosmetic changes, mostly imported from gawk: + Cosmetic changes, mostly imported from gawk: - * src/dfa.c (lexstart): Removed unused variable. - (parse_bracket_exp_mb): Don't initialize different pointers in one - assignment - (lex): Don't initialize automatic arrays, it's invalid in pre-C89 - compilers. - Various other typos. - * src/dfa.h, src/grep.c, src/search.c: Typos. + * src/dfa.c (lexstart): Removed unused variable. + (parse_bracket_exp_mb): Don't initialize different pointers in one + assignment + (lex): Don't initialize automatic arrays, it's invalid in pre-C89 + compilers. + Various other typos. + * src/dfa.h, src/grep.c, src/search.c: Typos. 2004-12-16 Isamu Hasegawa - From http://oss.software.ibm.com/linux/patches/?patch_id=25 + From http://oss.software.ibm.com/linux/patches/?patch_id=25 - * src/search.c: Patch for i18n correctness. - * src/grep.c: Likewise. - * src/dfa.c: Likewise. - * lib/regex.c: Likewise. + * src/search.c: Patch for i18n correctness. + * src/grep.c: Likewise. + * src/dfa.c: Likewise. + * lib/regex.c: Likewise. 2004-12-15 Julian Foad - Changes to documentation and help text, mostly from Stepan Kasal. + Changes to documentation and help text, mostly from Stepan Kasal. - * doc/grep.texi: Minor fixes of phrasing. - * doc/grep.1: Likewise. - * src/grep.c: Likewise. + * doc/grep.texi: Minor fixes of phrasing. + * doc/grep.1: Likewise. + * src/grep.c: Likewise. 2004-12-01 Stepan Kasal - * src/grep.c (usage): Use ``FILE_PATTERN'' for --include and --exclude, - change ``only print'' to ``print only''. - * doc/grep.1: Likewise; state that wildcard matching is used. - Move some options so that they are sorted alphabetically. - * dfa.c, NEWS: Fix typos. + * src/grep.c (usage): Use ``FILE_PATTERN'' for --include and --exclude, + change ``only print'' to ``print only''. + * doc/grep.1: Likewise; state that wildcard matching is used. + Move some options so that they are sorted alphabetically. + * dfa.c, NEWS: Fix typos. 2004-11-28 Benno Schulenberg (tiny change) - * src/grep.c (usage): Clean up several details in the usage string. - * doc/grep.1: Fix descriptions of --include and --exclude. - * doc/grep.texi: Likewise. + * src/grep.c (usage): Clean up several details in the usage string. + * doc/grep.1: Fix descriptions of --include and --exclude. + * doc/grep.texi: Likewise. 2004-11-23 Stepan Kasal - * src/Makefile.am: The egrep and fgrep script now use their own - path to construct the full pathname of grep. + * src/Makefile.am: The egrep and fgrep script now use their own + path to construct the full pathname of grep. 2004-11-23 Stepan Kasal - * src/Makefile.am: Merged the rules for creating the egrep and - fgrep script. + * src/Makefile.am: Merged the rules for creating the egrep and + fgrep script. 2004-11-23 Stepan Kasal - * src/grep.c (usage): Make sure both copies of the ``usage'' - strings match. Add ``(C)'' to the copyright notice. - * src/dfa.c: Changed ``out of memory'' to ``memory exhausted'' to - match messages elsewhere in the source. + * src/grep.c (usage): Make sure both copies of the ``usage'' + strings match. Add ``(C)'' to the copyright notice. + * src/dfa.c: Changed ``out of memory'' to ``memory exhausted'' to + match messages elsewhere in the source. 2004-11-22 Stepan Kasal - * src/search.c: Use mbsupport.h . - * src/dfa.c: Move the inclusion of mbsupport.h lower. + * src/search.c: Use mbsupport.h . + * src/dfa.c: Move the inclusion of mbsupport.h lower. 2004-11-22 Stepan Kasal - * src/grep.c (main): Use PACKAGE_STRING for --version. + * src/grep.c (main): Use PACKAGE_STRING for --version. 2004-11-20 Benno Schulenberg (tiny change) - * src/grep.c (reset): Move the stat check ... - (grepfile): ... here, and also check for a fifo. + * src/grep.c (reset): Move the stat check ... + (grepfile): ... here, and also check for a fifo. 2004-11-20 Stepan Kasal - This change is based on a suggestion by Elliott Hughes. + This change is based on a suggestion by Elliott Hughes. - * src/grep.c (usage): Use PACKAGE_BUGREPORT. - * po/*.po: Hacked the current translation again. + * src/grep.c (usage): Use PACKAGE_BUGREPORT. + * po/*.po: Hacked the current translation again. 2004-11-20 Stepan Kasal - * configure.in: Added a copyright notice (using gawk as a template). - (AC_INIT, AM_INIT_AUTOMAKE): Changed to the ``new'' form so that - the PACKAGE_* symbols get defined correctly in config.h. + * configure.in: Added a copyright notice (using gawk as a template). + (AC_INIT, AM_INIT_AUTOMAKE): Changed to the ``new'' form so that + the PACKAGE_* symbols get defined correctly in config.h. 2004-11-20 Stepan Kasal - * ./cvsignore: Amended several .cvsignore files and - removed *.gmo, acinclude.m4 and stamp-h.in from the root one. - * m4/init.m4: Nuked, it was breaking current automake. - * m4/Makefile.m4: Removed init.m4. - * autogen.m4: Drop support for legacy autoconf; tell whether the - auto tools exited successfully or not; fix the permissions of - tests/*.sh--CVS doesn't provide a way to fix it. + * ./cvsignore: Amended several .cvsignore files and + removed *.gmo, acinclude.m4 and stamp-h.in from the root one. + * m4/init.m4: Nuked, it was breaking current automake. + * m4/Makefile.m4: Removed init.m4. + * autogen.m4: Drop support for legacy autoconf; tell whether the + auto tools exited successfully or not; fix the permissions of + tests/*.sh--CVS doesn't provide a way to fix it. 2004-11-19 Stepan Kasal - * src/dfa.c: Removed old version of gofast patch, from 2003-05-30. - * src/search.c (check_multibyte_string): Likewise. + * src/dfa.c: Removed old version of gofast patch, from 2003-05-30. + * src/search.c (check_multibyte_string): Likewise. 2004-11-19 Stepan Kasal - * src/dfa.c: Added some simple changes from gawk. - * src/mbsupport.h: Imported from gawk. + * src/dfa.c: Added some simple changes from gawk. + * src/mbsupport.h: Imported from gawk. 2004-11-11 Stepan Kasal - * tests/spencer1.awk: Use only lines with 3 fields. - * tests/spencer1.tests: Disable #55 for now. - * tests/ere.tests, tests/bre.tests: Add ``TO CORRECT'' to disabled - tests which had empty $4. - * tests/backref.sh: Modify #2 so that current glibc regex can - handle it in finite time. + * tests/spencer1.awk: Use only lines with 3 fields. + * tests/spencer1.tests: Disable #55 for now. + * tests/ere.tests, tests/bre.tests: Add ``TO CORRECT'' to disabled + tests which had empty $4. + * tests/backref.sh: Modify #2 so that current glibc regex can + handle it in finite time. 2004-11-12 Stepan Kasal - Change bug-gnu-utils address to bug-grep, on many places; there - is no need to have the word ``grep'' in subject then. - Thanks to Tony Abou-Assaleh and Benno Schulenberg for pointing - out this. + Change bug-gnu-utils address to bug-grep, on many places; there + is no need to have the word ``grep'' in subject then. + Thanks to Tony Abou-Assaleh and Benno Schulenberg for pointing + out this. 2004-11-02 Stepan Kasal - * README-alpha: Remove obsolete instructions about CVS, redirect - the reader to savannah web. + * README-alpha: Remove obsolete instructions about CVS, redirect + the reader to savannah web. 2004-09-26 Stepan Kasal - * src/search.c (check_multibyte_string, Gcompile, Ecompile): Replace - malloc with xmalloc. - * src/dfa.c (dfamust): Replace two calls to ``malloc'' by MALLOC. + * src/search.c (check_multibyte_string, Gcompile, Ecompile): Replace + malloc with xmalloc. + * src/dfa.c (dfamust): Replace two calls to ``malloc'' by MALLOC. 2003-07-23 Stepan Kasal - * src/Makefile.am: Add the egrep and fgrep scripts to CLEANFILES. + * src/Makefile.am: Add the egrep and fgrep scripts to CLEANFILES. 2003-07-23 Stepan Kasal - * tests/backref.sh: Messages fixed. + * tests/backref.sh: Messages fixed. 2003-07-08 David Kaelbling (tiny change) - * src/dfa.c: remove non-constant initializers from dfa.c + * src/dfa.c: remove non-constant initializers from dfa.c 2003-06-16 Stepan Kasal - * doc/grep.1: two typos ``--line-buffered [...] penalty'' - * doc/grep.texi: a typo + * doc/grep.1: two typos ``--line-buffered [...] penalty'' + * doc/grep.texi: a typo 2003-06-12 Bernhard Rosenkraenzer - * README-alpha: Mention bug tracking system and grep-devel-list - * tests/spencer1.tests: Fix test 55, as noted by Tim Waugh - * src/search.c: Speed up multibyte support (Patch from Tim Waugh) + * README-alpha: Mention bug tracking system and grep-devel-list + * tests/spencer1.tests: Fix test 55, as noted by Tim Waugh + * src/search.c: Speed up multibyte support (Patch from Tim Waugh) 2003-06-05 Stepan Kasal - * tests/formatbre.awk, tests/formatere.awk: probably unused, so - I've removed them. + * tests/formatbre.awk, tests/formatere.awk: probably unused, so + I've removed them. 2003-06-05 Stepan Kasal - * intl/Makefile: remove generated file. + * intl/Makefile: remove generated file. 2003-06-04 Stepan Kasal - * src/dfa.c: typos fixed. + * src/dfa.c: typos fixed. 2003-05-30 Bernhard Rosenkraenzer - * src/dfa.c: Speed up multibyte support (Patch from Tim Waugh) + * src/dfa.c: Speed up multibyte support (Patch from Tim Waugh) 2003-01-18 Bernhard Rosenkraenzer - * src/grep.c: Fix -i -o combination (Patch from Tim Waugh) + * src/grep.c: Fix -i -o combination (Patch from Tim Waugh) 2002-03-26 Bernhard Rosenkraenzer - * 2.5.1 Release. + * 2.5.1 Release. 2002-03-26 Bernhard Rosenkraenzer - * src/grep.c: Don't fail if we don't have an stdout fd and -q - is used (happens e.g. on calls from hotplug scripts) - * src/grep.c: Don't hang forever if fed with an empty string to - grep for and --color enabled - * src/grep.c: Fix infinite loop on - echo "1 one" | grep -E "[0-9]*" -o - echo "1 one" | grep -E "[0-9]*" --color - * po/*: Sync with translation project - * src/grep.c, src/Makefile.am, configure.in: Add patch from - Paul Eggert to comply with ridiculous - guidelines (don't act differently if invoked as egrep or fgrep) - * configure.in: Bump version number, require a recent autoconf + * src/grep.c: Don't fail if we don't have an stdout fd and -q + is used (happens e.g. on calls from hotplug scripts) + * src/grep.c: Don't hang forever if fed with an empty string to + grep for and --color enabled + * src/grep.c: Fix infinite loop on + echo "1 one" | grep -E "[0-9]*" -o + echo "1 one" | grep -E "[0-9]*" --color + * po/*: Sync with translation project + * src/grep.c, src/Makefile.am, configure.in: Add patch from + Paul Eggert to comply with ridiculous + guidelines (don't act differently if invoked as egrep or fgrep) + * configure.in: Bump version number, require a recent autoconf 2002-03-14 Bernhard Rosenkraenzer - * src/Makefile.am, po/Makefile.in.in: Support DESTDIR properly - * tests/bre.tests: Add fix from - Peter Breitenlohner + * src/Makefile.am, po/Makefile.in.in: Support DESTDIR properly + * tests/bre.tests: Add fix from + Peter Breitenlohner 2002-03-13 Bernhard Rosenkraenzer - * configure.in, m4/regex.m4, m4/malloc.m4, m4/realloc.m4: - Don't set LIBOBJS directly, autoconf 2.53 doesn't like it - * intl/*: Sync with gettext 0.11 - * po/*: Sync with translation project - * configure.in, src/Makefile.am: Don't duplicate code - make - egrep and fgrep links to grep and set matcher based on - application name, suggestion from - Guillaume Cottenceau - * src/grep.c: (prline) Add fix for -i --color from - Jim Meyering - * configure.in: Version 2.5; release + * configure.in, m4/regex.m4, m4/malloc.m4, m4/realloc.m4: + Don't set LIBOBJS directly, autoconf 2.53 doesn't like it + * intl/*: Sync with gettext 0.11 + * po/*: Sync with translation project + * configure.in, src/Makefile.am: Don't duplicate code - make + egrep and fgrep links to grep and set matcher based on + application name, suggestion from + Guillaume Cottenceau + * src/grep.c: (prline) Add fix for -i --color from + Jim Meyering + * configure.in: Version 2.5; release 2002-01-23 Bernhard Rosenkraenzer - * configure.in: Version 2.5g - * Makefile.cvs, grep.spec: Add packaging tools - Merge djgpp changes from Andrew Cottrell : - * src/grep.c: Added conditional compilation for DJGPP - * djgpp: remove directory as it is no longer required with DJGPP 2.03 + * configure.in: Version 2.5g + * Makefile.cvs, grep.spec: Add packaging tools + Merge djgpp changes from Andrew Cottrell : + * src/grep.c: Added conditional compilation for DJGPP + * djgpp: remove directory as it is no longer required with DJGPP 2.03 (or 2.04 when released) - * README.DOS: Moved djgpp/readme to readme.dos - * PATCHES.AC, PATCHES.AM: delete files - redundant - * configure.in, Makefile.am: remove djgpp directory from list + * README.DOS: Moved djgpp/readme to readme.dos + * PATCHES.AC, PATCHES.AM: delete files - redundant + * configure.in, Makefile.am: remove djgpp directory from list 2002-01-22 Bernhard Rosenkraenzer - * doc/grep.texi, doc/grep.1, NEWS: Document --label - * po/ru.po: Sync with translation project - * po/grep.pot: Sync with source + * doc/grep.texi, doc/grep.1, NEWS: Document --label + * po/ru.po: Sync with translation project + * po/grep.pot: Sync with source 2002-01-18 Bernhard Rosenkraenzer - * src/grep.c: Add --label, based on patch from Stepan Koltsov + * src/grep.c: Add --label, based on patch from Stepan Koltsov 2001-11-20 Bernhard Rosenkraenzer - * autogen.sh: Don't hardcode aclocal dir + * autogen.sh: Don't hardcode aclocal dir 2001-11-19 Bernhard Rosenkraenzer - * src/grep.c: Add --only-matching (-o) switch (see NEWS) - * doc/grep.texi, doc/grep.1, NEWS: Document changes - * configure.in, lib/Makefile.am: Don't use internal getopt if + * src/grep.c: Add --only-matching (-o) switch (see NEWS) + * doc/grep.texi, doc/grep.1, NEWS: Document changes + * configure.in, lib/Makefile.am: Don't use internal getopt if we're on a system that provides a working getopt function 2001-09-25 Bernhard Rosenkraenzer - * configure.in: Detect pcre correctly even when it's in - non-standard locations, using pcre-config - * src/grep.c: Add --color={always,never,tty} argument (like in ls) - * src/grep.c: Turn off blinking in the default colorization - * src/grep.c: Add --devices (-D) switch (analogous to --directories) - * src/dfa.c: Fix an i18n bug: echo "A" | grep '[A-Z0-9]' wouldn't work - in non-C-Locales on systems using current versions of glibc. - * AUTHORS: Change maintainer, credit Alain for his work until now - * configure.in, m4/decl.m4, m4/dosfile.m4, m4/gettext.m4, - m4/init.m4, m4/install.m4, m4/largefile.m4, m4/lcmessage.m4, - m4/header.m4, m4/isc-posix.m4, m4/missing.m4, m4/progtest.m4, - m4/sanity.m4: - Fix build with autoconf 2.5x, retain 2.1x compatibility for now - * autogen.sh: Add some crude hacks to make it possible to build with - both autoconf 2.5x and 2.1x - * acconfig.h: removed (no longer required) - * Makefile.am: add cvs-clean target - * doc/grep.texi, doc/grep.1, NEWS: Document changes - (--color, --devices, -D) - * src/dfa.c, src/grep.c: Add vim modelines + * configure.in: Detect pcre correctly even when it's in + non-standard locations, using pcre-config + * src/grep.c: Add --color={always,never,tty} argument (like in ls) + * src/grep.c: Turn off blinking in the default colorization + * src/grep.c: Add --devices (-D) switch (analogous to --directories) + * src/dfa.c: Fix an i18n bug: echo "A" | grep '[A-Z0-9]' wouldn't work + in non-C-Locales on systems using current versions of glibc. + * AUTHORS: Change maintainer, credit Alain for his work until now + * configure.in, m4/decl.m4, m4/dosfile.m4, m4/gettext.m4, + m4/init.m4, m4/install.m4, m4/largefile.m4, m4/lcmessage.m4, + m4/header.m4, m4/isc-posix.m4, m4/missing.m4, m4/progtest.m4, + m4/sanity.m4: + Fix build with autoconf 2.5x, retain 2.1x compatibility for now + * autogen.sh: Add some crude hacks to make it possible to build with + both autoconf 2.5x and 2.1x + * acconfig.h: removed (no longer required) + * Makefile.am: add cvs-clean target + * doc/grep.texi, doc/grep.1, NEWS: Document changes + (--color, --devices, -D) + * src/dfa.c, src/grep.c: Add vim modelines 2001-08-30 Alain Magloire - * configure.in: Add gl in ALL_LINGUAS. + * configure.in: Add gl in ALL_LINGUAS. 2001-08-30 Kurt D Schwehr - * doc/grep.1: Warn that grep insert a "--" between groups of matches, - when using the context options. - * doc/grep.texi: Likewised. + * doc/grep.1: Warn that grep insert a "--" between groups of matches, + when using the context options. + * doc/grep.texi: Likewised. 2001-08-25 Heikki Korpela - * doc/grep.texi: Point out that some Platforms do not support - reading of directories and silently ignore them. + * doc/grep.texi: Point out that some Platforms do not support + reading of directories and silently ignore them. 2001-08-21 Alain Magloire - * lib/malloc.c: New file: - * lib/realloc.c: New file: - * lib/Makefile.am: Add malloc.c and realloc.c in EXTRA_DIST. + * lib/malloc.c: New file: + * lib/realloc.c: New file: + * lib/Makefile.am: Add malloc.c and realloc.c in EXTRA_DIST. 2001-07-31 Alain Magloire - * po/*.po: New files from the translation team: - grep-2.5e.de.po grep-2.5e.el.po grep-2.5e.eo.po grep-2.5e.es.po - grep-2.5e.et.po grep-2.5e.fr.po grep-2.5e.gl.po grep-2.5e.it.po - grep-2.5e.pl.po grep-2.5e.sl.po + * po/*.po: New files from the translation team: + grep-2.5e.de.po grep-2.5e.el.po grep-2.5e.eo.po grep-2.5e.es.po + grep-2.5e.et.po grep-2.5e.fr.po grep-2.5e.gl.po grep-2.5e.it.po + grep-2.5e.pl.po grep-2.5e.sl.po 2001-07-31 Andreas Schwab - * src/grep.c: Fix all uses of error to pass a proper format - string. + * src/grep.c: Fix all uses of error to pass a proper format + string. 2001-07-29 Alain Magloire - * grep/src/grep.c (usage): Typos corrected. - Patches from Santiago Vila. + * grep/src/grep.c (usage): Typos corrected. + Patches from Santiago Vila. 2001-07-29 Alain Magloire - David Clissold, wrote: - a small bug in the GNU grep 2.4.2, which may have gone unnoticed - because it only causes a failure if building on a system with large - files enabled (e.g. an "off_t" is a "long long" rather than a "long"). - savedir() takes on off_t argument, but in grepdir() the parameter - is cast to an (unsigned). Well, if an off_t is larger than an int, - the value gets truncated. This would not normally have an effect on a - little-endian platform (unless the file is >2GB), but on a big-endian - system it will always fail. The external effect is that - "grep -r foo dir_name" fails with ENOMEM (from malloc() within - savedir()). + David Clissold, wrote: + a small bug in the GNU grep 2.4.2, which may have gone unnoticed + because it only causes a failure if building on a system with large + files enabled (e.g. an "off_t" is a "long long" rather than a "long"). + savedir() takes on off_t argument, but in grepdir() the parameter + is cast to an (unsigned). Well, if an off_t is larger than an int, + the value gets truncated. This would not normally have an effect on a + little-endian platform (unless the file is >2GB), but on a big-endian + system it will always fail. The external effect is that + "grep -r foo dir_name" fails with ENOMEM (from malloc() within + savedir()). - * grep/src/grep.c (grepdir): Remove the (unsigned) cast when calling - savedir(). - Patch from David Clissold. + * grep/src/grep.c (grepdir): Remove the (unsigned) cast when calling + savedir(). + Patch from David Clissold. 2001-07-29 Alain Magloire - * grep/doc/grep.texi: In Bugs report use {n,m} for consistency. - * grep/doc/grep.1: Likewised. - Noted by Steven Lucy. + * grep/doc/grep.texi: In Bugs report use {n,m} for consistency. + * grep/doc/grep.1: Likewised. + Noted by Steven Lucy. 2001-04-27 Isamu Hasegawa - * dfa.c (mblen_buf) : New variable contains the amount of remain - byte of corresponding multibyte character in the input string. - (SKIP_REMAIN_MB_IF_INITIAL_STATE) : Use mblen_buf. - (match_anychar) : Use mblen_buf. - (match_mb_charset) : Use mblen_buf. - (transit_state_consume_1char) : Use mblen_buf. - (transit_state) : Use inputwcs to get current (multibyte) character. - (dfaexec) : Add initialization of mblen_buf. + * dfa.c (mblen_buf) : New variable contains the amount of remain + byte of corresponding multibyte character in the input string. + (SKIP_REMAIN_MB_IF_INITIAL_STATE) : Use mblen_buf. + (match_anychar) : Use mblen_buf. + (match_mb_charset) : Use mblen_buf. + (transit_state_consume_1char) : Use mblen_buf. + (transit_state) : Use inputwcs to get current (multibyte) character. + (dfaexec) : Add initialization of mblen_buf. 2001-04-27 Isamu Hasegawa - * dfa.c (addtok) : Set appropriate value to multibyte_prop. - (dfastate) : Add the initialization of the variable. - (dfaexec) : Call transit_state if d->fail may transit by - multibyte characters. - (transit_state_singlebyte) : Clean up unnecessary code. - (transit_state_consume_1char) : Likewise. + * dfa.c (addtok) : Set appropriate value to multibyte_prop. + (dfastate) : Add the initialization of the variable. + (dfaexec) : Call transit_state if d->fail may transit by + multibyte characters. + (transit_state_singlebyte) : Clean up unnecessary code. + (transit_state_consume_1char) : Likewise. (transit_state) : Add checking for word and newline. 2001-04-19 Isamu Hasegawa - * search.c (check_multibyte_string) : Check the case when mbclen == 0. + * search.c (check_multibyte_string) : Check the case when mbclen == 0. 2001-04-11 Isamu Hasegawa - * search.c (check_multibyte_string) : Check the head of multibyte - characters, and optimize a bit. - (EGexecute) : Optimize a bit. - (Fexecute) : Fix the index. + * search.c (check_multibyte_string) : Check the head of multibyte + characters, and optimize a bit. + (EGexecute) : Optimize a bit. + (Fexecute) : Fix the index. 2001-04-02 Alain Magloire - * lib/regex.c: Update from GNU lib C, with the changes - provided by Paul Eggert. - * lib/posix/regex.h: Likewise. + * lib/regex.c: Update from GNU lib C, with the changes + provided by Paul Eggert. + * lib/posix/regex.h: Likewise. 2001-02-17 Paul Eggert - Stop trying to support hosts that have nonstandard declarations for - mbrtowc and/or mbstate_t. It's not worth the portability hassle. + Stop trying to support hosts that have nonstandard declarations for + mbrtowc and/or mbstate_t. It's not worth the portability hassle. - * lib/quotearg.c (mbrtowc, mbsinit): Remove workaround macros - for hosts that have mbrtowc but not mbstate_t, as we now - insist on proper declarations for both before using mbrtowc. + * lib/quotearg.c (mbrtowc, mbsinit): Remove workaround macros + for hosts that have mbrtowc but not mbstate_t, as we now + insist on proper declarations for both before using mbrtowc. 2001-03-18 Alain Magloire - * configure.in: Call AC_MBSTATE_T. - * Makefile.am: Add mbstate_t.m4 - * m4/Makefile.am: Add mbstate_t.m4 - * m4/mbstate_t.m4: New m4 macro. - * lib/strtol.c: Define CHAR_BITS. - Uwe H. Steinfeld, Ruslan Ermilov, Volkert Bochert, noted - that mbstate_t was not define for certain platforms. + * configure.in: Call AC_MBSTATE_T. + * Makefile.am: Add mbstate_t.m4 + * m4/Makefile.am: Add mbstate_t.m4 + * m4/mbstate_t.m4: New m4 macro. + * lib/strtol.c: Define CHAR_BITS. + Uwe H. Steinfeld, Ruslan Ermilov, Volkert Bochert, noted + that mbstate_t was not define for certain platforms. 2001-03-18 Paul Eggert - * src/grep.c (fillbuf): Fix storage allocation performance - bug: buffer was doubling in size in many cases where it didn't - have to. + * src/grep.c (fillbuf): Fix storage allocation performance + bug: buffer was doubling in size in many cases where it didn't + have to. 2001-03-17 Paul Eggert - * src/grep.c (fillbuf): Avoid unnecessary division by 2. - Don't check xrealloc return value; it's guaranteed to be nonzero. - (fillbuf, grepdir): Use xalloc_die rather than error; it's shorter. + * src/grep.c (fillbuf): Avoid unnecessary division by 2. + Don't check xrealloc return value; it's guaranteed to be nonzero. + (fillbuf, grepdir): Use xalloc_die rather than error; it's shorter. 2001-03-17 Alain Magloire - * src/grep.c (context_length_arg): error () passing wrong format. - Spotted by Jim Meyering. + * src/grep.c (context_length_arg): error () passing wrong format. + Spotted by Jim Meyering. 2001-03-07 Alain Magloire - * README-alpha: Removed reference to GNU tar, add the location - of the CVSROOT. + * README-alpha: Removed reference to GNU tar, add the location + of the CVSROOT. 2001-03-06 Alain Magloire - Only the Regex patterns should be split in an array, patterns[]. - The dfa and KWset compiled patterns should remain global and the - patterns compiled all at once. + Only the Regex patterns should be split in an array, patterns[]. + The dfa and KWset compiled patterns should remain global and the + patterns compiled all at once. - * src/search.c: include "error.h" and "xalloc.h" to get prototyping - of x*alloc() and error(). - (kwsinit): Reverse to previous behaviour and takes no argument. - (kwsmusts): Likewised. - (Gcompile): For the regex pattern, split them and each pattern - is put in different compiled structure patterns[]. The patterns - are given to dfacomp() and kwsmusts() as is. - (Ecompile): Likewised. - (Fcompile): Reverse to the old behaviour of compiling the enire - patterns in one shot. - (EGexecute): If falling to GNU regex for the matching, loop in the - array of compile patterns[] to find a match. - (error): Many error () were call with arguments in the wrong order. - * tests/file.sh: Simple test to check for pattern in files. + * src/search.c: include "error.h" and "xalloc.h" to get prototyping + of x*alloc() and error(). + (kwsinit): Reverse to previous behaviour and takes no argument. + (kwsmusts): Likewised. + (Gcompile): For the regex pattern, split them and each pattern + is put in different compiled structure patterns[]. The patterns + are given to dfacomp() and kwsmusts() as is. + (Ecompile): Likewised. + (Fcompile): Reverse to the old behaviour of compiling the enire + patterns in one shot. + (EGexecute): If falling to GNU regex for the matching, loop in the + array of compile patterns[] to find a match. + (error): Many error () were call with arguments in the wrong order. + * tests/file.sh: Simple test to check for pattern in files. - Reaction to bug report fired by Greg Louis + Reaction to bug report fired by Greg Louis 2001-03-06 Isamu Hasegawa - In multibyte environments, handle multibyte characters as single - characters in bracket expressions. + In multibyte environments, handle multibyte characters as single + characters in bracket expressions. - * src/dfa.h (mb_char_classes) : new structure. - (mbcsets): new variable. - (nmbcsets): new variable. - (mbcsets_alloc) : new variable. - * src/dfa.c (prtok) : handle MBCSET. - (fetch_wc): new function to fetch a wide character. - (parse_bracket_exp_mb) : new function to handle multibyte character - in lex(). - (lex): invoke parse_bracket_exp_mb() for multibyte bracket expression. - (atom): handle MBCSET. - (epsclosure): likewise. - (dfaanalyze): likewise. - (dfastate): likewise. - (match_mb_charset): new function to judge whether a bracket match - with a multibyte character. - (check_matching_with_multibyte_ops) : handle MBCSET. - (dfainit): initialize new variables. - (dfafree): free new variables. + * src/dfa.h (mb_char_classes) : new structure. + (mbcsets): new variable. + (nmbcsets): new variable. + (mbcsets_alloc) : new variable. + * src/dfa.c (prtok) : handle MBCSET. + (fetch_wc): new function to fetch a wide character. + (parse_bracket_exp_mb) : new function to handle multibyte character + in lex(). + (lex): invoke parse_bracket_exp_mb() for multibyte bracket expression. + (atom): handle MBCSET. + (epsclosure): likewise. + (dfaanalyze): likewise. + (dfastate): likewise. + (match_mb_charset): new function to judge whether a bracket match + with a multibyte character. + (check_matching_with_multibyte_ops) : handle MBCSET. + (dfainit): initialize new variables. + (dfafree): free new variables. 2001-03-04 Alain Magloire - To get more in sync with other GNU utilities like GNU tar and fetish - all the supporting functions are now under lib. - Thanks to Jim Meyering, Volkert Bochert and Paul Eggert for - the code and the reminders. + To get more in sync with other GNU utilities like GNU tar and fetish + all the supporting functions are now under lib. + Thanks to Jim Meyering, Volkert Bochert and Paul Eggert for + the code and the reminders. - * src/grep.c (fatal): Function removed, using error () from - lib/error.c instead. - (usage): Copyright updated. - (error): Function removed, using error () from lib/error.c instead, - adjust prototypes. - (prog): Global variable rename to program_name, to work with new - lib/error.c. - (xrealloc): Removed using lib/xmalloc.c. - (xmalloc): Removed using lib/xmalloc.c - (main): Register with atexit() to check for error on stdout. - * configure.in: Check for atexit(), call jm_MALLOC, jm_RELLOC and - jm_PREREQ_ERROR. - * tests/bre.awk: Removed the hack to drain the buffer since we - always fclose(stdout) atexit. - * tests/ere.awk: Likewise. - * tests/spencer1.awk: Likewise. - * bootstrap/Makefile.try: Update the Makefile to reflect the changes - in the new hierarchy. + * src/grep.c (fatal): Function removed, using error () from + lib/error.c instead. + (usage): Copyright updated. + (error): Function removed, using error () from lib/error.c instead, + adjust prototypes. + (prog): Global variable rename to program_name, to work with new + lib/error.c. + (xrealloc): Removed using lib/xmalloc.c. + (xmalloc): Removed using lib/xmalloc.c + (main): Register with atexit() to check for error on stdout. + * configure.in: Check for atexit(), call jm_MALLOC, jm_RELLOC and + jm_PREREQ_ERROR. + * tests/bre.awk: Removed the hack to drain the buffer since we + always fclose(stdout) atexit. + * tests/ere.awk: Likewise. + * tests/spencer1.awk: Likewise. + * bootstrap/Makefile.try: Update the Makefile to reflect the changes + in the new hierarchy. - * README-alpha: New File. - * m4/realloc.m4: New File. - * m4/malloc.m4: New File. - * m4/error.m4: New File. - * m4/Makefile.am: Updated. - * lib: New directory. - * lib/Makefile.am: New file. - * lib/closeout.c: New file. - * lib/closeout.h: New file. - * lib/fnmatch.c: New file. - * lib/fnmatch.h: New file. - * lib/atexit.c: New file. - * lib/error.c: New file. - * lib/error.h: New file. - * lib/quotearg.h: New file. - * lib/quotearg.c: New file. - * lib/xmalloc.c: New file. - * lib/posix: New directory. - * lib/posix/Makefile.am: New file. - * src/getopt.c: Moved to lib. - * src/getopt1.c: Moved to lib. - * src/getopt.h: Moved to lib. - * src/alloca.c: Moved to lib. - * src/exclude.c: Moved to lib. - * src/exclude.h: Moved to lib. - * src/hard-locale.h: Moved to lib. - * src/hard-locale.c: Moved to lib. - * src/isdir.c: Moved to lib. - * src/mechr.c: Moved to lib. - * src/obstack.c: Moved to lib. - * src/obstack.h: Moved to lib. - * src/regex.c: Moved to lib. - * src/regex.h: Moved to lib. - * src/posix: Moved to lib. - * src/posix/regex.h: Moved to lib. - * src/savedir.h: Moved to lib. - * src/savedir.c: Moved to lib. - * src/stpcpy.c: Moved to lib. - * src/strtoul.c: Moved to lib. - * src/strtol.c: Moved to lib. - * src/strtoull.c: Moved to lib. - * src/strtoumax.c: Moved to lib. - * src/xstrtol.c: Moved to lib. - * src/xstrtol.h: Moved to lib. - * src/xstrtoumax.c: Moved to lib. + * README-alpha: New File. + * m4/realloc.m4: New File. + * m4/malloc.m4: New File. + * m4/error.m4: New File. + * m4/Makefile.am: Updated. + * lib: New directory. + * lib/Makefile.am: New file. + * lib/closeout.c: New file. + * lib/closeout.h: New file. + * lib/fnmatch.c: New file. + * lib/fnmatch.h: New file. + * lib/atexit.c: New file. + * lib/error.c: New file. + * lib/error.h: New file. + * lib/quotearg.h: New file. + * lib/quotearg.c: New file. + * lib/xmalloc.c: New file. + * lib/posix: New directory. + * lib/posix/Makefile.am: New file. + * src/getopt.c: Moved to lib. + * src/getopt1.c: Moved to lib. + * src/getopt.h: Moved to lib. + * src/alloca.c: Moved to lib. + * src/exclude.c: Moved to lib. + * src/exclude.h: Moved to lib. + * src/hard-locale.h: Moved to lib. + * src/hard-locale.c: Moved to lib. + * src/isdir.c: Moved to lib. + * src/mechr.c: Moved to lib. + * src/obstack.c: Moved to lib. + * src/obstack.h: Moved to lib. + * src/regex.c: Moved to lib. + * src/regex.h: Moved to lib. + * src/posix: Moved to lib. + * src/posix/regex.h: Moved to lib. + * src/savedir.h: Moved to lib. + * src/savedir.c: Moved to lib. + * src/stpcpy.c: Moved to lib. + * src/strtoul.c: Moved to lib. + * src/strtol.c: Moved to lib. + * src/strtoull.c: Moved to lib. + * src/strtoumax.c: Moved to lib. + * src/xstrtol.c: Moved to lib. + * src/xstrtol.h: Moved to lib. + * src/xstrtoumax.c: Moved to lib. 2001-03-01 Isamu Hasegawa - Implement the mechanism to match with multibyte characters, - and use it for `period' in multibyte environments. + Implement the mechanism to match with multibyte characters, + and use it for `period' in multibyte environments. - * dfa.h (mbps): new variable. - * dfa.c (prtok): handle ANYCHAR. - (lex): use ANYCHAR for `period' in multibyte environments. - (atom): handle ANYCHAR. - (state_index): initialize mbps in multibyte environments. - (epsclosure): handle ANYCHAR. - (dfaanalyze): handle ANYCHAR. - (dfastate): handle ANYCHAR. - (realloc_trans_if_necessary): new function. - (transit_state_singlebyte): new function. - (match_anychar): new function. - (check_matching_with_multibyte_ops): new function. - (transit_state_consume_1char): new function. - (transit_state): new function. - (dfaexec): invoke transit_state if expression can match with - a multibyte character in multibyte environments. - (dfamust): handle ANYCHAR. + * dfa.h (mbps): new variable. + * dfa.c (prtok): handle ANYCHAR. + (lex): use ANYCHAR for `period' in multibyte environments. + (atom): handle ANYCHAR. + (state_index): initialize mbps in multibyte environments. + (epsclosure): handle ANYCHAR. + (dfaanalyze): handle ANYCHAR. + (dfastate): handle ANYCHAR. + (realloc_trans_if_necessary): new function. + (transit_state_singlebyte): new function. + (match_anychar): new function. + (check_matching_with_multibyte_ops): new function. + (transit_state_consume_1char): new function. + (transit_state): new function. + (dfaexec): invoke transit_state if expression can match with + a multibyte character in multibyte environments. + (dfamust): handle ANYCHAR. 2001-03-01 Alain Magloire - * src/exclude.c: New file. - * src/exclude.h: New file. - * src/grep.c (main): Took the GNU tar code to handle - the option --include, --exclude, --exclude-from. - Files are check for a match, with exlude_filename (). - New option --exclude-from. - * src/savedir.c: Call exclude_filename() to check for - file pattern exclusion or inclusion. - * configure.in: --disable-pcre rename to --disable-perl-regexp. + * src/exclude.c: New file. + * src/exclude.h: New file. + * src/grep.c (main): Took the GNU tar code to handle + the option --include, --exclude, --exclude-from. + Files are check for a match, with exlude_filename (). + New option --exclude-from. + * src/savedir.c: Call exclude_filename() to check for + file pattern exclusion or inclusion. + * configure.in: --disable-pcre rename to --disable-perl-regexp. 2001-02-25 Alain Magloire - * src/dfa.c: Typo corrected. - Noted by Isamu Hasegawa. - * src/savedir.c: Typos corrected. + * src/dfa.c: Typo corrected. + Noted by Isamu Hasegawa. + * src/savedir.c: Typos corrected. 2001-02-22 Alain Magloire - * src/savedir.c (isdir1): New function, calling isdir with - the correct pathname. + * src/savedir.c (isdir1): New function, calling isdir with + the correct pathname. 2001-02-19 Isamu Hasegawa - Avoid incorrect state transition in multibyte environments. + Avoid incorrect state transition in multibyte environments. - * dfa.h (nmultibyte_prop): new variable. - (multibyte_prop): new variable. - * dfa.c (addtok): set inputwcs. - (dfastate): avoid incorrect state transition in multibyte - environments. - (dfaexec): likewise. - (dfainit): init multibyte_prop. - (dfafree): free multibyte_prop. - (inputwcs): new variable. + * dfa.h (nmultibyte_prop): new variable. + (multibyte_prop): new variable. + * dfa.c (addtok): set inputwcs. + (dfastate): avoid incorrect state transition in multibyte + environments. + (dfaexec): likewise. + (dfainit): init multibyte_prop. + (dfafree): free multibyte_prop. + (inputwcs): new variable. 2001-02-19 Isamu Hasegawa - Handle a multibyte character followed by '*', '+', and '{n,m}' - correctly. + Handle a multibyte character followed by '*', '+', and '{n,m}' + correctly. - * dfa.c (update_mb_len_index): new function. - Support for multibyte string. - (FETCH): call update_mb_len_index. - (lex): check cur_mb_index not to misunderstand multibyte characters. - (atom): make a tree from a multibyte character. - (dfaparse): initialize new variables. - (mbs): new variable. - (cur_mb_len): new variable. - (cur_mb_index): new variable. + * dfa.c (update_mb_len_index): new function. + Support for multibyte string. + (FETCH): call update_mb_len_index. + (lex): check cur_mb_index not to misunderstand multibyte characters. + (atom): make a tree from a multibyte character. + (dfaparse): initialize new variables. + (mbs): new variable. + (cur_mb_len): new variable. + (cur_mb_index): new variable. 2001-02-18 Jim Meyering - * m4/dosfile.m4 (AC_DOSFILE): Move AC_DEFINEs out of AC_CACHE_CHECK. + * m4/dosfile.m4 (AC_DOSFILE): Move AC_DEFINEs out of AC_CACHE_CHECK. 2001-02-17 Alain Malgoire - * doc/grep.texi: Document the new options and the new behaviour - back-references are local. Use excerpt from Karl Berry regex - texinfo. + * doc/grep.texi: Document the new options and the new behaviour + back-references are local. Use excerpt from Karl Berry regex + texinfo. - * bootstrap/Makefile.try: Added xstrtoumax.o xstrtoul.o hard-local.o + * bootstrap/Makefile.try: Added xstrtoumax.o xstrtoul.o hard-local.o 2001-02-17 Alain Magloire - From Guglielmo 'bond' Bondioni : - The bug was that using a multi line file that contained REs (one per - line), backreferences in the REs were considered global (to the file) - and not local (to the line). - That is, \1 in line n refers to the first \(.\) in the whole file, - rather than in the line itself. + From Guglielmo 'bond' Bondioni : + The bug was that using a multi line file that contained REs (one per + line), backreferences in the REs were considered global (to the file) + and not local (to the line). + That is, \1 in line n refers to the first \(.\) in the whole file, + rather than in the line itself. - From Tapani Tarvainen : - # Re: grep -e '\(a\)\1' -e '\(b\)\1' - That's not the way it should work: multiple -e arguments - should be treated as independent patterns and back references - should not refer to previous ones. + From Tapani Tarvainen : + # Re: grep -e '\(a\)\1' -e '\(b\)\1' + That's not the way it should work: multiple -e arguments + should be treated as independent patterns and back references + should not refer to previous ones. - From Paul Eggert : - GNU grep currently does not issue - diagnostics for the following two cases, both of which are erroneous: - grep -e '[' -e ']' - grep '[ - ]' - POSIX requires a diagnostic in both cases because '[' is not a valid - regular expression. + From Paul Eggert : + GNU grep currently does not issue + diagnostics for the following two cases, both of which are erroneous: + grep -e '[' -e ']' + grep '[ + ]' + POSIX requires a diagnostic in both cases because '[' is not a valid + regular expression. - To overcome those problems, grep no longer pass the concatenate - patterns to GNU regex but rather compile each patterns separately - and keep the result in an array. + To overcome those problems, grep no longer pass the concatenate + patterns to GNU regex but rather compile each patterns separately + and keep the result in an array. - * src/search.c (patterns): New global variable; a structure array - holding the compiled patterns. - Declare function prototypes to minimize error. - (dfa, kswset, regexbuf, regs): Removed, no longer static globals, but - rather fields in patterns[] structure per motif. - (Fcompile): Alloc an entry in patterns[] to hold the regex. - (Ecompile): Alloc an entry per motif in the patterns[] array. - (Gcompile): Likewise. - (EGexecute): Loop through of array of patterns[] for a match. + * src/search.c (patterns): New global variable; a structure array + holding the compiled patterns. + Declare function prototypes to minimize error. + (dfa, kswset, regexbuf, regs): Removed, no longer static globals, but + rather fields in patterns[] structure per motif. + (Fcompile): Alloc an entry in patterns[] to hold the regex. + (Ecompile): Alloc an entry per motif in the patterns[] array. + (Gcompile): Likewise. + (EGexecute): Loop through of array of patterns[] for a match. 2001-02-17 Alain Magloire - From Bernd Strieder : - # tail -f logfile | grep important | do_something_urgent - # tail -f logfile | grep important | do_something_taking_very_long - If grep does full buffering in these cases then the urgent operation - does not happen as it should in the first case, and in the second case - time is lost due to waiting for the buffer to be filled. - This is clearly spoken not grep's fault in the first place, but libc's. - There is a heuristic in libc that make a stream line-buffered only if a - terminal is on the other end. This doesn't take care of the cases where - this connection is somehow indirect. + From Bernd Strieder : + # tail -f logfile | grep important | do_something_urgent + # tail -f logfile | grep important | do_something_taking_very_long + If grep does full buffering in these cases then the urgent operation + does not happen as it should in the first case, and in the second case + time is lost due to waiting for the buffer to be filled. + This is clearly spoken not grep's fault in the first place, but libc's. + There is a heuristic in libc that make a stream line-buffered only if a + terminal is on the other end. This doesn't take care of the cases where + this connection is somehow indirect. - * src/grep.c (line_buffered): new option variable. - (prline): if line_buffered is set fflush() is call. - (usage): line_buffered new option. - Input from Paul Eggert, doing setvbuf() may not be portable - and breaks grep -z. + * src/grep.c (line_buffered): new option variable. + (prline): if line_buffered is set fflush() is call. + (usage): line_buffered new option. + Input from Paul Eggert, doing setvbuf() may not be portable + and breaks grep -z. 2001-02-16 Alain Magloire - Patch from Isamu Hasegawa, for multibyte support. - This patch prevent kwset_matcher from following problems. - For example, in SJIS encoding, one character has the codepoint 0x895c. - So the second byte of the character can match with '\' incorrectly. - And in eucJP encoding, there are the characters whose codepoints are - 0xa5b9, 0xa5c8. On the other hand, there is one character whose - codepoint is 0xb9a5. So 0xb9a5 can match with 2nd byte of 0xa5b9 - and 1st byte of 0xa5c8. + Patch from Isamu Hasegawa, for multibyte support. + This patch prevent kwset_matcher from following problems. + For example, in SJIS encoding, one character has the codepoint 0x895c. + So the second byte of the character can match with '\' incorrectly. + And in eucJP encoding, there are the characters whose codepoints are + 0xa5b9, 0xa5c8. On the other hand, there is one character whose + codepoint is 0xb9a5. So 0xb9a5 can match with 2nd byte of 0xa5b9 + and 1st byte of 0xa5c8. - * configure.in: Add check for mbrtowc. - * src/search.c (check_multibyte_string): new function. - Support for multibyte string. - (EGexecute): call check_multibyte_string when kwset is set. - (Fexecute): call to check_multibyte_string. - (MBS_SUPPORT): new macro. - (MB_CUR_MAX): new macro. + * configure.in: Add check for mbrtowc. + * src/search.c (check_multibyte_string): new function. + Support for multibyte string. + (EGexecute): call check_multibyte_string when kwset is set. + (Fexecute): call to check_multibyte_string. + (MBS_SUPPORT): new macro. + (MB_CUR_MAX): new macro. 2001-02-16 Alain Magloire - * djgpp/config.bat: Fix for 4dos.com. - * m4/dosfile.m4 (HAVE_DOS_FILE_CONTENTS): Was not set. - Bugs noted and patched by Juan Manuel Guerrero. + * djgpp/config.bat: Fix for 4dos.com. + * m4/dosfile.m4 (HAVE_DOS_FILE_CONTENTS): Was not set. + Bugs noted and patched by Juan Manuel Guerrero. 2001-02-16 Alain Magloire - A much requested feature, the possibility to select - files when doing recurse : - # find . -name "*.c" | xargs grep main {} - # grep --include=*.c main . - # find . -not -name "*.c" | xargs grep main {} - # grep --exclude=*.c main . + A much requested feature, the possibility to select + files when doing recurse : + # find . -name "*.c" | xargs grep main {} + # grep --include=*.c main . + # find . -not -name "*.c" | xargs grep main {} + # grep --exclude=*.c main . - * src/grep.c (short_options): -R equivalent to -r. - (#ifdef) : Fix some inconsistencies in the use of #ifdefs, prefer - #if defined() wen possible. - (long_options): Add --color, --include and exclude. - (Usage): Description of new options. - (color): Rename color variable to color_option. - Removed 'always|never|auto' arguments, not necessary for grep. - (exclude_pattern): new variable, holder for the file pattern. - (include_pattern): new variable, hoder for the file pattern. - * src/savedir.c: Signature change, take two new argmuments. - * doc/grep.texi: Document, new options. - * doc/grep.man: Document, new options. + * src/grep.c (short_options): -R equivalent to -r. + (#ifdef) : Fix some inconsistencies in the use of #ifdefs, prefer + #if defined() wen possible. + (long_options): Add --color, --include and exclude. + (Usage): Description of new options. + (color): Rename color variable to color_option. + Removed 'always|never|auto' arguments, not necessary for grep. + (exclude_pattern): new variable, holder for the file pattern. + (include_pattern): new variable, hoder for the file pattern. + * src/savedir.c: Signature change, take two new argmuments. + * doc/grep.texi: Document, new options. + * doc/grep.man: Document, new options. 2001-02-09 Alain Magloire - * src/grep.c (long_options): Added equivalent to -r with -R. - * src/grep.c (usage): added --color and --colour. - Noted with patch from, H.Merijn Brand and Wichert Akkerman. + * src/grep.c (long_options): Added equivalent to -r with -R. + * src/grep.c (usage): added --color and --colour. + Noted with patch from, H.Merijn Brand and Wichert Akkerman. 2001-02-09 Alain Magloire - Patch from Ulrich Drepper to provide hilighting. + Patch from Ulrich Drepper to provide hilighting. - * src/grep.c: New option --color. - (color): New static var. - (COLOR_OPTION): new constant. - (grep_color): new static var. - (prline): Now when color is set prline() will call the current matcher - to find the offset of the matching string. - * src/savedir.c: Take advantage of _DIRENT_HAVE_TYPE if supported. - * src/search.c (EGexecute, Fexecute, Pexecute): Take a new argument - when doing exact match for the color hiligting. + * src/grep.c: New option --color. + (color): New static var. + (COLOR_OPTION): new constant. + (grep_color): new static var. + (prline): Now when color is set prline() will call the current matcher + to find the offset of the matching string. + * src/savedir.c: Take advantage of _DIRENT_HAVE_TYPE if supported. + * src/search.c (EGexecute, Fexecute, Pexecute): Take a new argument + when doing exact match for the color hiligting. 2000-09-01 Brian Youmans - * doc/grep.texi: Typo fixes. + * doc/grep.texi: Typo fixes. 2000-08-30 Paul Eggert - * doc/grep.texi (Usage): Talk about what "grep -r hello *.c" - means. + * doc/grep.texi (Usage): Talk about what "grep -r hello *.c" + means. 2000-08-20 Paul Eggert - Handle range expressions correctly even when they match - strings with two or more characters. + Handle range expressions correctly even when they match + strings with two or more characters. - * src/dfa.h (CRANGE): New enum value. Comment fix. + * src/dfa.h (CRANGE): New enum value. Comment fix. - * src/dfa.c: Include if HAVE_SETLOCALE. - Include "hard-locale.h". - (prtok): Print CRANGE. - (hard_LC_COLLATE): New static var. - (lex): Return CRANGE when parsing a character range in a hard locale. - Don't use strcoll; it's no longer needed and wasn't correct anyway. - Use unsigned rather than token to hold unsigned chars. - (addtok): Comment fix. - (atom): Treat a CRANGE as if it were (.\1), approximately. - (dfaparse): Initialize hard_LC_COLLATE. + * src/dfa.c: Include if HAVE_SETLOCALE. + Include "hard-locale.h". + (prtok): Print CRANGE. + (hard_LC_COLLATE): New static var. + (lex): Return CRANGE when parsing a character range in a hard locale. + Don't use strcoll; it's no longer needed and wasn't correct anyway. + Use unsigned rather than token to hold unsigned chars. + (addtok): Comment fix. + (atom): Treat a CRANGE as if it were (.\1), approximately. + (dfaparse): Initialize hard_LC_COLLATE. - * src/Makefile.am (base_sources): Add hard-locale.c, hard-locale.h. + * src/Makefile.am (base_sources): Add hard-locale.c, hard-locale.h. - * src/hard-locale.c, src/hard-locale.h: New files, taken from - textutils. + * src/hard-locale.c, src/hard-locale.h: New files, taken from + textutils. 2000-08-20 Paul Eggert - * tests/Makefile.am (TESTS_ENVIRONMENT): Add LC_ALL=C, since - some of the tests assume the C locale. + * tests/Makefile.am (TESTS_ENVIRONMENT): Add LC_ALL=C, since + some of the tests assume the C locale. 2000-08-16 Paul Eggert - * src/search.c (Gcompile, Ecompile): -x overrides -w, for - consistency with fgrep. Don't assume that sizes fit in 'int'. - Fix comments to match code. + * src/search.c (Gcompile, Ecompile): -x overrides -w, for + consistency with fgrep. Don't assume that sizes fit in 'int'. + Fix comments to match code. 2000-06-06 Paul Eggert - * src/grep.c (grepdir): Don't look at st_dev when testing for - Mingw32 bug. + * src/grep.c (grepdir): Don't look at st_dev when testing for + Mingw32 bug. 2000-06-05 Paul Eggert - Port to Mingw32, based on suggestions from Christian Groessler - . + Port to Mingw32, based on suggestions from Christian Groessler + . - * src/isdir.c: New file, taken from fileutils. + * src/isdir.c: New file, taken from fileutils. - * src/Makefile.am (base_sources): Add isdir.c. + * src/Makefile.am (base_sources): Add isdir.c. - * src/grep.c (grepfile): Use isdir instead of doing it inline. - (grepdir): Suppress ancestor check if the directory's inode and device - are both zero, as that occurs only on Mingw32 which doesn't support - inode or device. + * src/grep.c (grepfile): Use isdir instead of doing it inline. + (grepdir): Suppress ancestor check if the directory's inode and device + are both zero, as that occurs only on Mingw32 which doesn't support + inode or device. - * src/system.h (isdir): New decl. - (is_EISDIR): Depend on HAVE_DIR_EACCES_BUG, not D_OK. - Use isdir, not access. + * src/system.h (isdir): New decl. + (is_EISDIR): Depend on HAVE_DIR_EACCES_BUG, not D_OK. + Use isdir, not access. 2000-06-02 Paul Eggert - Problen noted by Gerald Stoller + Problen noted by Gerald Stoller - * src/grep.c (main): POSIX.2 says that -q overrides -l, which - in turn overrides the other output options. Fix grep to - behave that way. + * src/grep.c (main): POSIX.2 says that -q overrides -l, which + in turn overrides the other output options. Fix grep to + behave that way. 2000-05-27 Paul Eggert - Simplify and tune the buffer allocation strategy. Do not reserve a - large save area: reserve only enough bytes to hold the residue, plus - page alignment. Put a newline sentinel before the buffer, for speed - when searching backwards for newline. + Simplify and tune the buffer allocation strategy. Do not reserve a + large save area: reserve only enough bytes to hold the residue, plus + page alignment. Put a newline sentinel before the buffer, for speed + when searching backwards for newline. - * src/grep.c (ubuffer, bufsalloc, PREFERRED_SAVE_FACTOR, page_alloc): - Remove. All uses changed. - (INITIAL_BUFSIZE): New macro. - (reset, fillbuf): Use simpler buffer allocation strategy. - (reset): Check for preposterously large pagesize that would cause - later calculations to overflow. - (fillbuf): Do not resize buffer if there's room at the end for - at least one more page. This greatly increases performance when - reading from non-regular files that contain no newlines. - When growing the buffer, double its size instead of using a - more complicated algorithm. - (prtext, grep): Speed up by relying on the newline sentinel before the - start of the buffer. - (grep): When looking backwards for the last newline in a buffer, - stop when we hit the residue, since it can't contain a newline. - This avoids an O(N**2) algorithm when reading binary data from - a pipe. Use a sentinel to speed up the backward search for newline. - (nlscan): Undo previous change; it wasn't needed and just complicates - and slows down the code a tad. + * src/grep.c (ubuffer, bufsalloc, PREFERRED_SAVE_FACTOR, page_alloc): + Remove. All uses changed. + (INITIAL_BUFSIZE): New macro. + (reset, fillbuf): Use simpler buffer allocation strategy. + (reset): Check for preposterously large pagesize that would cause + later calculations to overflow. + (fillbuf): Do not resize buffer if there's room at the end for + at least one more page. This greatly increases performance when + reading from non-regular files that contain no newlines. + When growing the buffer, double its size instead of using a + more complicated algorithm. + (prtext, grep): Speed up by relying on the newline sentinel before the + start of the buffer. + (grep): When looking backwards for the last newline in a buffer, + stop when we hit the residue, since it can't contain a newline. + This avoids an O(N**2) algorithm when reading binary data from + a pipe. Use a sentinel to speed up the backward search for newline. + (nlscan): Undo previous change; it wasn't needed and just complicates + and slows down the code a tad. 2000-05-24 Paul Eggert - Handle very large input counts better. Bug noted by Jim Meyering. + Handle very large input counts better. Bug noted by Jim Meyering. - * src/grep.c (totalcc, totalnl): Use uintmax_t, not off_t. - (add_count): New function. - (nlscan, prline, grep): Use it to check line and byte count overflows. - (nlscan, grep): Don't keep track of counts when not asked to; this - avoids unnecessary overflow diagnostics. - (print_offset_sep): Now takes args of type uintmax_t and char, - not off_t and int. + * src/grep.c (totalcc, totalnl): Use uintmax_t, not off_t. + (add_count): New function. + (nlscan, prline, grep): Use it to check line and byte count overflows. + (nlscan, grep): Don't keep track of counts when not asked to; this + avoids unnecessary overflow diagnostics. + (print_offset_sep): Now takes args of type uintmax_t and char, + not off_t and int. 2000-05-16 Paul Eggert - Problem reported by Bob Proulx , this patch - is base on his finding, with appropiate corrections. + Problem reported by Bob Proulx , this patch + is base on his finding, with appropiate corrections. - * src/grep.c (main): Fix bug: -x and -w matched even when no - patterns were specified. - * tests/empty.sh: Test for -x and -w bug in grep 2.4.2. + * src/grep.c (main): Fix bug: -x and -w matched even when no + patterns were specified. + * tests/empty.sh: Test for -x and -w bug in grep 2.4.2. 2000-04-24 Paul Eggert - POSIX.2 conformance fixes: grep -q now exits with status zero - if an input line is selected, even if an error also occurs. - grep -s no longer affects exit status. + POSIX.2 conformance fixes: grep -q now exits with status zero + if an input line is selected, even if an error also occurs. + grep -s no longer affects exit status. - * src/grep.c (suppress_errors): Move definition earlier so - that suppressible_error can use it. - (suppressible_error): New function. - (exit_on_match): New var. - (grepbuf): If exit_on_match is nonzero, exit with status zero - immediately. - (grep, grepfile, grepdir): Invoke suppressible_error. - (main): -q sets exit_on_match. + * src/grep.c (suppress_errors): Move definition earlier so + that suppressible_error can use it. + (suppressible_error): New function. + (exit_on_match): New var. + (grepbuf): If exit_on_match is nonzero, exit with status zero + immediately. + (grep, grepfile, grepdir): Invoke suppressible_error. + (main): -q sets exit_on_match. - * doc/grep.1, doc/grep.texi, NEWS: - Document -q's behavior as required by POSIX.2. + * doc/grep.1, doc/grep.texi, NEWS: + Document -q's behavior as required by POSIX.2. - * tests/status.sh: - Test for -q and -s behavior as conforming to POSIX.2. + * tests/status.sh: + Test for -q and -s behavior as conforming to POSIX.2. 2000-04-20 Paul Eggert - * tests/Makefile.am (TESTS_ENVIRONMENT): - Set GREP_OPTIONS to the empty string. + * tests/Makefile.am (TESTS_ENVIRONMENT): + Set GREP_OPTIONS to the empty string. 2000-04-20 Paul Eggert - * tests/status.sh: Fix typo: test -b -> test -r. + * tests/status.sh: Fix typo: test -b -> test -r. 2000-04-20 Paul Eggert - * src/dfa.c (lex): - Do not assume that [c] is equivalent to [c-c]; this isn't true - if LC_COLLATE specifies that some characters are equivalent. - (setbit_case_fold): New function. - (lex): Use it to simplify the code a bit. + * src/dfa.c (lex): + Do not assume that [c] is equivalent to [c-c]; this isn't true + if LC_COLLATE specifies that some characters are equivalent. + (setbit_case_fold): New function. + (lex): Use it to simplify the code a bit. 2000-04-17 Paul Eggert - Do CRLF munging only if HAVE_DOS_FILE_CONTENTS, instead of - having it depend on O_BINARY (which leads to incorrect results - on BeOS, VMS, and MacOS). + Do CRLF munging only if HAVE_DOS_FILE_CONTENTS, instead of + having it depend on O_BINARY (which leads to incorrect results + on BeOS, VMS, and MacOS). - * bootstrap/Makefile.try (DEFS): Add -DHAVE_DOS_FILE_CONTENTS. - * src/system.h (SET_BINARY): Define only if HAVE_DOS_FILE_CONTENTS. - (O_BINARY): Do not define. + * bootstrap/Makefile.try (DEFS): Add -DHAVE_DOS_FILE_CONTENTS. + * src/system.h (SET_BINARY): Define only if HAVE_DOS_FILE_CONTENTS. + (O_BINARY): Do not define. - * m4/dosfile.m4: Define HAVE_DOS_FILE_CONTENTS if it appears we're - using DOS. + * m4/dosfile.m4: Define HAVE_DOS_FILE_CONTENTS if it appears we're + using DOS. - * src/grep.c (undossify_input, fillbuf, dosbuf.c, prline, main): - Depend on HAVE_DOS_FILE_CONTENTS, not O_BINARY, when handling CRLF - matters. - (grepfile, main): Depend on SET_BINARY, not O_BINARY, when - handling binary files on hosts that care about text versus binary. + * src/grep.c (undossify_input, fillbuf, dosbuf.c, prline, main): + Depend on HAVE_DOS_FILE_CONTENTS, not O_BINARY, when handling CRLF + matters. + (grepfile, main): Depend on SET_BINARY, not O_BINARY, when + handling binary files on hosts that care about text versus binary. 2000-04-17 Paul Eggert - * lib/getpagesize.h (getpagesize): Define to B_PAGE_SIZE if - __BEOS__ is defined. Based on a fix by Bruno Haible - . + * lib/getpagesize.h (getpagesize): Define to B_PAGE_SIZE if + __BEOS__ is defined. Based on a fix by Bruno Haible + . 2000-04-17 Bruno Haible - * src/system.h [BeOS]: Ignore O_BINARY. - * src/getpagesize.h [BeOS]: Define getpagesize() as B_PAGE_SIZE. + * src/system.h [BeOS]: Ignore O_BINARY. + * src/getpagesize.h [BeOS]: Define getpagesize() as B_PAGE_SIZE. 2000-04-10 Paul Eggert - * doc/grep.1, doc/grep.texi, NEWS: -C now requires an operand. - * src/grep.c (short_options, long_options, main, usage): Likewise. - (context_length_arg): Renamed from ck_atoi. Now reports an error - and exits if the number is out of range for a context length. - (get_nondigit_option): New function, which checks for overflow - correctly, and which does not parse nonadjacent strings of digits - into a single number. - (main): Use get_nondigit_option instead of doing the code inline. - With -A, -B, and -C, optarg is now guaranteed to be nonzero. + * doc/grep.1, doc/grep.texi, NEWS: -C now requires an operand. + * src/grep.c (short_options, long_options, main, usage): Likewise. + (context_length_arg): Renamed from ck_atoi. Now reports an error + and exits if the number is out of range for a context length. + (get_nondigit_option): New function, which checks for overflow + correctly, and which does not parse nonadjacent strings of digits + into a single number. + (main): Use get_nondigit_option instead of doing the code inline. + With -A, -B, and -C, optarg is now guaranteed to be nonzero. 2000-04-08 Paul Eggert - Now that we know that the input is always terminated by a - newline before the matching algorithms see it, clean up the - matching algorithms so that they no longer need to modify the - input by inserting a sentinel newline, and no longer worry - about running off the end of the buffer due to a missing sentinel. + Now that we know that the input is always terminated by a + newline before the matching algorithms see it, clean up the + matching algorithms so that they no longer need to modify the + input by inserting a sentinel newline, and no longer worry + about running off the end of the buffer due to a missing sentinel. - * src/grep.c (nlscan, prpending, prtext, grepbuf): Do not - worry about running off the end of the input buffer, since - it's now guaranteed to end in the sentinel newline. - * src/search.c (EGexecute, Pexecute): Likewise. + * src/grep.c (nlscan, prpending, prtext, grepbuf): Do not + worry about running off the end of the input buffer, since + it's now guaranteed to end in the sentinel newline. + * src/search.c (EGexecute, Pexecute): Likewise. - * src/dfa.c (prtok, dfasyntax, dfaparse, copy, merge, state_index, - epsclosure, dfaexec, dfacomp): - Change many instances of "T *" to "T const *", to catch - any inadvertent programming errors made during this conversion. - * src/dfa.h (dfacomp, dfaexec, dfaparse): Likewise. - * src/grep.c (struct stats.parent, long_options, grepdir, - compile, execute, fillbuf, lastnl, lastout, nlscan, prline, - prpending, prtext, grepbuf, grep, grepfile, grepdir): Likewise. - * src/grep.h (struct matcher.compile, struct matcher.execute): - Likewise. - * src/kwset.c (struct kwset.trans, kwsalloc, kwsincr, treefails, - treedelta, hasevery, treenext, bmexec, cwexec, kwsexec): Likewise. - * src/kwset.h (kwsalloc, kwsincr, kwsexec): Likewise. - * src/search.c (kwsmusts, Gcompile, Ecompile, EGexecute, Pcompile, - Pexecute): Likewise. + * src/dfa.c (prtok, dfasyntax, dfaparse, copy, merge, state_index, + epsclosure, dfaexec, dfacomp): + Change many instances of "T *" to "T const *", to catch + any inadvertent programming errors made during this conversion. + * src/dfa.h (dfacomp, dfaexec, dfaparse): Likewise. + * src/grep.c (struct stats.parent, long_options, grepdir, + compile, execute, fillbuf, lastnl, lastout, nlscan, prline, + prpending, prtext, grepbuf, grep, grepfile, grepdir): Likewise. + * src/grep.h (struct matcher.compile, struct matcher.execute): + Likewise. + * src/kwset.c (struct kwset.trans, kwsalloc, kwsincr, treefails, + treedelta, hasevery, treenext, bmexec, cwexec, kwsexec): Likewise. + * src/kwset.h (kwsalloc, kwsincr, kwsexec): Likewise. + * src/search.c (kwsmusts, Gcompile, Ecompile, EGexecute, Pcompile, + Pexecute): Likewise. - * src/dfa.c (dfaexec): - Use size_t, not char *, to avoid worrisome casts to convert - char const * to char *. - * src/dfa.h (dfaexec): Likewise. - * src/grep.c (execute): Likewise. - * src/grep.h (execute): Likewise. - * src/kwset.c (bmexec, cwexec, kwsexec): Likewise. - * src/kwset.h (struct kwsmatch.offset, kwsalloc, kwsincr, - kwsexec): Likewise. - * src/search.c (EGexecute, Fexecute, Pexecute): Likewise. + * src/dfa.c (dfaexec): + Use size_t, not char *, to avoid worrisome casts to convert + char const * to char *. + * src/dfa.h (dfaexec): Likewise. + * src/grep.c (execute): Likewise. + * src/grep.h (execute): Likewise. + * src/kwset.c (bmexec, cwexec, kwsexec): Likewise. + * src/kwset.h (struct kwsmatch.offset, kwsalloc, kwsincr, + kwsexec): Likewise. + * src/search.c (EGexecute, Fexecute, Pexecute): Likewise. - * src/dfa.h (_PTR_T): Depend on defined __STDC__, not __STDC__. - (PARAMS): Depend on PROTOTYPES, not __STDC__. + * src/dfa.h (_PTR_T): Depend on defined __STDC__, not __STDC__. + (PARAMS): Depend on PROTOTYPES, not __STDC__. - * src/dfa.c (dfasyntax): Last arg is unsigned char, not int. - * src/dfa.h (dfasyntax): Likewise. + * src/dfa.c (dfasyntax): Last arg is unsigned char, not int. + * src/dfa.h (dfasyntax): Likewise. - * src/dfa.h (struct dfa): Remove member newlines; no longer needed. - * src/dfa.c (build_state, dfaexec, dfafree): Do not worry - about special newline state. + * src/dfa.h (struct dfa): Remove member newlines; no longer needed. + * src/dfa.c (build_state, dfaexec, dfafree): Do not worry + about special newline state. - * src/search.c (matchers): Move definition to end of file, so - that we don't need forward decls. - (lastexact): Remove. - (kwset_exact_matches): New var; subsumes old lastexact var. - All uses changed. + * src/search.c (matchers): Move definition to end of file, so + that we don't need forward decls. + (lastexact): Remove. + (kwset_exact_matches): New var; subsumes old lastexact var. + All uses changed. - * src/dfa.c (index): Remove macro. - (REALLOC_IF_NECESSARY): Skip unnecessary test. - (tstbit, setbit, clrbit): Declare arg to be unsigned, to help compiler. - (copyset, zeroset, equal): Use C builtin primitives, to help compiler. - (dfaexec): Do not modify input string. - Remove newline parameter; no longer needed. - (comsubs): Use strchr, not index. + * src/dfa.c (index): Remove macro. + (REALLOC_IF_NECESSARY): Skip unnecessary test. + (tstbit, setbit, clrbit): Declare arg to be unsigned, to help compiler. + (copyset, zeroset, equal): Use C builtin primitives, to help compiler. + (dfaexec): Do not modify input string. + Remove newline parameter; no longer needed. + (comsubs): Use strchr, not index. - * src/grep.h (matchers): Use fixed name size, not pointer (as - there's no need for the extra flexibility). All uses changed. + * src/grep.h (matchers): Use fixed name size, not pointer (as + there's no need for the extra flexibility). All uses changed. - * src/kwset.h (struct kwsmatch.offset): Renamed from beg, with - change of type to size_t. All uses changed. + * src/kwset.h (struct kwsmatch.offset): Renamed from beg, with + change of type to size_t. All uses changed. - * src/grep.c (reset): No longer need kludge for dfaexec. Simplify. - (reset, grepbuf): Adjust to new interface for 'execute'. - (install_matcher): List is now terminated by null compile, - not null name. - Do not invoke setrlimit if that wouldn't change the limit. + * src/grep.c (reset): No longer need kludge for dfaexec. Simplify. + (reset, grepbuf): Adjust to new interface for 'execute'. + (install_matcher): List is now terminated by null compile, + not null name. + Do not invoke setrlimit if that wouldn't change the limit. - * src/dfa.c (xcalloc, xmalloc, xrealloc, prtok, tstbit, setbit, - clrbit, copyset, zeroset, notset, equal, charclass_index, - looking_at, lex, addtok, atom, nsubtoks, copytoks, closure, - branch, regexp, copy, insert, merge, delete, state_index, - build_state, build_state_zero, icatalloc, icpyalloc, istrstr, - ifree, freelist, enlist, comsubs, addlists, inboth): - Remove forward decls; no longer needed. - * src/grep.c (ck_atoi, usage, error, setmatcher, - install_matcher, prepend_args, prepend_default_options, - page_alloc, reset, fillbuf, grepbuf, prtext, prpending, prline, - print_offset_sep, nlscan, grep, grepfile): Likewise. - * src/kwset.c (enqueue, treefails, treedelta, hasevery, - treenext, bmexec, cwexec): Likewise. - * src/search.c (Gcompile, Ecompile, EGexecute, Fcompile, Fexecute, - Pcompile, Pexecute, kwsinit): Likewise. + * src/dfa.c (xcalloc, xmalloc, xrealloc, prtok, tstbit, setbit, + clrbit, copyset, zeroset, notset, equal, charclass_index, + looking_at, lex, addtok, atom, nsubtoks, copytoks, closure, + branch, regexp, copy, insert, merge, delete, state_index, + build_state, build_state_zero, icatalloc, icpyalloc, istrstr, + ifree, freelist, enlist, comsubs, addlists, inboth): + Remove forward decls; no longer needed. + * src/grep.c (ck_atoi, usage, error, setmatcher, + install_matcher, prepend_args, prepend_default_options, + page_alloc, reset, fillbuf, grepbuf, prtext, prpending, prline, + print_offset_sep, nlscan, grep, grepfile): Likewise. + * src/kwset.c (enqueue, treefails, treedelta, hasevery, + treenext, bmexec, cwexec): Likewise. + * src/search.c (Gcompile, Ecompile, EGexecute, Fcompile, Fexecute, + Pcompile, Pexecute, kwsinit): Likewise. - * src/search.c (Pcompile): Do not assume newly allocated - storage is zeroed. + * src/search.c (Pcompile): Do not assume newly allocated + storage is zeroed. 2000-04-06 Paul Eggert - * doc/grep.1, doc/grep.texi, NEWS: Improve the explanation of - locale-dependent behavior of range expressions. Mention - LC_COLLATE, since this affects range expressions. + * doc/grep.1, doc/grep.texi, NEWS: Improve the explanation of + locale-dependent behavior of range expressions. Mention + LC_COLLATE, since this affects range expressions. 2000-03-26 Paul Eggert - * Makefile.am (ACINCLUDE_INPUTS): Add decl.m4, inttypes_h.m4, - uintmax_t.m4, ulonglong.m4, xstrtoumax.m4. - * m4/Makefile.am (EXTRA_DIST): Likewise. + * Makefile.am (ACINCLUDE_INPUTS): Add decl.m4, inttypes_h.m4, + uintmax_t.m4, ulonglong.m4, xstrtoumax.m4. + * m4/Makefile.am (EXTRA_DIST): Likewise. - * src/Makefile.am (base_sources): - Add xstrtol.c, xstrtol.h, xstrtoumax.c. - (EXTRA_DIST): Add strtol.c. + * src/Makefile.am (base_sources): + Add xstrtol.c, xstrtol.h, xstrtoumax.c. + (EXTRA_DIST): Add strtol.c. - * configure.in (jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX, - HAVE_DECL_STRTOUL, HAVE_DECL_STRTOULL): Add. - (AC_REPLACE_FUNCS): Add strtoul. + * configure.in (jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX, + HAVE_DECL_STRTOUL, HAVE_DECL_STRTOULL): Add. + (AC_REPLACE_FUNCS): Add strtoul. - * src/grep.c: Include xstrtol.h. - (ck_atio): Use xstrtoumax and do proper overflow checking. - (max_count, outleft): Now off_t, not int. - (main): Likewise. Use xstrtoumax to convert max_count from string. + * src/grep.c: Include xstrtol.h. + (ck_atio): Use xstrtoumax and do proper overflow checking. + (max_count, outleft): Now off_t, not int. + (main): Likewise. Use xstrtoumax to convert max_count from string. - * acconfig.h (HAVE_DECL_STRTOUL, HAVE_DECL_STRTOULL): New #undefs. - (HAVE_STPCPY, ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, - HAVE_LC_MESSAGES): Remove. + * acconfig.h (HAVE_DECL_STRTOUL, HAVE_DECL_STRTOULL): New #undefs. + (HAVE_STPCPY, ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, + HAVE_LC_MESSAGES): Remove. - * m4/decl.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4, - m4/xstrtoumax.m4, src/strtol.c, src/strtoul.c, src/strtoull.c, - src/strtoumax.c, src/xstrtol.c, src/xstrtol.h, src/xstrtoumax.c: - New files, taken unchanged from textutils, fileutils, sh-utils - and/or tar. + * m4/decl.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4, + m4/xstrtoumax.m4, src/strtol.c, src/strtoul.c, src/strtoull.c, + src/strtoumax.c, src/xstrtol.c, src/xstrtol.h, src/xstrtoumax.c: + New files, taken unchanged from textutils, fileutils, sh-utils + and/or tar. 2000-03-23 Paul Eggert - * src/search.c (Pcompile): Add support for NUL bytes in - Perl regular expressions. + * src/search.c (Pcompile): Add support for NUL bytes in + Perl regular expressions. 2000-03-23 Paul Eggert - * NEWS, doc/grep.1, doc/grep.texi: Change --pcre to --perl-regexp. - * src/grep.c (long_options, usage): Likewise. + * NEWS, doc/grep.1, doc/grep.texi: Change --pcre to --perl-regexp. + * src/grep.c (long_options, usage): Likewise. - * doc/grep.1, doc/grep.texi: Remove pgrep program. - * src/Makefile.am (bin_PROGRAMS): Likewise. - (pgrep_SOURCES): Remove. + * doc/grep.1, doc/grep.texi: Remove pgrep program. + * src/Makefile.am (bin_PROGRAMS): Likewise. + (pgrep_SOURCES): Remove. - * src/grep.c (main): Rename matcher from "pgrep" to "perl". - * src/search.c (matchers): Likewise. + * src/grep.c (main): Rename matcher from "pgrep" to "perl". + * src/search.c (matchers): Likewise. - * src/search.c: Do not include stdio.h; no longer needed. - (NILP): Remove. - (sub): No longer static. - (n_pcre): Remove. - (cre): No longer an array. Present only if HAVE_LIBPCRE. - (extra): New variable. - (Pcompile): Use fatal to report errors. - This also removes a possible core dump. - Add checks (marked FIXME) for restrictions in pcre. - Use pcre_maketables for proper localized behavior. - (Pcompile, Pexecute): Use GNU coding style. - The argument is a single pattern, not a list of patterns separated - by newlines; this is for consistency with grep and egrep. - Use pcre_study for speed. - (Pexecute): Abort if we lack pcre. - Abort if pcre_exec reports an impossible error. - Use code similar to the rest of search.c - to narrow down to the line we've found. + * src/search.c: Do not include stdio.h; no longer needed. + (NILP): Remove. + (sub): No longer static. + (n_pcre): Remove. + (cre): No longer an array. Present only if HAVE_LIBPCRE. + (extra): New variable. + (Pcompile): Use fatal to report errors. + This also removes a possible core dump. + Add checks (marked FIXME) for restrictions in pcre. + Use pcre_maketables for proper localized behavior. + (Pcompile, Pexecute): Use GNU coding style. + The argument is a single pattern, not a list of patterns separated + by newlines; this is for consistency with grep and egrep. + Use pcre_study for speed. + (Pexecute): Abort if we lack pcre. + Abort if pcre_exec reports an impossible error. + Use code similar to the rest of search.c + to narrow down to the line we've found. 2000-03-21 Alain Magloire - * configure.in: added AC_CHECK_LIB(pcre, pcre_exec) - * ChangeLog: Typos corrected. - * src/search.c: new MACRO HAVE_LIBPCRE + * configure.in: added AC_CHECK_LIB(pcre, pcre_exec) + * ChangeLog: Typos corrected. + * src/search.c: new MACRO HAVE_LIBPCRE 2000-03-21 H.Merijn Brand - * src/Makefile.am(bin_PROGRAMS): added pgrep and new macro - pgrep_SOURCES. - * src/search.c: new functions Pcompile() and Pexecute() - to support PCRE. Update matcher[] array for pgrep. - * src/grep.c: new short and long option --pcre and -P. - usage() updated. + * src/Makefile.am(bin_PROGRAMS): added pgrep and new macro + pgrep_SOURCES. + * src/search.c: new functions Pcompile() and Pexecute() + to support PCRE. Update matcher[] array for pgrep. + * src/grep.c: new short and long option --pcre and -P. + usage() updated. 2000-03-21 Bastiaan Stougie - Improvement of the -m or --max-count option. Now works for NUM > 1 and - prints trailing context for the last matching line. + Improvement of the -m or --max-count option. Now works for NUM > 1 and + prints trailing context for the last matching line. - * src/grep.c - (after_last_match): Is a new off_t variable that replaces inputhwm - to retain the correct input offset even after a call to fillbuf. Note - that after_last_match has a different meaning than inputhwm: - it always points to the offset in the input of the first byte after - the last matching line, and is 0 if no matching line has been found - yet. - (grep): Print trailing context after the NUMth match when the -m NUM - option is used. - (grep): Added comment. Should have been commented already. - (grepbuf): Now updates outleft correctly. This fixes the bug that the - -m NUM option did not stop after NUM lines for NUM greater than 1. - (grepbuf, prtext): Now update after_last_match instead of inputhwm. - (fillbuf): No longer updates inputhwm. - (prpending): When outputting trailing context of the max_count-th + * src/grep.c + (after_last_match): Is a new off_t variable that replaces inputhwm + to retain the correct input offset even after a call to fillbuf. Note + that after_last_match has a different meaning than inputhwm: + it always points to the offset in the input of the first byte after + the last matching line, and is 0 if no matching line has been found + yet. + (grep): Print trailing context after the NUMth match when the -m NUM + option is used. + (grep): Added comment. Should have been commented already. + (grepbuf): Now updates outleft correctly. This fixes the bug that the + -m NUM option did not stop after NUM lines for NUM greater than 1. + (grepbuf, prtext): Now update after_last_match instead of inputhwm. + (fillbuf): No longer updates inputhwm. + (prpending): When outputting trailing context of the max_count-th matching line, stop at the first matching line. - (grepfile): Seek to after_last_match or eof, depending on the values + (grepfile): Seek to after_last_match or eof, depending on the values of outleft and bufmapped. - (usage): added the -m or --max-count option to the help message. - * doc/grep.texi, doc/grep.1: Document the change of the -m option. + (usage): added the -m or --max-count option to the help message. + * doc/grep.texi, doc/grep.1: Document the change of the -m option. 2000-03-17 Paul Eggert - Add new -m or --max-count option, based on a suggestion by - Bastiaan Stougie. + Add new -m or --max-count option, based on a suggestion by + Bastiaan Stougie. - * doc/grep.texi, doc/grep.1: Document it. - * src/grep.c (short_options, long_options, main): Add it. - (inputhwm): New variable. - (fillbuf, prtext, grepbuf): Set it. - (bufmapped): Now a macro (defined to zero) if HAVE_MMAP is not defined. - (max_count, outleft): New variables. - (prtext, grepbuf, grep): Don't output more than outleft lines. - (grepfile): If grepping standard input, seek to the limit of what - we've read before exiting. This fixes a bug with mmapped input, - and is needed for proper -m support. - (main): Exit immediately if -m 0 is specified. + * doc/grep.texi, doc/grep.1: Document it. + * src/grep.c (short_options, long_options, main): Add it. + (inputhwm): New variable. + (fillbuf, prtext, grepbuf): Set it. + (bufmapped): Now a macro (defined to zero) if HAVE_MMAP is not defined. + (max_count, outleft): New variables. + (prtext, grepbuf, grep): Don't output more than outleft lines. + (grepfile): If grepping standard input, seek to the limit of what + we've read before exiting. This fixes a bug with mmapped input, + and is needed for proper -m support. + (main): Exit immediately if -m 0 is specified. 2000-03-08 Alain Magloire - * configure.in: version 2.4.2 + * configure.in: version 2.4.2 2000-03-07 Paul Eggert - * Make intl subdirectory match fileutils, tar, etc.; - see intl/ChangeLog for details. + * Make intl subdirectory match fileutils, tar, etc.; + see intl/ChangeLog for details. - * src/getpagesize.h: Reformat to match latest fileutils. + * src/getpagesize.h: Reformat to match latest fileutils. - * src/savedir.c (savedir): Work even if directory size is - negative; this can happen with some NFS screwups. + * src/savedir.c (savedir): Work even if directory size is + negative; this can happen with some NFS screwups. 2000-03-03 Jim Meyering - * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'. + * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'. 2000-03-02 Alain Magloire - * 2.4.1 Release + * 2.4.1 Release 2000-02-25 Paul Eggert - * configure.in (LIBOBJS): Work around automake 1.4 bug: - regex.c wasn't being passed through ansi2knr on pre-ANSI hosts. - (ac_use_included_regex): Fix typo in warning. - * src/Makefile.am (EXTRA_DIST): Remove regex.c, as the LIBOBJS - workaround means that automake now puts regex.c into DIST_COMMON. + * configure.in (LIBOBJS): Work around automake 1.4 bug: + regex.c wasn't being passed through ansi2knr on pre-ANSI hosts. + (ac_use_included_regex): Fix typo in warning. + * src/Makefile.am (EXTRA_DIST): Remove regex.c, as the LIBOBJS + workaround means that automake now puts regex.c into DIST_COMMON. 2000-02-25 Alain Magloire - * po/*.po: update of the PO files. + * po/*.po: update of the PO files. 2000-02-22 Eli Zaretskii - * doc/grep.1: Two small glitches(typos). + * doc/grep.1: Two small glitches(typos). 2000-02-18 Eli Zaretskii - * djgpp/config.site (prefix, INSTALL): Use /dev/env/DJDIR instead - of ${DJDIR}, so that the produced Makefile's work on any DJGPP - installation. + * djgpp/config.site (prefix, INSTALL): Use /dev/env/DJDIR instead + of ${DJDIR}, so that the produced Makefile's work on any DJGPP + installation. 2000-01-30 Alain Magloire - * doc/grep.1: corrected typo. - Noted by Ruslan Ermilov. + * doc/grep.1: corrected typo. + Noted by Ruslan Ermilov. 2000-01-30 Alain Magloire - * vms/Makefile.am: added config_vms.h to EXTRA_DIST. - * vms/config_vms.h: New File, contains macros specific to VMS and - avoid namespace collision with operating system supplied C library. - * vms/make.com: Better compiler auto-detection; information for builds - on pre-OpenVMS 7.x systems; general overhaul. - * src/getpagesize.h: Reinstate support for different pagesizes on - VAX and Alpha. Work around problem with DEC C compiler. - * src/vms_fab.c: Cast to some assigments; fixed typo argcp vs. argp. - * src/vms_fab.h: Added new include files to avoid warnings about - undefined function prototypes. - Those patches were provided by Martin P.J. Zinser (zinser@decus.de). + * vms/Makefile.am: added config_vms.h to EXTRA_DIST. + * vms/config_vms.h: New File, contains macros specific to VMS and + avoid namespace collision with operating system supplied C library. + * vms/make.com: Better compiler auto-detection; information for builds + on pre-OpenVMS 7.x systems; general overhaul. + * src/getpagesize.h: Reinstate support for different pagesizes on + VAX and Alpha. Work around problem with DEC C compiler. + * src/vms_fab.c: Cast to some assigments; fixed typo argcp vs. argp. + * src/vms_fab.h: Added new include files to avoid warnings about + undefined function prototypes. + Those patches were provided by Martin P.J. Zinser (zinser@decus.de). 2000-01-30 Paul Eggert @@ -1913,400 +1971,400 @@ 2000-01-28 Alain Magloire - * src/grep.c (usage): The example "%s -i 'hello.*world' could - lead to confusion when progname is 'fgrep. - Noted by Akim Demaille. + * src/grep.c (usage): The example "%s -i 'hello.*world' could + lead to confusion when progname is 'fgrep. + Noted by Akim Demaille. - * configure.in: Reenable, jm_INCLUDE_REGEX() since we now - track GNU lib C. - * src/Makefile.am: EXTRA_DIST new macros with regex.c regex.h. - Requested By Ulrich Drepper. + * configure.in: Reenable, jm_INCLUDE_REGEX() since we now + track GNU lib C. + * src/Makefile.am: EXTRA_DIST new macros with regex.c regex.h. + Requested By Ulrich Drepper. 2000-01-25 Paul Eggert - * src/grep.c (grep): If the final byte of an input file is not - a newline, grep now silently supplies one. - * doc/grep.texi, NEWS: Likewise. + * src/grep.c (grep): If the final byte of an input file is not + a newline, grep now silently supplies one. + * doc/grep.texi, NEWS: Likewise. 2000-01-25 Paul Eggert - * NEWS, doc/grep.1, doc/grep.texi: Add -I option. - * src/grep.c (short_options, usage, main): Likewise. + * NEWS, doc/grep.1, doc/grep.texi: Add -I option. + * src/grep.c (short_options, usage, main): Likewise. - * doc/grep.texi: Fix some incorrect references to ASCII. + * doc/grep.texi: Fix some incorrect references to ASCII. 2000-01-25 Paul Eggert - * doc/grep.1: Simplify synopsis; sort options; mention - environment variables; clean up some minor gaffes. + * doc/grep.1: Simplify synopsis; sort options; mention + environment variables; clean up some minor gaffes. 2000-01-25 Paul Eggert - * doc/grep.texi: - Fix some errors in description of [:print:] and the like. + * doc/grep.texi: + Fix some errors in description of [:print:] and the like. 2000-01-23 Paul Eggert - * src/dfa.c (FETCH, lex): Put brackets around if-body to avoid - GCC warning about ambiguous if-then-else. + * src/dfa.c (FETCH, lex): Put brackets around if-body to avoid + GCC warning about ambiguous if-then-else. 2000-01-23 Paul Eggert - * src/regex.c (GET_UNSIGNED_NUMBER): Allow only ASCII digits. - * src/dfa.c (ISASCIIDIGIT): New macro. - (lex): Use it instead of ISDIGIT. + * src/regex.c (GET_UNSIGNED_NUMBER): Allow only ASCII digits. + * src/dfa.c (ISASCIIDIGIT): New macro. + (lex): Use it instead of ISDIGIT. 2000-01-23 Paul Eggert - The bug is that regular expression ranges like [a-z] compare raw - byte codes to the range boundaries, whereas POSIX says that they - should use the current collating sequence instead. For example, - in Solaris 7 with LC_ALL=en_US, the command - echo x | grep '[ -~]' - outputs 'x', but it shouldn't output anything since ' ' and '~' - sort before all letters in that locale. + The bug is that regular expression ranges like [a-z] compare raw + byte codes to the range boundaries, whereas POSIX says that they + should use the current collating sequence instead. For example, + in Solaris 7 with LC_ALL=en_US, the command + echo x | grep '[ -~]' + outputs 'x', but it shouldn't output anything since ' ' and '~' + sort before all letters in that locale. - * src/regex.c (compile_range): When matching a character - range, use the current collating sequence, as POSIX requires. - * src/dfa.c (lex): Likewise. + * src/regex.c (compile_range): When matching a character + range, use the current collating sequence, as POSIX requires. + * src/dfa.c (lex): Likewise. 2000-01-20 Alain Magloire - * tests/Makefile.am (dist-hook): Added new rule to make sure - that the shell scripts have the right permissions. - * src/posix/Makefile.am (EXTRA_DIST): added regex.h in the - distribution. - * THANKS: updated. + * tests/Makefile.am (dist-hook): Added new rule to make sure + that the shell scripts have the right permissions. + * src/posix/Makefile.am (EXTRA_DIST): added regex.h in the + distribution. + * THANKS: updated. 2000-01-18 Alain Magloire - * Rectification the initial patch to add --binary-file option - was done by Ruslan Ermilov. + * Rectification the initial patch to add --binary-file option + was done by Ruslan Ermilov. 2000-01-17 Paul Eggert - Sync with sources of fileutils 4.0n, tar 1.13.17, glibc 2.1.3a1. - Convert to ANSI C prototypes (using ansi2knr for backwards - compatibility), as this makes it easier to sync. + Sync with sources of fileutils 4.0n, tar 1.13.17, glibc 2.1.3a1. + Convert to ANSI C prototypes (using ansi2knr for backwards + compatibility), as this makes it easier to sync. - * configure.in (AC_OBJEXT): Spell in a funny way, to work around - a bug in automake 1.4 with ansi2knr. - (LIBOBJS): Add assignment so that .o files in LIBOBJS are also built - via the ANSI2KNR-filtering rules. - (AC_OUTPUT): Add src/posix/Makefile. - * src/Makefile.am (AUTOMAKE_OPTIONS): Add ansi2knr. - (SUBDIRS): New macro. - * src/ansi2knr.1, src/ansi2knr.c, src/posix/Makefile.am: New files. - * src/dfa.c, src/dosbuf.c, src/grep.c, src/kwset.c, src/search.c, - src/vms_fab.c: - Use prototypes for function definitions. - * src/grep.c (main): Use int counter for default context, - fixing an ANSI portability bug uncovered by the above changes. + * configure.in (AC_OBJEXT): Spell in a funny way, to work around + a bug in automake 1.4 with ansi2knr. + (LIBOBJS): Add assignment so that .o files in LIBOBJS are also built + via the ANSI2KNR-filtering rules. + (AC_OUTPUT): Add src/posix/Makefile. + * src/Makefile.am (AUTOMAKE_OPTIONS): Add ansi2knr. + (SUBDIRS): New macro. + * src/ansi2knr.1, src/ansi2knr.c, src/posix/Makefile.am: New files. + * src/dfa.c, src/dosbuf.c, src/grep.c, src/kwset.c, src/search.c, + src/vms_fab.c: + Use prototypes for function definitions. + * src/grep.c (main): Use int counter for default context, + fixing an ANSI portability bug uncovered by the above changes. - * config.guess, config.sub, install-sh, missing, src/alloca.c, - src/getpagesize.h, src/memchr.c, src/savedir.c, src/savedir.h, - src/stpcpy.c: - Upgrade to latest version from fileutils 4.0n. + * config.guess, config.sub, install-sh, missing, src/alloca.c, + src/getpagesize.h, src/memchr.c, src/savedir.c, src/savedir.h, + src/stpcpy.c: + Upgrade to latest version from fileutils 4.0n. - * src/getopt.c, src/getopt.h, src/getopt1.c: Upgrade to latest - version from tar 1.13.17. + * src/getopt.c, src/getopt.h, src/getopt1.c: Upgrade to latest + version from tar 1.13.17. - * src/obstack.c, src/obstack.h, src/regex.c, src/regex.h: - Upgrade to glibc 2.1.3 alpha 1, with K&R C portability fix. - * src/posix/regex.h: New file, from glibc 2.1.3 alpha 1. + * src/obstack.c, src/obstack.h, src/regex.c, src/regex.h: + Upgrade to glibc 2.1.3 alpha 1, with K&R C portability fix. + * src/posix/regex.h: New file, from glibc 2.1.3 alpha 1. 2000-01-04 Paul Eggert - Initial patch by Ruslan Ermilov. + Initial patch by Ruslan Ermilov. - Add --binary-files option. - * NEWS, doc/grep.1, doc/grep.texi: Document it. - * src/grep.c (BINARY_FILES_OPTION): New constant. - (long_options, grep, usage, main): New --binary-files option. - (binary_files): New var. - * src/system.h (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, CHAR_MAX): - New macros. - (INT_MAX, UCHAR_MAX): Define in terms of TYPE_MAXIMUM. + Add --binary-files option. + * NEWS, doc/grep.1, doc/grep.texi: Document it. + * src/grep.c (BINARY_FILES_OPTION): New constant. + (long_options, grep, usage, main): New --binary-files option. + (binary_files): New var. + * src/system.h (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, CHAR_MAX): + New macros. + (INT_MAX, UCHAR_MAX): Define in terms of TYPE_MAXIMUM. 2000-01-04 Paul Eggert - * savedir.c (savedir): Don't store past the end of an array if - name_size is zero and the directory is empty. - Reported by Dima Barsky . + * savedir.c (savedir): Don't store past the end of an array if + name_size is zero and the directory is empty. + Reported by Dima Barsky . 1999-12-03 Alain Magloire - * 2.4 Release. + * 2.4 Release. 1999-11-18 Paul Eggert - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a - problem with the QNX 4.25 shell, which doesn't propagate exit - status of failed commands inside shell assignments. + * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a + problem with the QNX 4.25 shell, which doesn't propagate exit + status of failed commands inside shell assignments. 1999-11-13 Eli Zaretskii - * doc/grep.texi: Minor markup and spelling corrections. Use - @noindent where appropriate. + * doc/grep.texi: Minor markup and spelling corrections. Use + @noindent where appropriate. - * PATCHES-{AM,AC}: rename to PATCHES.{AM,AC} + * PATCHES-{AM,AC}: rename to PATCHES.{AM,AC} 1999-11-12 Eli Zaretskii - doc/grep.texi: Minor fixes and typos corrected. - djgpp/README: Updated version. + doc/grep.texi: Minor fixes and typos corrected. + djgpp/README: Updated version. 1999-11-07 Paul Eggert - * src/grep.c (usage): Fix misspelling. + * src/grep.c (usage): Fix misspelling. 1999-11-07 Paul Eggert - Don't assume that the C library has re_set_syntax and friends. - * src/Makefile.am (base_sources): Add regex.c, regex.h. - (EXTRA_DIST): Remove regex.c, regex.h. + Don't assume that the C library has re_set_syntax and friends. + * src/Makefile.am (base_sources): Add regex.c, regex.h. + (EXTRA_DIST): Remove regex.c, regex.h. - * src/grep.c (prtext): Use out_quiet, not not_text, to decide - whether to set pending to zero at the end. - (not_text): Remove static variable, undoing latest change. - (grep): Likewise. + * src/grep.c (prtext): Use out_quiet, not not_text, to decide + whether to set pending to zero at the end. + (not_text): Remove static variable, undoing latest change. + (grep): Likewise. - * doc/grep.texi: Tighten up the text, and fix some minor - spelling and usage errors. Use @enumerate rather than @table - @samp, since it's better for Q&A format. Add cross - references. + * doc/grep.texi: Tighten up the text, and fix some minor + spelling and usage errors. Use @enumerate rather than @table + @samp, since it's better for Q&A format. Add cross + references. 1999-11-01 Alain Magloire - * src/search.c: Use the more portable [[:alnum:]] - to define a word instead of Ascii dependent [0-9A-Za-z] - * src/grep.c: make not_text global to not display text when - the context switches -A/-B/-C are use on binary files. - * make grep-2.3g available for testing. - * configure.in: drop support for --without-included-regex. - This was generating bogus bug reports, since many GNU/Linux - users have different version of glibc. And glibc maintainers - decided to drop k&r support. + * src/search.c: Use the more portable [[:alnum:]] + to define a word instead of Ascii dependent [0-9A-Za-z] + * src/grep.c: make not_text global to not display text when + the context switches -A/-B/-C are use on binary files. + * make grep-2.3g available for testing. + * configure.in: drop support for --without-included-regex. + This was generating bogus bug reports, since many GNU/Linux + users have different version of glibc. And glibc maintainers + decided to drop k&r support. 1999-11-01 Arnold D. Robbins - * regex.c (init_syntax_once): move below definition of - ISALNUM etc., then use ISALNUM to init the table, so that - the word ops will work if i18n'ed. - (SYNTAX): And subscript with 0xFF for Latin-1 characters. + * regex.c (init_syntax_once): move below definition of + ISALNUM etc., then use ISALNUM to init the table, so that + the word ops will work if i18n'ed. + (SYNTAX): And subscript with 0xFF for Latin-1 characters. 1999-10-26 Alain Magloire - * src/regex.c: Merge changes from GNU lib C. - * Updated the *.po files + * src/regex.c: Merge changes from GNU lib C. + * Updated the *.po files 1999-10-26 Paul Eggert - * src/grep.c (fillbuf): Don't report buffer size overflow if - newalloc == save and maxalloc == save. This can happen - e.g. when reading a large page-aligned file that contains - no newlines. + * src/grep.c (fillbuf): Don't report buffer size overflow if + newalloc == save and maxalloc == save. This can happen + e.g. when reading a large page-aligned file that contains + no newlines. 1999-10-21 Paul Eggert - * src/grep.c (usage): Give example. Clarify -F. - Explain exit status more clearly. + * src/grep.c (usage): Give example. Clarify -F. + Explain exit status more clearly. 1999-10-12 Paul Eggert - * doc/grep.texi: Shorten the commentary about egrep and {. - "BSD grep" -> "traditional grep". - * doc/grep.1: Match recent changes to grep.texi. + * doc/grep.texi: Shorten the commentary about egrep and {. + "BSD grep" -> "traditional grep". + * doc/grep.1: Match recent changes to grep.texi. 1999-10-11 Paul Eggert - * NEWS, doc/grep.1, doc/grep.texi: New option --mmap. - * src/grep.c (mmap_option): New variable. - (long_options, reset, usage): Add --mmap. - Default is now read, not mmap. + * NEWS, doc/grep.1, doc/grep.texi: New option --mmap. + * src/grep.c (mmap_option): New variable. + (long_options, reset, usage): Add --mmap. + Default is now read, not mmap. - * doc/grep.1: Document -Z or --null. + * doc/grep.1: Document -Z or --null. 1999-10-11 Paul Eggert - * doc/grep.texi: Fix texinfo glitches. POSIX -> POSIX.2 where - appropriate. + * doc/grep.texi: Fix texinfo glitches. POSIX -> POSIX.2 where + appropriate. 1999-10-11 Paul Eggert - * acconfig.h (ssize_t): New #undef. + * acconfig.h (ssize_t): New #undef. - * configure.in (AC_CHECK_TYPE): Add ssize_t. + * configure.in (AC_CHECK_TYPE): Add ssize_t. - * src/grep.c (PREFERRED_SAVE_FACTOR): New macro. - (reset): If the buffer has already been allocated, set bufsalloc to - be bufalloc / PREFERRED_SAVE_FACTOR. This avoids problems when - bufsalloc == bufalloc (possible after reading a large binary file). - (reset): Use PREFERRED_SAVE_FACTOR instead of magic constant. - Do not set bufbeg; nobody uses it. - Always set buflim. - Check for lseek error. - Use SEEK_CUR, not a magic constant. - (fillbuf): Return an error indication, not a count. - All callers changed. - Do not assume ssize_t fits in int. - Use PREFERRED_SAVE_FACTOR instead of magic constant. - Clean up mmap code. - Do not attempt to mmap zero bytes. - Check for lseek error. - Use SEEK_SET, not a magic constant. - Work correctly if read is interrupted. - (grepfile): Work correctly if open or close is interrupted. + * src/grep.c (PREFERRED_SAVE_FACTOR): New macro. + (reset): If the buffer has already been allocated, set bufsalloc to + be bufalloc / PREFERRED_SAVE_FACTOR. This avoids problems when + bufsalloc == bufalloc (possible after reading a large binary file). + (reset): Use PREFERRED_SAVE_FACTOR instead of magic constant. + Do not set bufbeg; nobody uses it. + Always set buflim. + Check for lseek error. + Use SEEK_CUR, not a magic constant. + (fillbuf): Return an error indication, not a count. + All callers changed. + Do not assume ssize_t fits in int. + Use PREFERRED_SAVE_FACTOR instead of magic constant. + Clean up mmap code. + Do not attempt to mmap zero bytes. + Check for lseek error. + Use SEEK_SET, not a magic constant. + Work correctly if read is interrupted. + (grepfile): Work correctly if open or close is interrupted. - * src/system.h (SEEK_SET, SEEK_CUR): New macros. + * src/system.h (SEEK_SET, SEEK_CUR): New macros. 1999-10-02 Alain Magloire - * src/regex.[ch]: upgrade from GNU lib C source tree. + * src/regex.[ch]: upgrade from GNU lib C source tree. - * make beta 2.3f available. + * make beta 2.3f available. 1999-10-02 Paul Eggert - * NEWS: egrep is now equivalent to `grep -E'. - The lower bound of an interval is not optional. - You can specify a matcher multiple types without error. - -u and -U are now allowed on non-DOS hosts, and have no effect. - * doc/grep.texi: Likewise. - * doc/grep.1: Likewise. - Fix some troff bugs that prevented `groff' from rendering the page. + * NEWS: egrep is now equivalent to `grep -E'. + The lower bound of an interval is not optional. + You can specify a matcher multiple types without error. + -u and -U are now allowed on non-DOS hosts, and have no effect. + * doc/grep.texi: Likewise. + * doc/grep.1: Likewise. + Fix some troff bugs that prevented `groff' from rendering the page. - * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c (default_matcher): - Remove. - (matcher): Add. - * src/grep.h (default_matcher): Remove. - (matcher): Now exported from ?grepmat.c, not grep.c. + * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c (default_matcher): + Remove. + (matcher): Add. + * src/grep.h (default_matcher): Remove. + (matcher): Now exported from ?grepmat.c, not grep.c. - * src/dfa.c (lex): If { would start an invalid interval specification, + * src/dfa.c (lex): If { would start an invalid interval specification, treat it as a normal character. Remove (broken) support for {,M} meaning {0,M}. Diagnose bogus intervals like {1,0}. (closure): maxrep is now -1 to indicate no limit, not zero; zero is a valid value for maxrep, meaning an upper bound of zero. - * src/grep.c (short_options): New constant. - (long_options, main): -u and -U are now supported on Unix, - with no effect. - (matcher): Removed; now defined by ?grepmat.c. - (install_matcher): Renamed from setmatcher. - (setmatcher): New function. - (usage): Report new, more uniform option scheme. - (main): Do not initialize matcher; ?grepmat.c now does this. - Rely on setmatcher to catch matcher conflicts. - Default matcher is "grep". + * src/grep.c (short_options): New constant. + (long_options, main): -u and -U are now supported on Unix, + with no effect. + (matcher): Removed; now defined by ?grepmat.c. + (install_matcher): Renamed from setmatcher. + (setmatcher): New function. + (usage): Report new, more uniform option scheme. + (main): Do not initialize matcher; ?grepmat.c now does this. + Rely on setmatcher to catch matcher conflicts. + Default matcher is "grep". - * src/search.c (matchers): - Remove "posix-egrep" matcher; no longer needed. - (Ecompile): Likewise. - The egrep matcher now has POSIX behavior. + * src/search.c (matchers): + Remove "posix-egrep" matcher; no longer needed. + (Ecompile): Likewise. + The egrep matcher now has POSIX behavior. - * tests/bre.tests: grep '\{' is no longer an error. - Fix test for interval too large, and enable it. - * tests/ere.tests: grep -E {1 is no longer an error - Likewise for a{1, a{1a, a{1a}, a{1,x}. + * tests/bre.tests: grep '\{' is no longer an error. + Fix test for interval too large, and enable it. + * tests/ere.tests: grep -E {1 is no longer an error + Likewise for a{1, a{1a, a{1a}, a{1,x}. 1999-09-22 Paul Eggert - * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC - 2.95.1 bug with HP-UX 10.20. + * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC + 2.95.1 bug with HP-UX 10.20. 1999-09-12 Paul Eggert - * src/grep.c (fillbuf): Fix typo: we sometimes reported - arithmetic overflow even when there wasn't any. + * src/grep.c (fillbuf): Fix typo: we sometimes reported + arithmetic overflow even when there wasn't any. 1999-09-12 Paul Eggert - * configure.in (AC_CHECK_FUNCS): Add memmove. + * configure.in (AC_CHECK_FUNCS): Add memmove. - * src/system.h (S_ISREG): New macro. - (memmove): Define if ! defined HAVE_MEMMOVE && ! defined memmove, - not if !defined STDC_HEADERS. This is needed for SunOS 4.1.4, - which defines STDC_HEADERS but lacks memmove. + * src/system.h (S_ISREG): New macro. + (memmove): Define if ! defined HAVE_MEMMOVE && ! defined memmove, + not if !defined STDC_HEADERS. This is needed for SunOS 4.1.4, + which defines STDC_HEADERS but lacks memmove. - * src/grep.c (bufoffset): Needed even if !defined HAVE_MMAP. - (reset): Always fstat the file, since we always need its size if it is - regular. - Similarly, get the buffer offset of every regular file. - Set bufmapped to 0 if the file's initial offset is not a multiple - of the page size. - (fillbuf): Calculate an upper bound on how much memory we should - allocate only for regular files, since we don't know the sizes of - other files. - Don't bother to check whether the file offset is a multiple of the page - size, since we now do that just once in `reset'. - When an mmapped area would fall past the end of the file, trim it to - just before instead of giving up immediately and doing a `read'; - that avoids a worst-case behavior that could read half an mmapped file. - Fix bug when computing offsets on hosts that don't have mmap. + * src/grep.c (bufoffset): Needed even if !defined HAVE_MMAP. + (reset): Always fstat the file, since we always need its size if it is + regular. + Similarly, get the buffer offset of every regular file. + Set bufmapped to 0 if the file's initial offset is not a multiple + of the page size. + (fillbuf): Calculate an upper bound on how much memory we should + allocate only for regular files, since we don't know the sizes of + other files. + Don't bother to check whether the file offset is a multiple of the page + size, since we now do that just once in `reset'. + When an mmapped area would fall past the end of the file, trim it to + just before instead of giving up immediately and doing a `read'; + that avoids a worst-case behavior that could read half an mmapped file. + Fix bug when computing offsets on hosts that don't have mmap. 1999-08-27 Paul Eggert - * src/system.h (memmove): New macro. + * src/system.h (memmove): New macro. - * src/grep.c (page_alloc): Reallocate the old buffer instead - of having both old and new buffers active simultaneously. - Remove valloc debugging variant, which no longer applies. + * src/grep.c (page_alloc): Reallocate the old buffer instead + of having both old and new buffers active simultaneously. + Remove valloc debugging variant, which no longer applies. - (fillbuf): Rejigger the buffer allocation mechanism. The old - mechanism could allocate more than 10*N bytes for an N-byte - file, which was excessive. Check for arithmetic overflow a - bit more carefully. + (fillbuf): Rejigger the buffer allocation mechanism. The old + mechanism could allocate more than 10*N bytes for an N-byte + file, which was excessive. Check for arithmetic overflow a + bit more carefully. 1999-08-25 Paul Eggert - * src/grep.c (grepdir): - Don't assume that st_ino and st_dev must be integers; - POSIX.1 allows them to be floating-point (!). + * src/grep.c (grepdir): + Don't assume that st_ino and st_dev must be integers; + POSIX.1 allows them to be floating-point (!). - * src/vms_fab.h (arr_ptr): `:' -> `;' to fix typo. + * src/vms_fab.h (arr_ptr): `:' -> `;' to fix typo. 1999-08-18 Alain Magloire - * 2.3e snapshot. + * 2.3e snapshot. 1999-08-18 Alain Magloire - * src/search.c: On a CRAY J90 system running UNICOS 8.0. - Compilation of ./src/search.c failed because the declaration of - the variable "regex": - static struct re_pattern_buffer regex; - conflicted with a previous declaration search.c #includes "system.h", - which #includes , which declares : + * src/search.c: On a CRAY J90 system running UNICOS 8.0. + Compilation of ./src/search.c failed because the declaration of + the variable "regex": + static struct re_pattern_buffer regex; + conflicted with a previous declaration search.c #includes "system.h", + which #includes , which declares : extern char *regex __((char *_Re, char *_Subject, ...)); - The declaration in search.c is local to that one source file. - I just changed its name to something less likely to conflict. - (I called it "regexbuf", but you could pick any name you want.) - Excerpt email from Dean Kopesky. + The declaration in search.c is local to that one source file. + I just changed its name to something less likely to conflict. + (I called it "regexbuf", but you could pick any name you want.) + Excerpt email from Dean Kopesky. 1999-08-16 Paul Eggert - Upgrade large-file support to the version used in tar and - textutils. + Upgrade large-file support to the version used in tar and + textutils. - * Makefile.am (ACLOCAL_AMFLAGS): Define to be empty. - (M4DIR, ACINCLUDE_INPUTS): New macros. - ($(srcdir)/acinclude.m4): New rule. + * Makefile.am (ACLOCAL_AMFLAGS): Define to be empty. + (M4DIR, ACINCLUDE_INPUTS): New macros. + ($(srcdir)/acinclude.m4): New rule. - * configure.in (AC_CANONICAL_HOST, AM_C_PROTOTYPES): Add. - (AC_SYS_LARGEFILE): Renamed from AC_LFS, for compatibility - with what should appear in the next autoconf release. + * configure.in (AC_CANONICAL_HOST, AM_C_PROTOTYPES): Add. + (AC_SYS_LARGEFILE): Renamed from AC_LFS, for compatibility + with what should appear in the next autoconf release. - * m4/largefile.m4: Renamed from m4/lfs.m4. + * m4/largefile.m4: Renamed from m4/lfs.m4. - * src/ansi2knr.1, src/ansi2knr.c, config.guess, config.sub: - New files. config.guess and config.sub ar needed by the new - AC_SYS_LARGEFILE. ansi2knr is needed by AM_C_PROTOTYPES, - which in turn is needed by the new AC_SYS_LARGEFILE. + * src/ansi2knr.1, src/ansi2knr.c, config.guess, config.sub: + New files. config.guess and config.sub ar needed by the new + AC_SYS_LARGEFILE. ansi2knr is needed by AM_C_PROTOTYPES, + which in turn is needed by the new AC_SYS_LARGEFILE. 1999-08-16 Alain Magloire - * 2.3d snapshot on ftp server. + * 2.3d snapshot on ftp server. 1999-07-26 Paul Eggert @@ -2342,1007 +2400,1007 @@ axes.) 1999-06-15 Alain Magloire - * src/grep.c, doc/grep{1,texi} : - --revert-match should be --invert-match. - Correction proposed by Karl Berry. + * src/grep.c, doc/grep{1,texi} : + --revert-match should be --invert-match. + Correction proposed by Karl Berry. 1999-06-12 Alain Magloire - * doc/grep.{1,texi}: add description for --with-filename. - Noted missing by UEBAYASHI Masao. + * doc/grep.{1,texi}: add description for --with-filename. + Noted missing by UEBAYASHI Masao. 1999-03-17 Paul Eggert - * NEWS: Add GREP_OPTIONS. + * NEWS: Add GREP_OPTIONS. - * doc/grep.texi: Document GREP_OPTIONS, and the other - environment variables. Fix doc for [:blank:], [:cntrl:], [:punct:]. + * doc/grep.texi: Document GREP_OPTIONS, and the other + environment variables. Fix doc for [:blank:], [:cntrl:], [:punct:]. - * src/grep.c (prepend_args, prepend_default_options): New functions. - (main): Use them to implement GREP_OPTIONS. - * src/system.h (getenv): New decl. + * src/grep.c (prepend_args, prepend_default_options): New functions. + (main): Use them to implement GREP_OPTIONS. + * src/system.h (getenv): New decl. 1999-03-16 Volker Borchert - * configure.in: Use case case ... esac for checking Visual C++. - When ${CC} contains options it was not recognize. + * configure.in: Use case case ... esac for checking Visual C++. + When ${CC} contains options it was not recognize. 1999-03-07 Paul Eggert - * src/grep.c (usage): Don't report -E, -F, and -G unless we're grep. - (main): Don't match options -E, -F, and -G unless we're grep. - Remove after-the-fact check for options -E, -F, and -G, since - they're no longer needed. + * src/grep.c (usage): Don't report -E, -F, and -G unless we're grep. + (main): Don't match options -E, -F, and -G unless we're grep. + Remove after-the-fact check for options -E, -F, and -G, since + they're no longer needed. 1999-03-05 Eli Zaretskii - * src/grep.c (main): Print the name of the default matcher instead - of just "grep". + * src/grep.c (main): Print the name of the default matcher instead + of just "grep". 1999-02-06 Alain Magloire - * tests/*.awk : Linux users are seeing "Broken Pipe" on make check. - The problem is that grep does not drain its stdin, thus the previous - process in the pipeline receives a SIGPIPE. Other shells are silent - about this. There is actually no failure, since the broken pipe is - expected. You can work around it by changing the pipeline, so that - the input is drained, like this: - status=`echo 'check' | { ${GREP} -E -e pattern >/dev/null 2>&1; - echo $?; cat >/dev/null; }`; if test $status -ne $errnu then ... fi - Excerpt email from Andreas Schwab. + * tests/*.awk : Linux users are seeing "Broken Pipe" on make check. + The problem is that grep does not drain its stdin, thus the previous + process in the pipeline receives a SIGPIPE. Other shells are silent + about this. There is actually no failure, since the broken pipe is + expected. You can work around it by changing the pipeline, so that + the input is drained, like this: + status=`echo 'check' | { ${GREP} -E -e pattern >/dev/null 2>&1; + echo $?; cat >/dev/null; }`; if test $status -ne $errnu then ... fi + Excerpt email from Andreas Schwab. 1999-02-23 Alain Magloire - * src/grep.c : Restrict the use of -E, -F, -G - to only grep driver, Posix behaviour. {f,e}grep - the matcher is already set. This change may brake - scripts, warn in NEWS. + * src/grep.c : Restrict the use of -E, -F, -G + to only grep driver, Posix behaviour. {f,e}grep + the matcher is already set. This change may brake + scripts, warn in NEWS. - * doc/grep.{1,texi} : -C takes arguments, upgrade manual. + * doc/grep.{1,texi} : -C takes arguments, upgrade manual. - * beta 2.3a + * beta 2.3a 1999-02-23 Alain Magloire - * configure.in : Change the configure VC test from - 'test x$ac_cv_prog_CC = xcl;' to 'test x"$ac_cv_prog_CC" = xcl;' - Email from Joshua R. Poulson. + * configure.in : Change the configure VC test from + 'test x$ac_cv_prog_CC = xcl;' to 'test x"$ac_cv_prog_CC" = xcl;' + Email from Joshua R. Poulson. 1999-02-23 Paul Eggert - Fix porting bug reported by Amakawa Shuhei for SunOS 4.1.4-JL. - The btowc.c shipped with grep 2.3 is incorrect for Solaris - 2.5.1 and earlier, as it assumes UTF8, which these OSes do not - support. Solaris 7 supports btowc, so there's no need to ship - a substitute for it. The only questionable case is Solaris - 2.6, which lacks btowc but does support UTF8. However, 2.6 - supports UTF8 but only as a demonstration (for an English - locale!); Japanese Solaris 2.6 users typically use EUC, or - sometimes shift-JIS, but they cannot use UTF8 since Japanese - UTF8 is not supported. Hence there's no point to having grep - substitute a btowc that uses UTF8, as it is either redundant, - or it will almost invariably have incorrect behavior. + Fix porting bug reported by Amakawa Shuhei for SunOS 4.1.4-JL. + The btowc.c shipped with grep 2.3 is incorrect for Solaris + 2.5.1 and earlier, as it assumes UTF8, which these OSes do not + support. Solaris 7 supports btowc, so there's no need to ship + a substitute for it. The only questionable case is Solaris + 2.6, which lacks btowc but does support UTF8. However, 2.6 + supports UTF8 but only as a demonstration (for an English + locale!); Japanese Solaris 2.6 users typically use EUC, or + sometimes shift-JIS, but they cannot use UTF8 since Japanese + UTF8 is not supported. Hence there's no point to having grep + substitute a btowc that uses UTF8, as it is either redundant, + or it will almost invariably have incorrect behavior. - * configure.in (AC_CHECK_HEADERS): Don't set USE_WCHAR. - (AC_CHECK_FUNCS): Add btowc, wctype. - (AC_REPLACE_FUNCS): Don't replace btowc; our replacement is - invariably doing the wrong thing anyway, at least on SunOS/Solaris. - Don't bother to check for wctype in -lw, as we don't support - wide characters on Solaris 2.5.1 or earlier anyway. + * configure.in (AC_CHECK_HEADERS): Don't set USE_WCHAR. + (AC_CHECK_FUNCS): Add btowc, wctype. + (AC_REPLACE_FUNCS): Don't replace btowc; our replacement is + invariably doing the wrong thing anyway, at least on SunOS/Solaris. + Don't bother to check for wctype in -lw, as we don't support + wide characters on Solaris 2.5.1 or earlier anyway. - * bootstrap/Makefile.try (OBJS): Remove btowc.$(OBJEXT). + * bootstrap/Makefile.try (OBJS): Remove btowc.$(OBJEXT). - * src/btowc.c: Removed; no longer needed. + * src/btowc.c: Removed; no longer needed. 1999-02-19 Paul Eggert - * NEWS: Fix typo when talking about the old behavior of - silently skipping directories; it was grep 2.1, not grep 2.2. + * NEWS: Fix typo when talking about the old behavior of + silently skipping directories; it was grep 2.1, not grep 2.2. 1999-02-15 Alain Magloire - * bootstrap/Makefile.try : add DJGPP DEFS. - Done by Elie Zaretsckii. + * bootstrap/Makefile.try : add DJGPP DEFS. + Done by Elie Zaretsckii. 1999-02-14 Alain Magloire - * m4/gettext.m4 : Guard [] with changequote. - From Elie Zaretskii. + * m4/gettext.m4 : Guard [] with changequote. + From Elie Zaretskii. - * djgpp/config.bat : Makefile.in.in --> Makefile.in-in - From Elie Zaretskii. + * djgpp/config.bat : Makefile.in.in --> Makefile.in-in + From Elie Zaretskii. - * src/dosbuf: k&r function parameter. + * src/dosbuf: k&r function parameter. - * release of 2.3. + * release of 2.3. 1999-02-10 Alain Magloire - * bootstrap/{Makefile{try,am},REAMDE} : skeleton - provided for system lacking the tools to autoconfigure. + * bootstrap/{Makefile{try,am},REAMDE} : skeleton + provided for system lacking the tools to autoconfigure. - * src/{e,f,}grepmat.c: added guard [HAVE_CONFIG_H] + * src/{e,f,}grepmat.c: added guard [HAVE_CONFIG_H] 1999-02-10 Alain Magloire - * PATCHES-AC, PATCHES-AM: updated. + * PATCHES-AC, PATCHES-AM: updated. - * m4/regex.m4 : updated. + * m4/regex.m4 : updated. 1999-02-05 Eli Zaretskii - * m4/gettext.m4 : Support DOS-style D:/foo/bar absolute file - names. + * m4/gettext.m4 : Support DOS-style D:/foo/bar absolute file + names. - * aclocal.m4 (DJGPP) : Use $DJ_GPP instead, since changing the - latter prevents GCC from finding headers and libraries. + * aclocal.m4 (DJGPP) : Use $DJ_GPP instead, since changing the + latter prevents GCC from finding headers and libraries. - * djgpp/config.bat: Make building from another directory work + * djgpp/config.bat: Make building from another directory work - * djgpp/config.sed: Remove redundant command wich edited path - separator: now done by configure. + * djgpp/config.sed: Remove redundant command wich edited path + separator: now done by configure. - * src/grep.c [O_BINARY]: Add prototype for undossify_input. + * src/grep.c [O_BINARY]: Add prototype for undossify_input. - * doc/grep.texi (Introduction): Typo fixed. + * doc/grep.texi (Introduction): Typo fixed. 1999-02-03 Alain Magloire - * grep-2.2f beta release. + * grep-2.2f beta release. 1999-02-02 Alain Magloire - * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : - New files to aid configuration and unload configure.in. - * m4/Makefile.am : updated. - * src/btowc.c : protect for wchar.h + * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : + New files to aid configuration and unload configure.in. + * m4/Makefile.am : updated. + * src/btowc.c : protect for wchar.h 1999-01-28 Alain Magloire - * intl/Makefile.in: Replace .o with .${ac_objext} where necessary. - Work around a limitation of Visual C++ on Cygwin32. - * acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl. - This little hack was suggested by Ian Roxborough . - Patch forwarded by Ben Elliston. + * intl/Makefile.in: Replace .o with .${ac_objext} where necessary. + Work around a limitation of Visual C++ on Cygwin32. + * acconfig.h configure.in: Define `alloca' as `_alloca' when CC=cl. + This little hack was suggested by Ian Roxborough . + Patch forwarded by Ben Elliston. 1999-01-28 Alain Magloire - * PATCHES-AM: New file. A small patch for automake-1.4, use $(sep) - as the path separator base on @SEP@. - * PATCHES-AC configure.in : updated for autoconf-13. + * PATCHES-AM: New file. A small patch for automake-1.4, use $(sep) + as the path separator base on @SEP@. + * PATCHES-AC configure.in : updated for autoconf-13. 1999-01-27 Volker Borchert - * grep.c: fgrep -NUM not working correctly. - add the argument number to digit_args_val. + * grep.c: fgrep -NUM not working correctly. + add the argument number to digit_args_val. 1999-01-22 Paul Eggert - Prevent grep -r from recursing infinitely through directory loops via - symbolic links. + Prevent grep -r from recursing infinitely through directory loops via + symbolic links. - * grep.c (struct stats): New type. - (stats_base): New var. - (bufstat): Remove; subsumed by stats->stat. - (reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg, - for directory loop checking; use this instead of the bufstat global. - All callers changed. - (grepfile): Stat the file before invoking grepdir. - (grepdir): Assume that the argument has already been statted. - No longer a need for a directory size argument, since it - can be gotten from the struct stats * argument. - Check for directory loops. - Create linked list of directories currently being visited, - to detect loops. + * grep.c (struct stats): New type. + (stats_base): New var. + (bufstat): Remove; subsumed by stats->stat. + (reset, fillbuf, grep, grepdir, grepfile): Pass struct stats * arg, + for directory loop checking; use this instead of the bufstat global. + All callers changed. + (grepfile): Stat the file before invoking grepdir. + (grepdir): Assume that the argument has already been statted. + No longer a need for a directory size argument, since it + can be gotten from the struct stats * argument. + Check for directory loops. + Create linked list of directories currently being visited, + to detect loops. 1998-12-29 Kaveh R. Ghazi - intl/localealias.c: When building grep-2.2e using cc on Irix4, - I needed the following patch to intl/localealias.c. - (Its the same patch used by fileutils-4.0.) The patch resolves - conflicts between char* and unsigned char* in the i18n code. + intl/localealias.c: When building grep-2.2e using cc on Irix4, + I needed the following patch to intl/localealias.c. + (Its the same patch used by fileutils-4.0.) The patch resolves + conflicts between char* and unsigned char* in the i18n code. 1998-12-10 Alain Magloire - * src/grep.c : Typo in contex -->context - Noted by Vladimir Michl. + * src/grep.c : Typo in contex -->context + Noted by Vladimir Michl. 1998-12-01 Alain Magloire - * doc/Makefile.am djgpp/Makefile.am m4/Makefile.am vms/Makefile.am: - New files. + * doc/Makefile.am djgpp/Makefile.am m4/Makefile.am vms/Makefile.am: + New files. - * m4/progtest.m4: proctect '[]' from m4. - Noted by Eli Z. + * m4/progtest.m4: proctect '[]' from m4. + Noted by Eli Z. - * PATCHES-AC: New file, add the patch for autoconf in the dist. + * PATCHES-AC: New file, add the patch for autoconf in the dist. - * acconfig.h: (HAVE_DOS_FILENAME) + * acconfig.h: (HAVE_DOS_FILENAME) - * TODO: updated. + * TODO: updated. - * src/search.c: remove obsolete 'gegrep,ggrep,gnugrep' - matchers. grep no longer depend on argv[0]. + * src/search.c: remove obsolete 'gegrep,ggrep,gnugrep' + matchers. grep no longer depend on argv[0]. - * grep-2.2e beta to test DJGPP port. + * grep-2.2e beta to test DJGPP port. 1998-11-28 Paul Eggert - Various portability enhancements: - - Don't assume that O_BINARY implies DOS. Use separate - macros D_OK (for DOS-like directory access) and - HAVE_DOS_FILE_NAMES (for DOS-like file names). - - Don't assume that off_t fits into long; it doesn't on Solaris 2.6. - - Have is_EISDIR set errno properly on hosts with screwed-up EISDIR. - - Treat ':' specially in DOS file names only if it's the end of a - drive specifier. - - Protect against errno < 0. + Various portability enhancements: + - Don't assume that O_BINARY implies DOS. Use separate + macros D_OK (for DOS-like directory access) and + HAVE_DOS_FILE_NAMES (for DOS-like file names). + - Don't assume that off_t fits into long; it doesn't on Solaris 2.6. + - Have is_EISDIR set errno properly on hosts with screwed-up EISDIR. + - Treat ':' specially in DOS file names only if it's the end of a + drive specifier. + - Protect against errno < 0. - * src/grep.c (is_EISDIR): Move defn to system.h. - (print_offset_sep): New function. - (fillbuf): Remove redundant test of O_BINARY. - (totalcc, totalnl): Now of type off_t. - (prline): Use print_offset_sep to print file offsets. - (grepfile): Don't set e to EISDIR; that's is_EISDIR's responsibility - on machines that don't work properly with EISDIR. - (grepdir): Don't assume ':' means slash on all DOS filenames; - it means it only in the file prefix. + * src/grep.c (is_EISDIR): Move defn to system.h. + (print_offset_sep): New function. + (fillbuf): Remove redundant test of O_BINARY. + (totalcc, totalnl): Now of type off_t. + (prline): Use print_offset_sep to print file offsets. + (grepfile): Don't set e to EISDIR; that's is_EISDIR's responsibility + on machines that don't work properly with EISDIR. + (grepdir): Don't assume ':' means slash on all DOS filenames; + it means it only in the file prefix. - * src/system.h (strerror): Check for negative error numbers. - (is_EISDIR): Depend on D_OK, not O_BINARY. - (SET_BINARY): Depend on HAVE_SETMODE, not __DJGPP__. - (IS_SLASH, FILESYSTEM_PREFIX_LEN): Depend on HAVE_DOS_FILE_NAMES, - not O_BINARY. - (CHAR_BIT): New macro. + * src/system.h (strerror): Check for negative error numbers. + (is_EISDIR): Depend on D_OK, not O_BINARY. + (SET_BINARY): Depend on HAVE_SETMODE, not __DJGPP__. + (IS_SLASH, FILESYSTEM_PREFIX_LEN): Depend on HAVE_DOS_FILE_NAMES, + not O_BINARY. + (CHAR_BIT): New macro. - * src/dosbuf.c (struct dos_map): - pos and add members are now of type off_t. - (dos_stripped_crs): Now of type off_t. - (dossified_pos): Now accepts arg and returns value of type off_t. + * src/dosbuf.c (struct dos_map): + pos and add members are now of type off_t. + (dos_stripped_crs): Now of type off_t. + (dossified_pos): Now accepts arg and returns value of type off_t. - * configure.in (AC_CHECK_FUNCS): Add setmode. - (HAVE_DOS_FILENAMES): New macro + * configure.in (AC_CHECK_FUNCS): Add setmode. + (HAVE_DOS_FILENAMES): New macro 1998-11-27 Eli Zaretskii - * djgpp/config.sed: New file, a Sed script to edit configure - script before running it on DOS/Windows. - * djgpp/config.bat: Updated to handle po2tbl.sed.in and - po/Makefile.in.in on DOS filesystems, and to run config.sed. + * djgpp/config.sed: New file, a Sed script to edit configure + script before running it on DOS/Windows. + * djgpp/config.bat: Updated to handle po2tbl.sed.in and + po/Makefile.in.in on DOS filesystems, and to run config.sed. 1998-11-24 Jim Meyering - * src/grep.c : Typo s/infalid/invalid/ - Also noted by Stanislav Brabec. + * src/grep.c : Typo s/infalid/invalid/ + Also noted by Stanislav Brabec. 1998-11-24 Eli Zaretskii - * doc/grep.texi: I found and corrected several typos. - I believe the GNU standards require the section that describes the - options to the programs to be called ``Invoking'' or ``Invoking - ''. This is so users and programs can easily find - that node in any Info file. So I changed the name of the - `Options' chapter to `Invoking', and corrected the - cross-references accordingly. - I added some markup to things like file names and options. - I added some additional index entries where that seemed useful. - I also corrected some index entries, such as "@cindex [:alnum:]", - which used a colon in them (the colons confuse Info readers). + * doc/grep.texi: I found and corrected several typos. + I believe the GNU standards require the section that describes the + options to the programs to be called ``Invoking'' or ``Invoking + ''. This is so users and programs can easily find + that node in any Info file. So I changed the name of the + `Options' chapter to `Invoking', and corrected the + cross-references accordingly. + I added some markup to things like file names and options. + I added some additional index entries where that seemed useful. + I also corrected some index entries, such as "@cindex [:alnum:]", + which used a colon in them (the colons confuse Info readers). 1998-11-24 Alain Magloire - * grep/doc/grep.texi : -h is not use for help. - Nit spotted by Jim Meyering. + * grep/doc/grep.texi : -h is not use for help. + Nit spotted by Jim Meyering. 1998-11-23 Alain Magloire - * doc: New directory, grep.1, {e,f}grep.man move here - * doc/grep.texi: New info manual - * doc/version.texi: New - * doc/Makefile.am: New - * tests/{ere,bre}.*: New files. The spencer2 test is split - in two ere/bre. - * config.hin: New, config.h.in rename to config.hin for OS - with limited file system aka DOS. + * doc: New directory, grep.1, {e,f}grep.man move here + * doc/grep.texi: New info manual + * doc/version.texi: New + * doc/Makefile.am: New + * tests/{ere,bre}.*: New files. The spencer2 test is split + in two ere/bre. + * config.hin: New, config.h.in rename to config.hin for OS + with limited file system aka DOS. - * grep-2.2d release for beta. + * grep-2.2d release for beta. 1998-11-18 Alain Magloire - * src/regex.[ch] : Updated from GLibc, previous patches were - integrate by Ulrich Drepper and some added ones. + * src/regex.[ch] : Updated from GLibc, previous patches were + integrate by Ulrich Drepper and some added ones. 1998-11-16 Paul Eggert - * grep.h (__attribute__): New macro, if not GCC. - (fatal): Add __attribute__((noreturn)). - * grep.c (usage): Add __attribute__((noreturn)). + * grep.h (__attribute__): New macro, if not GCC. + (fatal): Add __attribute__((noreturn)). + * grep.c (usage): Add __attribute__((noreturn)). 1998-11-16 Paul Eggert - Remove memory leak with valloced buffers, by invoking malloc instead. + Remove memory leak with valloced buffers, by invoking malloc instead. - * configure.in (AC_CHECK_FUNCS), src/system.h (valloc): Remove. - * src/grep.c (page_alloc): New function. - (ubuffer, pagesize): New vars. - (ALIGN_TO): New macro. - (reset): Initialize new vars. Check for overflow in buffer size calc. - Use page_alloc instead of valloc. - (fillbuf): Likewise. Use memcpy to copy saved area. + * configure.in (AC_CHECK_FUNCS), src/system.h (valloc): Remove. + * src/grep.c (page_alloc): New function. + (ubuffer, pagesize): New vars. + (ALIGN_TO): New macro. + (reset): Initialize new vars. Check for overflow in buffer size calc. + Use page_alloc instead of valloc. + (fillbuf): Likewise. Use memcpy to copy saved area. 1998-11-15 Paul Eggert - * dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned. + * dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned. 1998-11-14 Paul Eggert - * src/grep.c (grepdir): Fix bug: memory freed twice. + * src/grep.c (grepdir): Fix bug: memory freed twice. - * src/search.c (Gcompile, Ecompile): Don't invoke dfainit, - since dfacomp does it for us, and if we also do it then we - leak memory. + * src/search.c (Gcompile, Ecompile): Don't invoke dfainit, + since dfacomp does it for us, and if we also do it then we + leak memory. 1998-11-13 Eli Zaretskii - * djgpp/config.bat: Rewrite to run the configure script via Bash. - * djgpp/config.site, djgpp/getconf: New files. - * djgpp/config.h, djgpp/*.mak, djgpp/po2tbl.sed: Remove. - * djgpp/README: Update instructions. + * djgpp/config.bat: Rewrite to run the configure script via Bash. + * djgpp/config.site, djgpp/getconf: New files. + * djgpp/config.h, djgpp/*.mak, djgpp/po2tbl.sed: Remove. + * djgpp/README: Update instructions. - * Makefile.am (EXTRA_DIST): Update the list of DJGPP files. + * Makefile.am (EXTRA_DIST): Update the list of DJGPP files. - * src/system.h (IS_SLASH): New macro. - (is_EISDIR): Define it here for DOS and Windows. + * src/system.h (IS_SLASH): New macro. + (is_EISDIR): Define it here for DOS and Windows. - * src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the - EOL formats of the input and output files match, unless stdout is - the console device. - (is_EISDIR): Don't define if already defined. Accept a second - argument, the file name; all callers changed. - (grepdir): Don't free `file', inside the loop. Use IS_SLASH to - check whether `dir' needs a slash. - (grepfile): If file is a directory, set e to EISDIR. + * src/grep.c (main) [O_BINARY]: Set stdout to binary mode, so the + EOL formats of the input and output files match, unless stdout is + the console device. + (is_EISDIR): Don't define if already defined. Accept a second + argument, the file name; all callers changed. + (grepdir): Don't free `file', inside the loop. Use IS_SLASH to + check whether `dir' needs a slash. + (grepfile): If file is a directory, set e to EISDIR. 1998-11-10 Alain Magloire - * src/vms_fab.{c,h}: New file for VMS wildcard expansion - Written by Phillip C. Brisco. + * src/vms_fab.{c,h}: New file for VMS wildcard expansion + Written by Phillip C. Brisco. - * vms/make.com : add line to compile vms_fab.c and - {e,f,}grepmat.c with link for each grep/fgrep/egrep. - Base on patch send by Phillib C. Brisco. + * vms/make.com : add line to compile vms_fab.c and + {e,f,}grepmat.c with link for each grep/fgrep/egrep. + Base on patch send by Phillib C. Brisco. 1998-11-09 Alain Magloire - * grep-2.2c on alpha for testing. + * grep-2.2c on alpha for testing. 1998-11-09 Paul Eggert - * src/grep.1: Fix `Last Change' of output by generating the date - from the RCS Id. + * src/grep.1: Fix `Last Change' of output by generating the date + from the RCS Id. - * src/grep.c (is_EISDIR): New macro. - (grep): If -s, suppress errors from trying to read directories. - (grepfile): Use is_EISDIR to simplify code. - (grepdir): If -s, suppress errors from trying to read directories. + * src/grep.c (is_EISDIR): New macro. + (grep): If -s, suppress errors from trying to read directories. + (grepfile): Use is_EISDIR to simplify code. + (grepdir): If -s, suppress errors from trying to read directories. - * src/grep.1: Fix -q -r -s problems; describe BSD grep better. + * src/grep.1: Fix -q -r -s problems; describe BSD grep better. - * src/grep.c (main): Update copyright. + * src/grep.c (main): Update copyright. - Specify default matcher with default_matcher extern var, not - DEFAULT_MATCHER macro. This is more straightforward and means - we need to compile grep.c just once. + Specify default matcher with default_matcher extern var, not + DEFAULT_MATCHER macro. This is more straightforward and means + we need to compile grep.c just once. - * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c: New files. + * src/egrepmat.c, src/fgrepmat.c, src/grepmat.c: New files. - * src/Makefile.am (base_sources): New macro. - (egrep_SOURCES, fgrep_SOURCES, grep_SOURCES): Now consist of - $(base_sources) plus the single tailoring file. - (grep_LDADD, egrep_LDADD, fgrep_LDADD): Remove. - (EXTRA_DIST): Remove grep.c, regex.c. - (fgrep.o, egrep.o): Remove. + * src/Makefile.am (base_sources): New macro. + (egrep_SOURCES, fgrep_SOURCES, grep_SOURCES): Now consist of + $(base_sources) plus the single tailoring file. + (grep_LDADD, egrep_LDADD, fgrep_LDADD): Remove. + (EXTRA_DIST): Remove grep.c, regex.c. + (fgrep.o, egrep.o): Remove. - * src/grep.h (matcher): Now char const *. - (default_matcher): New decl. + * src/grep.h (matcher): Now char const *. + (default_matcher): New decl. - * src/grep.c (matcher): Now char const *. - (setmatcher): Now accepts char const *. - (main): Default the matcher from default_matcher (linked externally) - rather than DEFAULT_MATCHER (a macro). + * src/grep.c (matcher): Now char const *. + (setmatcher): Now accepts char const *. + (main): Default the matcher from default_matcher (linked externally) + rather than DEFAULT_MATCHER (a macro). 1998-11-08 Alain Magloire - * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'. - Nit from Paul Eggert. + * src/grep.1: `prep.ai.mit.edu' should be replaced with `gnu.org'. + Nit from Paul Eggert. 1998-11-06 Alain Magloire - * src/grep.c: The Matcher is not set to argv[0] but - explicitly by a #define MATCHER at compile time default is "grep". + * src/grep.c: The Matcher is not set to argv[0] but + explicitly by a #define MATCHER at compile time default is "grep". - * aclocal/: NEW dir. provides our own *.m4 + * aclocal/: NEW dir. provides our own *.m4 - * configure.in: Move Paul's Large Files to AC_LFS.(aclocal/lfs.m4) - Taken from Jim Meyering fileutils. + * configure.in: Move Paul's Large Files to AC_LFS.(aclocal/lfs.m4) + Taken from Jim Meyering fileutils. 1998-11-05 Alain Magloire - * src/grep.1: update the man pages according to the - changes make by Miles. + * src/grep.1: update the man pages according to the + changes make by Miles. - * po/*.po: updated. + * po/*.po: updated. - * first beta release for 2.3 (2.2a). + * first beta release for 2.3 (2.2a). 1998-11-04 Miles Bader - * src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B - options, and allow -C to have an optional argument. -NUM can - now be mixed with -C, and -A, -B always take precedence over - -C/-NUM, regardless of order. - (long_options): Let -C/--context take an optional argument. + * src/grep.c (main): Rationalize interaction of -C/-NUM/-A/-B + options, and allow -C to have an optional argument. -NUM can + now be mixed with -C, and -A, -B always take precedence over + -C/-NUM, regardless of order. + (long_options): Let -C/--context take an optional argument. 1998-11-03 Alain Magloire - * src/dfa.c: HP-UX define clrbit/setbit as macros in - #undef if defined. - Fixed by Andreas Ley and Philippe Defert. + * src/dfa.c: HP-UX define clrbit/setbit as macros in + #undef if defined. + Fixed by Andreas Ley and Philippe Defert. - * src/grep.1 : mention that -s follows POSIX.2 behavior. - Noted by Paul Eggert and others. + * src/grep.1 : mention that -s follows POSIX.2 behavior. + Noted by Paul Eggert and others. - * tests/khadafy.sh: a typo in failure(s). - Spotted By Sotiris Vassilopoulos. + * tests/khadafy.sh: a typo in failure(s). + Spotted By Sotiris Vassilopoulos. 1998-11-01 Paul Eggert - * src/system.h (IN_CTYPE_DOMAIN): New macro. - (ISALPHA, ISUPPER, ISLOWER, ISDIGIT, ISXDIGIT, ISSPACE, - ISPUNCT, ISALNUM, ISPRINT, ISGRAPH, ISCNTRL): Use - IN_CTYPE_DOMAIN instead of isascii. + * src/system.h (IN_CTYPE_DOMAIN): New macro. + (ISALPHA, ISUPPER, ISLOWER, ISDIGIT, ISXDIGIT, ISSPACE, + ISPUNCT, ISALNUM, ISPRINT, ISGRAPH, ISCNTRL): Use + IN_CTYPE_DOMAIN instead of isascii. 1998-08-18 Paul Eggert - Add support for new -r or --recursive (or -d recurse or - --directories=recurse) option. + Add support for new -r or --recursive (or -d recurse or + --directories=recurse) option. - * src/Makefile.am (grep_SOURCES): Add savedir.c, savedir.h, stpcpy.c. + * src/Makefile.am (grep_SOURCES): Add savedir.c, savedir.h, stpcpy.c. - * src/grep.1: Describe new options. + * src/grep.1: Describe new options. - * src/grep.c: Include "savedir.h". - (long_options): Add -r or --recursive. - (RECURSE_DIRECTORIES): New enum value. - (IS_DIRECTORY_ERRNO): Remove. - (reset, grep): Add file name arg. - (grepdir, grepfile): New functions. - (initial_bufoffset): New var. - (reset): Initialize it. - (fillbuf): Use it. - (count_matches, list_files, no_filenames, suppress_errors): New static - vars; formerly were local to `main'. - (grep): Recurse through directories if the user asks for this. - (usage, main): Add new options. - (main): Change some local vars to be static, as described above. - Move most of the guts into grepfile function. - so that it can be recursed through. + * src/grep.c: Include "savedir.h". + (long_options): Add -r or --recursive. + (RECURSE_DIRECTORIES): New enum value. + (IS_DIRECTORY_ERRNO): Remove. + (reset, grep): Add file name arg. + (grepdir, grepfile): New functions. + (initial_bufoffset): New var. + (reset): Initialize it. + (fillbuf): Use it. + (count_matches, list_files, no_filenames, suppress_errors): New static + vars; formerly were local to `main'. + (grep): Recurse through directories if the user asks for this. + (usage, main): Add new options. + (main): Change some local vars to be static, as described above. + Move most of the guts into grepfile function. + so that it can be recursed through. - * configure.in (AC_HEADER_DIRENT, AC_FUNC_CLOSEDIR_VOID): Add. - (AC_REPLACE_FUNCS): Add stpcpy. + * configure.in (AC_HEADER_DIRENT, AC_FUNC_CLOSEDIR_VOID): Add. + (AC_REPLACE_FUNCS): Add stpcpy. - * src/savedir.c, src/savedir.h, src/stpcpy.c: New files; - taken from fileutils 3.16u. + * src/savedir.c, src/savedir.h, src/stpcpy.c: New files; + taken from fileutils 3.16u. 1998-08-11 Paul Eggert - * src/system.h (initialize_main): New macro. - * src/grep.c (main): Invoke initialize_main first thing. + * src/system.h (initialize_main): New macro. + * src/grep.c (main): Invoke initialize_main first thing. 1998-04-29 Paul Eggert - * NEWS, src/grep.1: Describe new -a and -d options. + * NEWS, src/grep.1: Describe new -a and -d options. - * src/grep.c (long_options, usage, main): - New options -d or --directories and -a or --text. - (directories, always_text): New variables. - (IS_DIRECTORY_ERRNO): New macro. - (reset): Now returns value specifying whether to skip this file. - Stat the file if either mmap or directory-skipping is possible. - Skip the file if it's a directory and we're skipping directories. - (grep): Skip the file if `reset' tells us to. - (main): If open fails because the file is a directory, and if we're - skipping directories, don't report an error. - Remove special case for DOS and Windows. + * src/grep.c (long_options, usage, main): + New options -d or --directories and -a or --text. + (directories, always_text): New variables. + (IS_DIRECTORY_ERRNO): New macro. + (reset): Now returns value specifying whether to skip this file. + Stat the file if either mmap or directory-skipping is possible. + Skip the file if it's a directory and we're skipping directories. + (grep): Skip the file if `reset' tells us to. + (main): If open fails because the file is a directory, and if we're + skipping directories, don't report an error. + Remove special case for DOS and Windows. - * src/dosbuf.c (guess_type): Use the same method for guessing whether a - file is binary as grep.c's grep does. - There's no longer any need to declare `bp' to be unsigned. + * src/dosbuf.c (guess_type): Use the same method for guessing whether a + file is binary as grep.c's grep does. + There's no longer any need to declare `bp' to be unsigned. 1998-04-26 Alain Magloire - * grep-2.2 release. + * grep-2.2 release. - * src/dfa.c: Wrong revision was pulled out - for beta 2.1.1d. - * src/search.c: Wrong revision was pulled out - for beta 2.1.1d. + * src/dfa.c: Wrong revision was pulled out + for beta 2.1.1d. + * src/search.c: Wrong revision was pulled out + for beta 2.1.1d. - * src/grep.c: ck_atoi () added instead of atoi (). - Suggestion from Jim Meyering. - ck_atoi () pulled from diffutils-2.7, maintained by Paul Eggert. + * src/grep.c: ck_atoi () added instead of atoi (). + Suggestion from Jim Meyering. + ck_atoi () pulled from diffutils-2.7, maintained by Paul Eggert. - * AUTHORS: Rephrase of some sentences. - * README: Rewording. - Noted and patched by Joel N. Weber II. + * AUTHORS: Rephrase of some sentences. + * README: Rewording. + Noted and patched by Joel N. Weber II. 1998-04-17 Kaveh R. Ghazi - * src/dfa.h: Don't define `const', trust autoconf to handle it. + * src/dfa.h: Don't define `const', trust autoconf to handle it. 1998-04-16 Alain Magloire - * tests/{status,empty}.sh: wrong return status. + * tests/{status,empty}.sh: wrong return status. - * src/grep.c: Remove the REGEX part in usage (), it was - consider overkill by most. + * src/grep.c: Remove the REGEX part in usage (), it was + consider overkill by most. 1998-04-14 Eli Zaretskii - * djgpp/config.bat: Support file names with multiple dots on all - platforms. + * djgpp/config.bat: Support file names with multiple dots on all + platforms. - * djgpp/README: Add instructions about file names illegal on - MS-DOS. + * djgpp/README: Add instructions about file names illegal on + MS-DOS. 1998-04-13 Alain Magloire - * src/dfa.c: by "popular" demand reverse - back to '_' not word-constituent. + * src/dfa.c: by "popular" demand reverse + back to '_' not word-constituent. - * grep-2.1.1c available for testing. + * grep-2.1.1c available for testing. 1998-04-13 Karl Heuer - * src/grep.c: (a) The directory check is done too early: - logically, if the argument is "-", then it refers to standard - input, regardless of whether there's something in the file - system answering to "-". - (b) The sh command "grep -l root /etc/passwd /etc/group 0<&-" - prints "(standard input)" instead of "/etc/passwd", because it - mistakenly believes that a named file will never be opened on fd - 0. The string "(standard input)" should be based on the file - having been originally specified as "-", rather than making - assumptions about the fd. - (c) the code that calls close(fd) is being done outside of the - test for a bad fd. Thus, if the open failed, this code will - attempt to close(-1). It should be done inside the "fd != -1" - branch. - This patch addresses all three of these problems. + * src/grep.c: (a) The directory check is done too early: + logically, if the argument is "-", then it refers to standard + input, regardless of whether there's something in the file + system answering to "-". + (b) The sh command "grep -l root /etc/passwd /etc/group 0<&-" + prints "(standard input)" instead of "/etc/passwd", because it + mistakenly believes that a named file will never be opened on fd + 0. The string "(standard input)" should be based on the file + having been originally specified as "-", rather than making + assumptions about the fd. + (c) the code that calls close(fd) is being done outside of the + test for a bad fd. Thus, if the open failed, this code will + attempt to close(-1). It should be done inside the "fd != -1" + branch. + This patch addresses all three of these problems. 1998-04-13 Alain Magloire - * configure.in: remove the deprecated AC_ISC_POSIX macro. - Spotted by Karl Heuer. + * configure.in: remove the deprecated AC_ISC_POSIX macro. + Spotted by Karl Heuer. 1998-04-03 Eli Zaretskii - * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated from the - relevant Makefile.in files. + * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated from the + relevant Makefile.in files. - * djgpp/config.bat: Create files in intl directory like the - configure script does. + * djgpp/config.bat: Create files in intl directory like the + configure script does. 1998-03-28 Eli Zaretskii - * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated to track - changes in respective Makefile.in files. + * djgpp/main.mak, djgpp/src.mak, djgpp/tests.mak: Updated to track + changes in respective Makefile.in files. - * src/dosbuf.c (guess_type): Avoid running off the end of the - buffer. Spotted by Paul Eggert. + * src/dosbuf.c (guess_type): Avoid running off the end of the + buffer. Spotted by Paul Eggert. 1998-03-27 Alain Magloire - * grep-2.1.1b.tar.gz available. + * grep-2.1.1b.tar.gz available. - * src/regex.c: CLASS_CHAR_MAX set to 256 instead of 6 - when WCTYPE and WCHAR are not defined. When class names - where bigger then 6, it will not detect an error. - example '[[:alphabet:]]'. + * src/regex.c: CLASS_CHAR_MAX set to 256 instead of 6 + when WCTYPE and WCHAR are not defined. When class names + where bigger then 6, it will not detect an error. + example '[[:alphabet:]]'. - * Updated the copyright of the files with emacs. - With emacs Jim :). + * Updated the copyright of the files with emacs. + With emacs Jim :). 1998-03-26 Jim Meyering - * src/dfa.c (IS_WORD_CONSTITUENT): Define. - (lex): Use IS_WORD_CONSTITUENT, not ISALNUM. - Don't special-case '_'. - (dfastate): Use IS_WORD_CONSTITUENT, not ISALNUM. - (dfaexec): Likewise. + * src/dfa.c (IS_WORD_CONSTITUENT): Define. + (lex): Use IS_WORD_CONSTITUENT, not ISALNUM. + Don't special-case '_'. + (dfastate): Use IS_WORD_CONSTITUENT, not ISALNUM. + (dfaexec): Likewise. 1998-03-25 Alain Magloire - * tests/warning.sh: typos and replace the echos with - a simple cat. - Noted By Jim Meyering. + * tests/warning.sh: typos and replace the echos with + a simple cat. + Noted By Jim Meyering. - * src/regex.c: #undef ISASCII and ISPRINT before defining - them(On Solaris it was define). - Pattern 'a[[:]:]]b' is an invalid char class and the error - from regex was 1(REG_NOMATCH) instead of 2 (REG_ECTYPE). - Fix with help from Ulrich Drepper. + * src/regex.c: #undef ISASCII and ISPRINT before defining + them(On Solaris it was define). + Pattern 'a[[:]:]]b' is an invalid char class and the error + from regex was 1(REG_NOMATCH) instead of 2 (REG_ECTYPE). + Fix with help from Ulrich Drepper. - * src/grep.c (usage): Ulrich wrote: "A single printf should - not have more than 900 bytes. For translation reasons the - text shouldn't be split in too many pieces since this is - tiresome and also does not help to generate a consistent picture." - Noted by Ulrich Drepper. - * src/grep.c (usage): Dig out and old patch from - Franc,ois to explain the regex in usage(). - Ideas from Franc,ois Pinard. + * src/grep.c (usage): Ulrich wrote: "A single printf should + not have more than 900 bytes. For translation reasons the + text shouldn't be split in too many pieces since this is + tiresome and also does not help to generate a consistent picture." + Noted by Ulrich Drepper. + * src/grep.c (usage): Dig out and old patch from + Franc,ois to explain the regex in usage(). + Ideas from Franc,ois Pinard. 1998-03-23 Alain Magloire - * testing: grep-2.1.1a for testing. + * testing: grep-2.1.1a for testing. - * configure.in: Solaris needs '-lw' if we use wchar/wctype - functions. - * src/btowc.c: New file from GNU libc. Solaris 2.5 don't - have it define. - * configure.in : check for btowc (). + * configure.in: Solaris needs '-lw' if we use wchar/wctype + functions. + * src/btowc.c: New file from GNU libc. Solaris 2.5 don't + have it define. + * configure.in : check for btowc (). - * regex.c: Include before , to work around - a Solaris 2.5 bug. - Patch provided by Paul Eggert. + * regex.c: Include before , to work around + a Solaris 2.5 bug. + Patch provided by Paul Eggert. - * tests/status.sh: new file to check return status code. - * tests/empty.sh: new file to check for empty pattern. - * tests/warning.sh: new file to tell where to report errors. + * tests/status.sh: new file to check return status code. + * tests/empty.sh: new file to check for empty pattern. + * tests/warning.sh: new file to tell where to report errors. - * configure.in: If available, prefer support for large files - unless the user specified one of the CPPFLAGS, LDFLAGS, or LIBS - variables. - Done by Paul Eggert. + * configure.in: If available, prefer support for large files + unless the user specified one of the CPPFLAGS, LDFLAGS, or LIBS + variables. + Done by Paul Eggert. - * src/grep.c (usage): change prep.ai.mit.edu for gnu.org. + * src/grep.c (usage): change prep.ai.mit.edu for gnu.org. 1998-03-18 Alain Magloire - * src/grep.c (usage): Formating the --help message a bit off. - Noted by William Bader. + * src/grep.c (usage): Formating the --help message a bit off. + Noted by William Bader. - * src/grep.c (main): When checking conflicting matcher for option -E the - matcher was to "egrep" instead of "posix-egrep". - Reported by kwzh@gnu.org. + * src/grep.c (main): When checking conflicting matcher for option -E the + matcher was to "egrep" instead of "posix-egrep". + Reported by kwzh@gnu.org. - * src/grep.c: Typos and rewording the --help message. - Reported by Karl Heuer. + * src/grep.c: Typos and rewording the --help message. + Reported by Karl Heuer. - * src/grep.1: The man page wording : - A regular expression matching a single character may be - followed by one of several repetition operators: - is unclear since 'x(yz)*z' is a valid regex. - Remove the "matching a single character". - Suggested by Harald Hanche-Olsen. + * src/grep.1: The man page wording : + A regular expression matching a single character may be + followed by one of several repetition operators: + is unclear since 'x(yz)*z' is a valid regex. + Remove the "matching a single character". + Suggested by Harald Hanche-Olsen. - * src/grep.c (main): `-f /dev/null' now specifies no patterns - and therfore matches nothing. - Reported by Jorge Stolfi. - Patched by Paul Eggert. + * src/grep.c (main): `-f /dev/null' now specifies no patterns + and therfore matches nothing. + Reported by Jorge Stolfi. + Patched by Paul Eggert. 1998-03-10 Alain Magloire - * Ice storm 98(el nino). Lost grep repository disk, - and my $HOME directory, etc .. - Trying to get the emails/patch from dejanews.com - and start from grep-2.1. - sigh .... + * Ice storm 98(el nino). Lost grep repository disk, + and my $HOME directory, etc .. + Trying to get the emails/patch from dejanews.com + and start from grep-2.1. + sigh .... 1997-11-01 Alain Magloire - * src/grep.c: For the long options, the problems are: - --file appears in the option table as 'no_argument' - instead of 'required_argument'. - --files-with-matches is missing from the option table. - The help lists '--fixed-strings' as the long option for -F, - the table has '--fixed-regexp'. - --regexp appears in the option table as 'no_argument' - instead of 'required_argument'. - --with-filename is missing from the option table. - Reported by Grant McDorman and Krishna Sethuraman. + * src/grep.c: For the long options, the problems are: + --file appears in the option table as 'no_argument' + instead of 'required_argument'. + --files-with-matches is missing from the option table. + The help lists '--fixed-strings' as the long option for -F, + the table has '--fixed-regexp'. + --regexp appears in the option table as 'no_argument' + instead of 'required_argument'. + --with-filename is missing from the option table. + Reported by Grant McDorman and Krishna Sethuraman. 1997-10-19 Alain Magloire - * src/grep.c: the option "with-filename was not in the arg table. - Corrected by Jim Hand. + * src/grep.c: the option "with-filename was not in the arg table. + Corrected by Jim Hand. - * GNU gettext library from gettext-0.10.32. + * GNU gettext library from gettext-0.10.32. - * src/grep.c: reverse back to greping directories, - One could skip the error message by defining - SKIP_DIR_ERROR. There is no clear way of doing - things, I hope to setle this on the next majore release - Thanks Paul Eggert, Eli Zaretskii and gnits for the - exchange. + * src/grep.c: reverse back to greping directories, + One could skip the error message by defining + SKIP_DIR_ERROR. There is no clear way of doing + things, I hope to setle this on the next majore release + Thanks Paul Eggert, Eli Zaretskii and gnits for the + exchange. - * tests/status.sh: add this check to make sure - That the return status code is ok. + * tests/status.sh: add this check to make sure + That the return status code is ok. 1997-10-10 Andreas Schwab - * src/grep.1: Fix formatting. + * src/grep.1: Fix formatting. - * configure.in: Check for wctype.h, wchar.h, libintl.h and - isascii, which are needed for regex.c. + * configure.in: Check for wctype.h, wchar.h, libintl.h and + isascii, which are needed for regex.c. 1997-10-01 Paul Eggert - * src/grep.c (fillbuf): Don't warn about mmap failures. + * src/grep.c (fillbuf): Don't warn about mmap failures. 1997-09-7 Alain Magloire - * src/grep.c: added code for -H --with-filename. + * src/grep.c: added code for -H --with-filename. - * djgpp/*: patch wrongly apply - duplication of text in djgpp/{README,config.h}. - Filter djgpp/config.bat with unix2dos. + * djgpp/*: patch wrongly apply + duplication of text in djgpp/{README,config.h}. + Filter djgpp/config.bat with unix2dos. - * djgpp/make.mak: beautify - From Eli Zaretskii. + * djgpp/make.mak: beautify + From Eli Zaretskii. - * grep-2.1 release. + * grep-2.1 release. 1997-09-01 Alain Magloire - * grep-2.0f out for testing. + * grep-2.0f out for testing. - * update to GNU gettext library from gettext-0.10.31 + * update to GNU gettext library from gettext-0.10.31 - * grep.c : have a nicer format for --version. - Noted by Ulrich Drepper. + * grep.c : have a nicer format for --version. + Noted by Ulrich Drepper. - * obstack.[ch]: updated from GNU C library - * configure.in: look for stdlib.h [HAVE_STDLIB_H] - Comments from Ulrich Drepper. + * obstack.[ch]: updated from GNU C library + * configure.in: look for stdlib.h [HAVE_STDLIB_H] + Comments from Ulrich Drepper. 1997-08-25 Philippe De Muyter - * src/dfa.c (sys/types.h): File included unconditionnaly. + * src/dfa.c (sys/types.h): File included unconditionnaly. 1997-08-16 Eli Zaretskii - * grep.c (long_options) [O_BINARY]: Add DOS-specific options. - (fillbuf) [O_BINARY]: For DOS-style text files, strip CR - characters at end of line. - (prline) [O_BINARY]: Report correct byte offsets, even though CR - characters were stripped when reading the file. - (usage) [O_BINARY]: Add DOS-specific options. - (setmatcher) [HAVE_SETRLIMIT]: Set re_max_failures so that the - matcher won't ever overflow the stack. - (main) [__MSDOS__, _WIN32]: Handle backslashes and drive letters - in argv[0], remove the .exe suffix, and downcase the prgram name. - [O_BINARY]: Pass additional DOS-specific options to getopt_long - and handle them. Call stat before attempting to open the file, in - case it is a directory (DOS will fail the open call for - directories). Switch the input descriptor to binary mode, unless - it is a terminal device. + * grep.c (long_options) [O_BINARY]: Add DOS-specific options. + (fillbuf) [O_BINARY]: For DOS-style text files, strip CR + characters at end of line. + (prline) [O_BINARY]: Report correct byte offsets, even though CR + characters were stripped when reading the file. + (usage) [O_BINARY]: Add DOS-specific options. + (setmatcher) [HAVE_SETRLIMIT]: Set re_max_failures so that the + matcher won't ever overflow the stack. + (main) [__MSDOS__, _WIN32]: Handle backslashes and drive letters + in argv[0], remove the .exe suffix, and downcase the prgram name. + [O_BINARY]: Pass additional DOS-specific options to getopt_long + and handle them. Call stat before attempting to open the file, in + case it is a directory (DOS will fail the open call for + directories). Switch the input descriptor to binary mode, unless + it is a terminal device. - * system.h [O_BINARY]: Define macros to switch a handle to binary - mode, so binary files could be grep'ed on MS-DOS and MS-Windows. - [HAVE_SETLOCALE]: Test for HAVE_SETLOCALE instead of - HAVE_LC_MESSAGES, to prevent compilation error in grep.c on - systems which don't define HAVE_LC_MESSAGES, but have setlocale. + * system.h [O_BINARY]: Define macros to switch a handle to binary + mode, so binary files could be grep'ed on MS-DOS and MS-Windows. + [HAVE_SETLOCALE]: Test for HAVE_SETLOCALE instead of + HAVE_LC_MESSAGES, to prevent compilation error in grep.c on + systems which don't define HAVE_LC_MESSAGES, but have setlocale. - * dosbuf.c: New file, functions specific for MS-DOS/MS-Windows. - (guess_type, undossify_input, dossified_pos): New functions. + * dosbuf.c: New file, functions specific for MS-DOS/MS-Windows. + (guess_type, undossify_input, dossified_pos): New functions. - * djgpp/config.h, djgpp/config.bat, djgpp/main.mak, djgpp/src.mak, - djgpp/po.mak, djgpp/intl.mak, djgpp/tests.mak, djgpp/po2tbl.sed: - New files, for building Grep with DJGPP tools for MS-DOS and - MS-Windows. + * djgpp/config.h, djgpp/config.bat, djgpp/main.mak, djgpp/src.mak, + djgpp/po.mak, djgpp/intl.mak, djgpp/tests.mak, djgpp/po2tbl.sed: + New files, for building Grep with DJGPP tools for MS-DOS and + MS-Windows. - * grep.1: Document DOS-specific switches. + * grep.1: Document DOS-specific switches. 1997-08-08 Alain Magloire - * grep-2.0e: available for testing + * grep-2.0e: available for testing - * grep.c: change LC_MESSAGE to LC_ALL for (LC_CTYPE). - Suggested by Jochen Hein. + * grep.c: change LC_MESSAGE to LC_ALL for (LC_CTYPE). + Suggested by Jochen Hein. - * ABOUT-NLS: updated. - * grep.c: --version: more verbosity (COPYRIGHT). - * grep.c: --help: PATTERN, FILE instead of , . - * INSTALL.grep: not necessary removed. - * configure.in: --disable-regex rename --without-include-regex. - * THANKS: format: first row name, second email. - * ChangeLog: format ISO 8601. - Reported by Franc,ois Pinard. + * ABOUT-NLS: updated. + * grep.c: --version: more verbosity (COPYRIGHT). + * grep.c: --help: PATTERN, FILE instead of , . + * INSTALL.grep: not necessary removed. + * configure.in: --disable-regex rename --without-include-regex. + * THANKS: format: first row name, second email. + * ChangeLog: format ISO 8601. + Reported by Franc,ois Pinard. - * grep.c: move dcl of struct stat st into "else" where it's used. - Reported by Jim Meyering. + * grep.c: move dcl of struct stat st into "else" where it's used. + Reported by Jim Meyering. - * grep.c: totalnl should be %u in printf. - Reported by Michael Aichlmay - Corrected with guidance from Ulrich Drepper + * grep.c: totalnl should be %u in printf. + Reported by Michael Aichlmay + Corrected with guidance from Ulrich Drepper 1997-07-24 Alain Magloire - * Makefile.am: corrected an error when installing {f,e}grep.1. - From Kaveh R. Ghazi . - From Ulrich Drepper . + * Makefile.am: corrected an error when installing {f,e}grep.1. + From Kaveh R. Ghazi . + From Ulrich Drepper . - * Many files: use PARAMS instead of __STDC__ for prototypes. - From Jim Meyering . - Patch provided by Kaveh R. Ghazi . + * Many files: use PARAMS instead of __STDC__ for prototypes. + From Jim Meyering . + Patch provided by Kaveh R. Ghazi . - * dfa.[ch]: uses the one in gawk-3.0.3 with the patch from - Arnold (see Changelog: July 12 1997) + * dfa.[ch]: uses the one in gawk-3.0.3 with the patch from + Arnold (see Changelog: July 12 1997) - * grep.1: a note to say -l, -L, -q stop on first match. - Noted by Andrew Beattie . + * grep.1: a note to say -l, -L, -q stop on first match. + Noted by Andrew Beattie . - * grep.c: refuse to scan if the file is a directory. - This was causing problems on SUNs. If the directory contains - a file that could match the pattern, garbage was display. + * grep.c: refuse to scan if the file is a directory. + This was causing problems on SUNs. If the directory contains + a file that could match the pattern, garbage was display. - * tests directory: added new set of tests from Henry Spencer - regex package. Change the way the tests were done to be more - conformant to automake. + * tests directory: added new set of tests from Henry Spencer + regex package. Change the way the tests were done to be more + conformant to automake. - * configure.in: added --disable-regex for folks with their own fuctions. + * configure.in: added --disable-regex for folks with their own fuctions. - * grep-20d : available for testing + * grep-20d : available for testing 1997-07-18 Alain Magloire - * grep-2.0c: available for testing + * grep-2.0c: available for testing 1997-07-17 Alain Magloire - * src/grep.c: Cause grep to fail if `fclose (stdout)' fails. - From Jim Meyering . + * src/grep.c: Cause grep to fail if `fclose (stdout)' fails. + From Jim Meyering . - * grep.c:usage() more consistency in the --help. + * grep.c:usage() more consistency in the --help. - * egrep, fgrep were links This is in violation of GNU standards: - "Please don't make the behavior of a utility depend on the name used - to invoke it. It is useful sometimes to make a link to a utility with - a different name, and that should not change what it does." - For now egrep and fgrep will be copies of grep. A better scheme - should be found later. - After discussion with Tom Tromey . + * egrep, fgrep were links This is in violation of GNU standards: + "Please don't make the behavior of a utility depend on the name used + to invoke it. It is useful sometimes to make a link to a utility with + a different name, and that should not change what it does." + For now egrep and fgrep will be copies of grep. A better scheme + should be found later. + After discussion with Tom Tromey . - * fgrep.man and egrep.man included: They are stubs that call grep.1. - * Makefile.am: modified to install {f,e,}grep[,.1]. + * fgrep.man and egrep.man included: They are stubs that call grep.1. + * Makefile.am: modified to install {f,e,}grep[,.1]. - * speed hack for -l, -L: bail out on first match. - From Scott Weikart . + * speed hack for -l, -L: bail out on first match. + From Scott Weikart . - * *.[ch]: provided prototypes for strict argument checking - With the help of Stewart Levin . + * *.[ch]: provided prototypes for strict argument checking + With the help of Stewart Levin . 1997-07-16 Alain Magloire - * configure.in: typo in the creation of po/Makefile - Noted by Volker Borchert bt@teknon.de. + * configure.in: typo in the creation of po/Makefile + Noted by Volker Borchert bt@teknon.de. - * grep-2.0b: make it available for testing. + * grep-2.0b: make it available for testing. 1997-07-15 Alain Magloire - * src/grep.c usage(): cut the --help in smaller printf()'s - Noted by Ulrich Drepper . + * src/grep.c usage(): cut the --help in smaller printf()'s + Noted by Ulrich Drepper . 1997-07-14 Alain Magloire - * grep-2.0a: make an alpha available for testing. + * grep-2.0a: make an alpha available for testing. 1997-07-12 Alain Magloire - * run gettextize: added the po directory filled with *.po files. + * run gettextize: added the po directory filled with *.po files. - * check.sh, scriptgen.awk: fix grep paths. + * check.sh, scriptgen.awk: fix grep paths. - * change the directory strucure: grep is now in src to comply with - gettext.m4. + * change the directory strucure: grep is now in src to comply with + gettext.m4. - * grep.c version.c [VERSION]: got rid of version.c, - it is now define via config.h. + * grep.c version.c [VERSION]: got rid of version.c, + it is now define via config.h. - * dfa.c: patch to speed up initialization. - Arnold Robbins (arnold@gnu.ai.mit.edu). + * dfa.c: patch to speed up initialization. + Arnold Robbins (arnold@gnu.ai.mit.edu). 1997-07-09 Alain Magloire - * *.c [HAVE_CONFIG_H]: Macro defined. + * *.c [HAVE_CONFIG_H]: Macro defined. - * support for I18N in Makefile.am and configure.in. + * support for I18N in Makefile.am and configure.in. - * update all the string to use gettext(I18N). - Help from Franc,ois Pinard previous patch . + * update all the string to use gettext(I18N). + Help from Franc,ois Pinard previous patch . 1997-07-04 Alain Magloire - * obstack.[ch]: updated from glibc. - Work of Ulrich Drepper . + * obstack.[ch]: updated from glibc. + Work of Ulrich Drepper . - * regex.[ch]: updated from glibc. - Work of Ulrich Drepper . + * regex.[ch]: updated from glibc. + Work of Ulrich Drepper . - * grep.c: for option -e not counting '\n' for new keys. - From Mark Waite . + * grep.c: for option -e not counting '\n' for new keys. + From Mark Waite . - * grep.c: for option -f allocating the right count. - From Andreas Schwab . - Mike Heartel (mike@cs.uoregon.edu). + * grep.c: for option -f allocating the right count. + From Andreas Schwab . + Mike Heartel (mike@cs.uoregon.edu). - * kwset.c (bmexec): Cast tp[-2] to unsigned char before comparing. - From Jim Meyering . + * kwset.c (bmexec): Cast tp[-2] to unsigned char before comparing. + From Jim Meyering . - * grep.1: various typos. - From Keith Bostic . - Mike Heartel (mike@cs.uoregon.edu). + * grep.1: various typos. + From Keith Bostic . + Mike Heartel (mike@cs.uoregon.edu). 1997-06-17 Alain Magloire - * grep.c: support for long options. - patch done by Franc,ois Pinard . + * grep.c: support for long options. + patch done by Franc,ois Pinard . - * add getopt1.c in Makefile.am. - Noted by Franc,ois Pinard + * add getopt1.c in Makefile.am. + Noted by Franc,ois Pinard - * replace getopt.[ch] and add getopt1.c. + * replace getopt.[ch] and add getopt1.c. - * kwset.c: undef malloc before define it. - Franc,ois Pinard . + * kwset.c: undef malloc before define it. + Franc,ois Pinard . 1997-06-07 Alain Magloire - * grep.c: format incorrect in - fprintf("%s: warning: %s: %s...", filename, strerror(errno)). - Mike Heartel (mike@cs.uoregon.edu). + * grep.c: format incorrect in + fprintf("%s: warning: %s: %s...", filename, strerror(errno)). + Mike Heartel (mike@cs.uoregon.edu). 1996-11-19 David J MacKenzie - * make.com: Set the logical SYS. From rdb@cocamrd.oz.au (Rodney Brown). + * make.com: Set the logical SYS. From rdb@cocamrd.oz.au (Rodney Brown). - * grep.c (S_ISREG): Define if not defined already, for e.g. - SunOS 4.0.3. + * grep.c (S_ISREG): Define if not defined already, for e.g. + SunOS 4.0.3. - * dfa.c (test_bit, set_bit, clear_bit): Renamed from tstbit, - setbit, clrbit to avoid conflict with HP-UX sys/param.h macros. + * dfa.c (test_bit, set_bit, clear_bit): Renamed from tstbit, + setbit, clrbit to avoid conflict with HP-UX sys/param.h macros. - * memchr.c: New file, from GNU libc. - * grep.c (memchr): Remove definition. - * configure.in: Use AC_REPLACE_FUNCS for memchr. + * memchr.c: New file, from GNU libc. + * grep.c (memchr): Remove definition. + * configure.in: Use AC_REPLACE_FUNCS for memchr. - * configure.in: Remove unused checks for memalign and unsigned char. - * grep.c: HAVE_WORKING_MMAP -> HAVE_MMAP. + * configure.in: Remove unused checks for memalign and unsigned char. + * grep.c: HAVE_WORKING_MMAP -> HAVE_MMAP. - * system.h: New file. - * dfa.c, kwset.c, grep.c, search.c: Use it instead of duplicating - portability boilerplate. + * system.h: New file. + * dfa.c, kwset.c, grep.c, search.c: Use it instead of duplicating + portability boilerplate. - * grep.c: Include sys/types.h once, instead of three times - conditionally. - * dfa.c, kwset.c, search.c: Include sys/types.h unconditionally, - to always try to get size_t (needed on some old SysV's). + * grep.c: Include sys/types.h once, instead of three times + conditionally. + * dfa.c, kwset.c, search.c: Include sys/types.h unconditionally, + to always try to get size_t (needed on some old SysV's). - * dfa.c: Define strchr in terms of index, not the other way around. - * search.c: Use memcpy instead of bcopy. + * dfa.c: Define strchr in terms of index, not the other way around. + * search.c: Use memcpy instead of bcopy. 1996-11-15 David J MacKenzie - * Many files: Update FSF address. - Update configuration to use autoconf v2 and automake. + * Many files: Update FSF address. + Update configuration to use autoconf v2 and automake. 1993-05-22 Mike Haertel - * Version 2.0 released. + * Version 2.0 released. -Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 - Free Software Foundation, Inc. +Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +2008, 2009 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted provided the copyright notice and this notice are preserved. diff --git a/Makefile.am b/Makefile.am index 1da554c..efec9aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,21 @@ -## Process this file with automake to create Makefile.in +# Process this file with automake to create Makefile.in +# +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# AUTOMAKE_OPTIONS = no-dependencies SUBDIRS = intl po lib doc src tests m4 vms bootstrap diff --git a/NEWS b/NEWS index 48805ef..c9f4060 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + Version 2.5.4 - This is a bugfix release. No new features. diff --git a/README b/README index f234fcb..4d6f085 100644 --- a/README +++ b/README @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + This is GNU grep, the "fastest grep in the west" (we hope). All bugs reported in previous releases have been fixed. Many exciting new bugs have probably been introduced in this revision. diff --git a/README-alpha b/README-alpha index 1d77fd4..23deff9 100644 --- a/README-alpha +++ b/README-alpha @@ -1,6 +1,13 @@ -Newer, ALPHA (i.e., unstable) versions of this code are available in CVS -on Savannah. See for details. -The main project page is at . + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + +The development source code is available via CVS from Savannah: see +. The main project page is at +. The source code in the CVS uses autotools to generate some files. Before following the instructions in the INSTALL file for compiling grep, you @@ -8,7 +15,7 @@ need to run the autogen.sh script. If you don't have the autotools installed on your system, you can download a CVS release file (generated with `make dist') from . -Official test releases are available at . +Test releases are available at . Please submit bug reports to . diff --git a/README.DOS b/README.DOS index ca3e0fa..1e350f1 100644 --- a/README.DOS +++ b/README.DOS @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + GREP DJGPP README ================= diff --git a/THANKS b/THANKS index f28de70..d62e53e 100644 --- a/THANKS +++ b/THANKS @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + Aharon Robbins Akim Demaille Alain Magloire @@ -35,7 +42,7 @@ John Hughes Jorge Stolfi Juan Manuel Guerrero Julian Foad -Karl Berry +Karl Berry Karl Heuer Kaveh R. Ghazi Kazuro Furukawa diff --git a/TODO b/TODO index b9b42c2..ce85081 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + Get sane performance with UTF-8 locales. 1) rewrite the configure.in script, perhaps also Makefile.am @@ -11,8 +18,8 @@ Get sane performance with UTF-8 locales. ## -Write Texinfo documentation for grep. The manual page would be a good -place to start, but Info documents are also supposed to contain a +Write better Texinfo documentation for grep. The manual page would be a +good place to start, but Info documents are also supposed to contain a tutorial and examples. Fix the DFA matcher to never use exponential space. (Fortunately, these @@ -36,7 +43,7 @@ Threads for grep ? GNU grep does 32 bits arithmetic, it needs to move to 64. -Clean up, to many #ifdef's !! +Clean up, too many #ifdef's !! Check some new Algorithms for matching, talk to Karl Berry and Nelson. Sunday's "Quick Search" Algorithm (CACM 33, 8 August 1990 pp. 132-142) diff --git a/autogen.sh b/autogen.sh index de32a90..5730ab1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,19 @@ #! /bin/sh +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . chmod +x tests/*.sh # fix a bug in CVS diff --git a/bootstrap/Makefile.am b/bootstrap/Makefile.am index a54af3b..c9b9a5d 100644 --- a/bootstrap/Makefile.am +++ b/bootstrap/Makefile.am @@ -1,4 +1,19 @@ ## Process this file with automake to create Makefile.in +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . AUTOMAKE_OPTIONS = no-dependencies EXTRA_DIST = Makefile.try README diff --git a/bootstrap/Makefile.try b/bootstrap/Makefile.try index 88f2caf..66b0599 100644 --- a/bootstrap/Makefile.try +++ b/bootstrap/Makefile.try @@ -1,4 +1,18 @@ +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. # +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . # Define for DOS/WIN (not including DJGPP): #OBJEXT = obj diff --git a/bootstrap/README b/bootstrap/README index cd7f402..467ff29 100644 --- a/bootstrap/README +++ b/bootstrap/README @@ -1,4 +1,9 @@ -# + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. If your system is lacking the necessary tools to build the configuration, Makefile.try is provided for bootstraping. Move Makefile.try to diff --git a/configure.ac.in b/configure.ac.in index f5a10c1..295d8ef 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -2,23 +2,25 @@ dnl dnl autoconf input file for ``GNU grep'' dnl dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -dnl 2005, 2006 the Free Software Foundation, Inc. +dnl 2005, 2006, 2009 the Free Software Foundation, Inc. dnl dnl This file is part of GNU grep. dnl -dnl GNU grep is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. +dnl Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +dnl Foundation, Inc. dnl -dnl GNU grep is distributed in the hope that it will be useful, +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 3, or (at your option) +dnl any later version. +dnl +dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl -dnl You should have received a copy of the GNU General Public License along -dnl with this program; if not, write to the Free Software Foundation, Inc., -dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see . dnl dnl Authors: dnl Alain Magloire @@ -167,4 +169,7 @@ if test x"$testpcre" = x"yes"; then AC_CHECK_LIB(pcre, pcre_exec) fi -AC_OUTPUT(Makefile lib/Makefile lib/posix/Makefile src/Makefile tests/Makefile po/Makefile.in intl/Makefile doc/Makefile m4/Makefile vms/Makefile bootstrap/Makefile, [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; echo timestamp > stamp-h]) +AC_OUTPUT(Makefile lib/Makefile lib/posix/Makefile src/Makefile +tests/Makefile po/Makefile.in intl/Makefile doc/Makefile m4/Makefile +vms/Makefile bootstrap/Makefile, [sed -e "/POTFILES =/r po/POTFILES" +po/Makefile.in > po/Makefile; echo timestamp > stamp-h]) diff --git a/doc/Makefile.am b/doc/Makefile.am index 4b11a41..f62995d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,7 +1,7 @@ # Process this file with automake to create Makefile.in # Makefile.am for grep/doc. # -# Copyright 2008 Free Software Foundation, Inc. +# Copyright 2008, 2009 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/doc/grep.texi b/doc/grep.texi index a3397fd..2714c58 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -16,8 +16,8 @@ @copying This manual is for @command{grep}, a pattern matching engine. -Copyright @copyright{} 1999, 2000, 2001, 2002, 2005, 2008 Free Software -Foundation, Inc. +Copyright @copyright{} 1999, 2000, 2001, 2002, 2005, 2008, 2009 Free +Software Foundation, Inc. @quotation Permission is granted to copy, distribute and/or modify this document @@ -53,6 +53,8 @@ Texts. A copy of the license is included in the section entitled @command{grep} prints lines that match a pattern. This manual is for version @value{VERSION} of GNU Grep. + +@insertcopying @end ifnottex @menu diff --git a/lib/Makefile.am b/lib/Makefile.am index df2c64c..0ad3558 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,3 +1,18 @@ +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . # AUTOMAKE_OPTIONS = ../src/ansi2knr diff --git a/m4/Makefile.am b/m4/Makefile.am index 29d3f21..3b9bc10 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am @@ -1,4 +1,20 @@ ## Process this file with automake to create Makefile.in +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + AUTOMAKE_OPTIONS = no-dependencies EXTRA_DIST = decl.m4 \ diff --git a/po/ChangeLog b/po/ChangeLog deleted file mode 100644 index 0873b63..0000000 --- a/po/ChangeLog +++ /dev/null @@ -1,7 +0,0 @@ -1999-02-10 Alain Magloire - - * update from ftp.iro.umontreal. - ---------- - * got a basic set of *.po from Franc,ois Pinard - ftp.iro.umontreal.ca diff --git a/po/POTFILES.in b/po/POTFILES.in index 21b4a79..b71c9e7 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,20 @@ # List of files which containing translatable strings. +# +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . src/dfa.c src/kwset.c diff --git a/src/Makefile.am b/src/Makefile.am index d68117b..c9fb26a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,20 @@ ## Process this file with automake to create Makefile.in +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + AUTOMAKE_OPTIONS = ansi2knr LN = ln diff --git a/src/dfa.h b/src/dfa.h index 9699b20..c44ac67 100644 --- a/src/dfa.h +++ b/src/dfa.h @@ -1,5 +1,5 @@ /* dfa.h - declarations for GNU deterministic regexp compiler - Copyright (C) 1988, 1998 Free Software Foundation, Inc. + Copyright (C) 1988, 1998, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/dosbuf.c b/src/dosbuf.c index 1d33adc..91c30e2 100644 --- a/src/dosbuf.c +++ b/src/dosbuf.c @@ -1,3 +1,22 @@ +/* dosbuf.c + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + /* Messy DOS-specific code for correctly treating binary, Unix text and DOS text files. diff --git a/src/getpagesize.h b/src/getpagesize.h index 198967b..7475d3f 100644 --- a/src/getpagesize.h +++ b/src/getpagesize.h @@ -1,4 +1,22 @@ /* Emulate getpagesize on systems that lack it. */ +/* Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + #ifndef HAVE_GETPAGESIZE diff --git a/src/grep.h b/src/grep.h index 67c8a4a..d23a68a 100644 --- a/src/grep.h +++ b/src/grep.h @@ -1,5 +1,5 @@ /* grep.h - interface to grep driver for searching subroutines. - Copyright (C) 1992, 1998, 2001 Free Software Foundation, Inc. + Copyright (C) 1992, 1998, 2001, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/kwset.c b/src/kwset.c index 472da14..0957f66 100644 --- a/src/kwset.c +++ b/src/kwset.c @@ -1,5 +1,5 @@ /* kwset.c - search for any of a set of keywords. - Copyright (C) 1989, 1998, 2000, 2005, 2009 + Copyright (C) 1989, 1998, 2000, 2005, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify diff --git a/src/kwset.h b/src/kwset.h index 7547949..e8dec04 100644 --- a/src/kwset.h +++ b/src/kwset.h @@ -1,5 +1,5 @@ /* kwset.h - header declaring the keyword set library. - Copyright (C) 1989, 1998, 2005 Free Software Foundation, Inc. + Copyright (C) 1989, 1998, 2005, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/mbsupport.h b/src/mbsupport.h index a96a8ff..759ea42 100644 --- a/src/mbsupport.h +++ b/src/mbsupport.h @@ -1,6 +1,6 @@ /* mbsupport.h --- Localize determination of whether we have multibyte stuff. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/search.c b/src/search.c index 0b3e0e8..b011cc7 100644 --- a/src/search.c +++ b/src/search.c @@ -1,5 +1,5 @@ /* search.c - searching subroutines using dfa, kwset and regex for grep. - Copyright 1992, 1998, 2000 Free Software Foundation, Inc. + Copyright 1992, 1998, 2000, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/system.h b/src/system.h index 576a76b..f4875ab 100644 --- a/src/system.h +++ b/src/system.h @@ -1,5 +1,5 @@ /* Portability cruft. Include after config.h and sys/types.h. - Copyright 1996, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1996, 1998, 1999, 2000, 2007, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/vms_fab.c b/src/vms_fab.c index 1fdb2c0..36d9963 100644 --- a/src/vms_fab.c +++ b/src/vms_fab.c @@ -1,4 +1,22 @@ /* + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + This macro sets up the file access block and name block for VMS. diff --git a/src/vms_fab.h b/src/vms_fab.h index 6bad650..88d154b 100644 --- a/src/vms_fab.h +++ b/src/vms_fab.h @@ -1,4 +1,22 @@ /* + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + This file includes the setup for the file access block for VMS. Written by Phillip C. Brisco 8/98. */ diff --git a/tests/Makefile.am b/tests/Makefile.am index 6ac60e6..3b98963 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,19 @@ ## Process this file with automake to create Makefile.in +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . AWK=@AWK@ diff --git a/tests/backref.sh b/tests/backref.sh index d891643..c5583f5 100755 --- a/tests/backref.sh +++ b/tests/backref.sh @@ -1,6 +1,11 @@ #! /bin/sh # Test for backreferences and other things. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. # +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/bre.awk b/tests/bre.awk index 16a5814..85b5ed3 100644 --- a/tests/bre.awk +++ b/tests/bre.awk @@ -1,3 +1,9 @@ +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. + BEGIN { FS="@"; n = 0; diff --git a/tests/bre.sh b/tests/bre.sh index eecdd3e..1a84879 100644 --- a/tests/bre.sh +++ b/tests/bre.sh @@ -1,5 +1,10 @@ #! /bin/sh # Regression test for GNU grep. +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/empty.sh b/tests/empty.sh index cae640f..73d7b6d 100644 --- a/tests/empty.sh +++ b/tests/empty.sh @@ -1,6 +1,12 @@ #! /bin/sh # test that the empty file means no pattern # and an empty pattern means match all. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/ere.awk b/tests/ere.awk index 234d219..d3d5c0e 100644 --- a/tests/ere.awk +++ b/tests/ere.awk @@ -1,3 +1,9 @@ +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. + BEGIN { FS="@"; n = 0; diff --git a/tests/ere.sh b/tests/ere.sh index 5bf1695..7dda702 100644 --- a/tests/ere.sh +++ b/tests/ere.sh @@ -1,5 +1,11 @@ #! /bin/sh # Regression test for GNU grep. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/file.sh b/tests/file.sh index c397979..e759d2d 100755 --- a/tests/file.sh +++ b/tests/file.sh @@ -1,10 +1,14 @@ #! /bin/sh -# Test for POSIX.2 options for grep -# +# Test for POSIX.2 options for grep: # grep -E -f pattern_file file # grep -F -f pattern_file file # grep -G -f pattern_file file # +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/fmbtest.sh b/tests/fmbtest.sh index d2e3e09..211f907 100755 --- a/tests/fmbtest.sh +++ b/tests/fmbtest.sh @@ -1,4 +1,9 @@ #! /bin/sh +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/foad1.sh b/tests/foad1.sh index db066b2..9f855a1 100755 --- a/tests/foad1.sh +++ b/tests/foad1.sh @@ -1,5 +1,12 @@ #! /bin/sh # Test various combinations of command-line options. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# # This set of tests was started by Julian Foad. : ${GREP=../src/grep} diff --git a/tests/khadafy.sh b/tests/khadafy.sh index 141b3d8..4101122 100644 --- a/tests/khadafy.sh +++ b/tests/khadafy.sh @@ -1,5 +1,11 @@ #! /bin/sh # Regression test for GNU grep. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} : ${GREP=../src/grep} diff --git a/tests/options.sh b/tests/options.sh index 3415018..3cd4cd0 100644 --- a/tests/options.sh +++ b/tests/options.sh @@ -1,12 +1,17 @@ #! /bin/sh # Test for POSIX.2 options for grep # +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# # grep [ -E| -F][ -c| -l| -q ][-insvx] -e pattern_list # [-f pattern_file] ... [file. ..] # grep [ -E| -F][ -c| -l| -q ][-insvx][-e pattern_list] # -f pattern_file ... [file ...] # grep [ -E| -F][ -c| -l| -q ][-insvx] pattern_list [file...] -# : ${srcdir=.} diff --git a/tests/pcre.sh b/tests/pcre.sh index c5c791b..e7f2fc7 100755 --- a/tests/pcre.sh +++ b/tests/pcre.sh @@ -1,5 +1,11 @@ #! /bin/sh # Regression test for GNU grep. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${GREP=../src/grep} diff --git a/tests/spencer1.awk b/tests/spencer1.awk index 3202bd3..07abecb 100644 --- a/tests/spencer1.awk +++ b/tests/spencer1.awk @@ -1,3 +1,10 @@ +# Copyright (C) 1988 Henry Spencer. +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. + BEGIN { FS = "@"; printf ("failures=0\n"); diff --git a/tests/spencer1.sh b/tests/spencer1.sh index f09b3fa..68ce948 100644 --- a/tests/spencer1.sh +++ b/tests/spencer1.sh @@ -1,5 +1,11 @@ #! /bin/sh # Regression test for GNU grep. +# Copyright (C) 1988 Henry Spencer. +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/spencer2.sh b/tests/spencer2.sh index abaa926..fe65a65 100644 --- a/tests/spencer2.sh +++ b/tests/spencer2.sh @@ -1,5 +1,12 @@ #! /bin/sh # Regression test for GNU grep. +# +# Copyright (C) 1988 Henry Spencer. +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/status.sh b/tests/status.sh index b94187b..6cca556 100644 --- a/tests/status.sh +++ b/tests/status.sh @@ -4,6 +4,12 @@ # 0 match found # 1 no match # 2 file not found +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/tests b/tests/tests index 8ed938d..c9f1350 100644 --- a/tests/tests +++ b/tests/tests @@ -1,4 +1,11 @@ # regular expression test set +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# # Lines are at least three fields, separated by one or more tabs. "" stands # for an empty field. First field is an RE. Second field is flags. If # C flag given, regcomp() is expected to fail, and the third field is the diff --git a/tests/warning.sh b/tests/warning.sh index 5df806b..7180bd6 100644 --- a/tests/warning.sh +++ b/tests/warning.sh @@ -1,6 +1,11 @@ #! /bin/sh -# # Tell them not to be alarmed. +# +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. : ${srcdir=.} diff --git a/tests/yesno.sh b/tests/yesno.sh index 0f25e00..4852a33 100755 --- a/tests/yesno.sh +++ b/tests/yesno.sh @@ -1,5 +1,12 @@ #! /bin/sh # Test feature interaction of -C, -v, -o, and -m. +# +# Copyright (C) 2001, 2006, 2009 Free Software Foundation, Inc. +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# # This set of tests was started by Charles Levert. : ${GREP=../src/grep} diff --git a/vms/Makefile.am b/vms/Makefile.am index 27cf86b..828833b 100644 --- a/vms/Makefile.am +++ b/vms/Makefile.am @@ -1,4 +1,19 @@ ## Process this file with automake to create Makefile.in +# Copyright 1997, 1998, 2005, 2006, 2007, 2008, 2009 Free Software +# Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . AUTOMAKE_OPTIONS = no-dependencies EXTRA_DIST = README make.com config_vms.h diff --git a/vms/README b/vms/README index b477dbb..f49374b 100644 --- a/vms/README +++ b/vms/README @@ -1,3 +1,10 @@ + Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + ** VMS Warning: untested diff --git a/vms/config_vms.h b/vms/config_vms.h index e97c31a..f6936c8 100644 --- a/vms/config_vms.h +++ b/vms/config_vms.h @@ -1,5 +1,23 @@ /* Configuration file for OpenVMS */ +/* Copyright (C) 1992, 1997, 1998, 1999, 2000, 2001, 2002, 2004, + 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + #define HAVE_STRING_H 1 #define HAVE_MEMCHAR