diff options
| author | Ron Yorston <rmy@pobox.com> | 2014-01-13 17:58:06 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2014-01-13 17:58:06 +0000 |
| commit | 1a3717342d6d3e774e4e2171eb8ea81945ec918e (patch) | |
| tree | 06d332ed1bfa1946a3a754f3ff749e238082a17b | |
| parent | c7ae26e1793f3859a5adebd03c0b0485ce6f31ea (diff) | |
| download | busybox-w32-1a3717342d6d3e774e4e2171eb8ea81945ec918e.tar.gz busybox-w32-1a3717342d6d3e774e4e2171eb8ea81945ec918e.tar.bz2 busybox-w32-1a3717342d6d3e774e4e2171eb8ea81945ec918e.zip | |
awk: treat \r as a space character to skip
| -rw-r--r-- | editors/awk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c index d0e3781e7..3d2183e5e 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
| @@ -723,7 +723,11 @@ static char *skip_spaces(char *p) | |||
| 723 | if (*p == '\\' && p[1] == '\n') { | 723 | if (*p == '\\' && p[1] == '\n') { |
| 724 | p++; | 724 | p++; |
| 725 | t_lineno++; | 725 | t_lineno++; |
| 726 | #if !ENABLE_PLATFORM_MINGW32 | ||
| 726 | } else if (*p != ' ' && *p != '\t') { | 727 | } else if (*p != ' ' && *p != '\t') { |
| 728 | #else | ||
| 729 | } else if (*p != ' ' && *p != '\t' && *p != '\r') { | ||
| 730 | #endif | ||
| 727 | break; | 731 | break; |
| 728 | } | 732 | } |
| 729 | p++; | 733 | p++; |
