|
From: | Bruce Korb |
Subject: | Re: [PATCH] uudecode doesn't work on files with DOS line endings |
Date: | Fri, 28 Apr 2006 07:27:19 -0700 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20050923) |
Pavel Roskin wrote:
Hello! uudecode from GNU sharutils 4.6.2 cannot decode files with DOS newlines
Thanks, Pavel. I'll drop the next rev "pretty soon". Cheers - Bruce
--- ChangeLog +++ ChangeLog @@ -1 +1,6 @@ +2006-04-26 Pavel Roskin <address@hidden> + + * uudecode.c (read_stduu): Allow characters other than '\n' + after "end", such as the DOS style newline "\r\n". + 2006-03-24 Santiago Vila <address@hidden> --- src/uudecode.c +++ src/uudecode.c @@ -162,7 +162,7 @@ read_stduu (inname, outname) }if (fgets (buf, sizeof(buf), stdin) == NULL- || strcmp (buf, "end\n")) + || strncmp (buf, "end", 3)) { error (0, 0, _("%s: No `end' line"), inname); return 1;
[Prev in Thread] | Current Thread | [Next in Thread] |