summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2018-06-26 17:04:02 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2018-06-26 17:04:02 +0000
commit6d8fa98d5167bdd915ce1e32bcb6aaed078e5938 (patch)
treec233ab9c905e39f085ebdbf1fa9f136e44b20157
parent2ede5a4b4a98add3bbf982f5805e015e8c61c565 (diff)
downloadpcre-6d8fa98d5167bdd915ce1e32bcb6aaed078e5938.tar.gz
Fix typos in pcrgrep.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1736 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--ChangeLog5
-rw-r--r--pcregrep.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 571dec8..0c06c22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,11 @@ The wrapper could never handle such patterns because it wraps patterns in
this, that is, move the wrapping till after any existing start-of-pattern
special settings.
+3. "pcre2grep" (sic) was accidentally mentioned in an error message (fix was
+ported from PCRE2).
+
+4. Typo LCC_ALL for LC_ALL fixed in pcregrep.
+
Version 8.42 20-March-2018
--------------------------
diff --git a/pcregrep.c b/pcregrep.c
index a406be9..5982406 100644
--- a/pcregrep.c
+++ b/pcregrep.c
@@ -2252,7 +2252,7 @@ if (isdirectory(pathname))
int fnlength = strlen(pathname) + strlen(nextfile) + 2;
if (fnlength > 2048)
{
- fprintf(stderr, "pcre2grep: recursive filename is too long\n");
+ fprintf(stderr, "pcregrep: recursive filename is too long\n");
rc = 2;
break;
}
@@ -3034,7 +3034,7 @@ LC_ALL environment variable is set, and if so, use it. */
if (locale == NULL)
{
locale = getenv("LC_ALL");
- locale_from = "LCC_ALL";
+ locale_from = "LC_ALL";
}
if (locale == NULL)