mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Fix the case when record separator is 'Z' letter
Sense high spaces for -d option too
This commit is contained in:
parent
26241f6368
commit
d0708a4e88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93156
@ -312,7 +312,7 @@ settables(gflags)
|
||||
if (islower(i)) {
|
||||
Ftable[i] = Ftable[toupper(i)];
|
||||
RFtable[i] = RFtable[toupper(i)];
|
||||
} else if (REC_D>= 'A' && REC_D < 'Z' && i < 'a' && i > REC_D) {
|
||||
} else if (REC_D >= 'A' && REC_D <= 'Z' && i < 'a' && i > REC_D) {
|
||||
Ftable[i] = i + 1;
|
||||
RFtable[i] = Rascii[i] - 1;
|
||||
} else {
|
||||
@ -326,7 +326,11 @@ settables(gflags)
|
||||
else
|
||||
itable[i] = 0;
|
||||
|
||||
if (i == '\n' || i == '\t' || i == ' ' || isalnum(i))
|
||||
if ( isalnum(i)
|
||||
|| ( isspace(i)
|
||||
&& (i == '\n' || i == '\t' || isprint(i))
|
||||
)
|
||||
)
|
||||
dtable[i] = 1;
|
||||
else
|
||||
dtable[i] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user