From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 08:42:52 2011 Received: (at submit) by debbugs.gnu.org; 18 Jul 2011 12:42:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qin9v-0002DF-4R for submit@debbugs.gnu.org; Mon, 18 Jul 2011 08:42:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QilqL-0007wd-Ma for submit@debbugs.gnu.org; Mon, 18 Jul 2011 07:18:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QilqF-00043r-7j for submit@debbugs.gnu.org; Mon, 18 Jul 2011 07:18:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:55017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QilqE-00043m-To for submit@debbugs.gnu.org; Mon, 18 Jul 2011 07:18:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QilqD-0004YL-Cy for bug-coreutils@gnu.org; Mon, 18 Jul 2011 07:18:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QilqB-00043Q-I0 for bug-coreutils@gnu.org; Mon, 18 Jul 2011 07:18:24 -0400 Received: from mail-out1.uio.no ([129.240.10.57]:38305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QilqB-00043I-52 for bug-coreutils@gnu.org; Mon, 18 Jul 2011 07:18:23 -0400 Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1Qilq8-0000kk-JN for bug-coreutils@gnu.org; Mon, 18 Jul 2011 13:18:20 +0200 Received: from bombur.uio.no ([129.240.6.233]) by mail-mx3.uio.no with esmtp (Exim 4.76) (envelope-from ) id 1Qilq8-0006EK-93; Mon, 18 Jul 2011 13:18:20 +0200 Received: from hbf by bombur.uio.no with local (Exim 4.72) (envelope-from ) id 1Qilq8-0002zg-7P; Mon, 18 Jul 2011 13:18:20 +0200 Date: Mon, 18 Jul 2011 13:18:20 +0200 Message-Id: From: Hallvard B Furuseth To: bug-coreutils@gnu.org Subject: Bug in unexpand --all of X-UiO-Ratelimit-Test: rcpts/h 2 msgs/h 1 sum rcpts/h 4 sum msgs/h 1 total rcpts 1520 max rcpts/h 17 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-6.0, required=5.0, autolearn=disabled, RP_MATCHES_RCVD=-1.012, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: C7EDD6A077D0245D297537B15263104B4603FCCD X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -59 maxlevel 80 minaction 1 bait 0 mail/h: 1 total 657 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Jul 2011 08:42:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Unexpand --all of <7 printables, 2-8 spaces, tab, word> loses a tab. perl -lwe 'print 1234567, " " x $_, "\t$_" for (1..9)' | unexpand --all --> 1234567 1 1234567 2 1234567 3 1234567 4 1234567 5 1234567 6 1234567 7 1234567 8 1234567 9 Coreutils-8.12. Old bug, has existed at least since version 6.8. -- Hallvard From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 11:27:30 2011 Received: (at 9116) by debbugs.gnu.org; 18 Jul 2011 15:27:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QipjG-00061E-5G for submit@debbugs.gnu.org; Mon, 18 Jul 2011 11:27:30 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QipjD-000612-Vn for 9116@debbugs.gnu.org; Mon, 18 Jul 2011 11:27:28 -0400 Received: (qmail 80270 invoked from network); 18 Jul 2011 15:27:21 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 18 Jul 2011 15:27:21 -0000 Message-ID: <4E245057.5000206@draigBrady.com> Date: Mon, 18 Jul 2011 16:25:11 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Hallvard B Furuseth Subject: Re: bug#9116: Bug in unexpand --all of References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9116 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 18/07/11 12:18, Hallvard B Furuseth wrote: > Unexpand --all of <7 printables, 2-8 spaces, tab, word> loses a tab. > > perl -lwe 'print 1234567, " " x $_, "\t$_" for (1..9)' | unexpand --all > --> > 1234567 1 > 1234567 2 > 1234567 3 > 1234567 4 > 1234567 5 > 1234567 6 > 1234567 7 > 1234567 8 > 1234567 9 > > Coreutils-8.12. Old bug, has existed at least since version 6.8. Yep, 5.97 has the same issue at least. Interestingly the i18n patch gets it right: $ printf "1234567 \t8\n" | unexpand -a 1234567 8 $ printf "1234567 \t8\n" | LANG=C unexpand -a 1234567 8 Looking at this for a few minutes suggests the following patch. Though it's probably wrong, as I'm not sure why the current code is not converting the trailing space in a field to a tab, which is even enforced with test misc/unexpand::infloop-3. Note the i18n patch does not maintain this trailing space, nor does freebsd, which is what I'd expect. $ printf "[ \t\t ]\n" | unexpand -t 2,3 | tr '\t ' ts [ttts] $ printf "[ \t\t ]\n" | LANG=C unexpand -t 2,3 | tr '\t ' ts [stts] I'll look at this later this evening. cheers, Pádraig. diff --git a/src/unexpand.c b/src/unexpand.c index 0014375..1489c4b 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -381,11 +381,14 @@ unexpand (void) /* Discard pending blanks, unless it was a single blank just before the previous tab stop. */ - if (! (pending == 1 && one_blank_before_tab_stop)) + if (one_blank_before_tab_stop) { - pending = 0; + pending = 1; + pending_blank[0] = '\t'; one_blank_before_tab_stop = false; } + else + pending = 0; } else { From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 19:55:33 2011 Received: (at 9116) by debbugs.gnu.org; 18 Jul 2011 23:55:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qixev-0001Nq-Dt for submit@debbugs.gnu.org; Mon, 18 Jul 2011 19:55:33 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qixes-0001Nc-Tl for 9116@debbugs.gnu.org; Mon, 18 Jul 2011 19:55:32 -0400 Received: (qmail 48134 invoked from network); 18 Jul 2011 23:55:24 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 18 Jul 2011 23:55:24 -0000 Message-ID: <4E24C768.5050609@draigBrady.com> Date: Tue, 19 Jul 2011 00:53:12 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Hallvard B Furuseth Subject: Re: bug#9116: Bug in unexpand --all of References: <4E245057.5000206@draigBrady.com> In-Reply-To: <4E245057.5000206@draigBrady.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9116 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 18/07/11 16:25, Pádraig Brady wrote: > On 18/07/11 12:18, Hallvard B Furuseth wrote: >> Unexpand --all of <7 printables, 2-8 spaces, tab, word> loses a tab. >> >> perl -lwe 'print 1234567, " " x $_, "\t$_" for (1..9)' | unexpand --all >> --> >> 1234567 1 >> 1234567 2 >> 1234567 3 >> 1234567 4 >> 1234567 5 >> 1234567 6 >> 1234567 7 >> 1234567 8 >> 1234567 9 >> >> Coreutils-8.12. Old bug, has existed at least since version 6.8. > > Yep, 5.97 has the same issue at least. > Interestingly the i18n patch gets it right: > > $ printf "1234567 \t8\n" | unexpand -a > 1234567 8 > $ printf "1234567 \t8\n" | LANG=C unexpand -a > 1234567 8 > > Looking at this for a few minutes suggests the following patch. > Though it's probably wrong, as I'm not sure why the current > code is not converting the trailing space in a field to a tab, > which is even enforced with test misc/unexpand::infloop-3. > Note the i18n patch does not maintain this trailing space, > nor does freebsd, which is what I'd expect. > > $ printf "[ \t\t ]\n" | unexpand -t 2,3 | tr '\t ' ts > [ttts] > $ printf "[ \t\t ]\n" | LANG=C unexpand -t 2,3 | tr '\t ' ts > [stts] > > I'll look at this later this evening. Actually POSIX is quite specific and my reading is that a space before tabstop should be preserved iff it's the only blank before tabstop and it isn't followed by another blank. In that sense, both i18n patched unexpand and current coreutils get this wrong. The following seems to conform to POSIX and will need tests/misc/unexpand tweaked. I'll clean this up and add some tests tomorrow. Note the change that seemed to introduce this issue, was to adjust as per POSIX, and was added in 5.3.0 diff --git a/src/unexpand.c b/src/unexpand.c index 0014375..53b5a18 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -379,13 +379,8 @@ unexpand (void) { column = next_tab_column; - /* Discard pending blanks, unless it was a single - blank just before the previous tab stop. */ - if (! (pending == 1 && one_blank_before_tab_stop)) - { - pending = 0; - one_blank_before_tab_stop = false; - } + if (pending) + pending_blank[0] = '\t'; } else { @@ -404,8 +399,11 @@ unexpand (void) /* Replace the pending blanks by a tab or two. */ pending_blank[0] = c = '\t'; - pending = one_blank_before_tab_stop; } + + /* Discard pending blanks, unless it was a single + blank just before the previous tab stop. */ + pending = one_blank_before_tab_stop; } } else if (c == '\b') cheers, Pâdraig. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 03:32:29 2011 Received: (at 9116) by debbugs.gnu.org; 19 Jul 2011 07:32:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj4n6-000314-En for submit@debbugs.gnu.org; Tue, 19 Jul 2011 03:32:29 -0400 Received: from mail-out2.uio.no ([129.240.10.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj4Uc-0002aC-0r for 9116@debbugs.gnu.org; Tue, 19 Jul 2011 03:13:23 -0400 Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1Qj4UV-0003e8-So; Tue, 19 Jul 2011 09:13:15 +0200 Received: from bombur.uio.no ([129.240.6.233]) by mail-mx4.uio.no with esmtp (Exim 4.76) (envelope-from ) id 1Qj4UV-00070w-IM; Tue, 19 Jul 2011 09:13:15 +0200 Received: from hbf by bombur.uio.no with local (Exim 4.72) (envelope-from ) id 1Qj4UV-0007vU-5S; Tue, 19 Jul 2011 09:13:15 +0200 From: Hallvard B Furuseth MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: Date: Tue, 19 Jul 2011 09:13:15 +0200 To: =?ISO-8859-1?Q?P=E1draig_Brady?= Subject: Re: bug#9116: Bug in unexpand --all of In-Reply-To: <4E24C768.5050609@draigBrady.com> References: <4E245057.5000206@draigBrady.com> <4E24C768.5050609@draigBrady.com> X-Mailer: VM 7.18 under Emacs 22.2.1 X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 1 sum rcpts/h 4 sum msgs/h 1 total rcpts 1523 max rcpts/h 17 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-6.0, required=5.0, autolearn=disabled, RP_MATCHES_RCVD=-1.012, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 51FF8F55C326A8247C8279B2CABD9D2F43EBFEBD X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -59 maxlevel 80 minaction 1 bait 0 mail/h: 1 total 658 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9116 X-Mailman-Approved-At: Tue, 19 Jul 2011 03:32:27 -0400 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) P=E1draig Brady writes: > Actually POSIX is quite specific and my reading > is that a space before tabstop should be preserved > iff it's the only blank before tabstop and it > isn't followed by another blank. >=20 > In that sense, both i18n patched unexpand > and current coreutils get this wrong. Coreutils 5.12 gets that right in my test: 1st output line is "12345671". But now that you mention it, an option to never output the sequence would be nice. --=20 Hallvard From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 03:32:29 2011 Received: (at 9116) by debbugs.gnu.org; 19 Jul 2011 07:32:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj4n7-000318-Fm for submit@debbugs.gnu.org; Tue, 19 Jul 2011 03:32:29 -0400 Received: from mail-out2.uio.no ([129.240.10.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj4WL-0002d8-Jw for 9116@debbugs.gnu.org; Tue, 19 Jul 2011 03:15:10 -0400 Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out2.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1Qj4WG-00043d-4o; Tue, 19 Jul 2011 09:15:04 +0200 Received: from bombur.uio.no ([129.240.6.233]) by mail-mx2.uio.no with esmtp (Exim 4.76) (envelope-from ) id 1Qj4WF-0001JZ-QA; Tue, 19 Jul 2011 09:15:04 +0200 Received: from hbf by bombur.uio.no with local (Exim 4.72) (envelope-from ) id 1Qj4WF-0007wy-OT; Tue, 19 Jul 2011 09:15:03 +0200 From: Hallvard B Furuseth MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 19 Jul 2011 09:15:03 +0200 To: =?ISO-8859-1?Q?P=E1draig_Brady?= Subject: Re: bug#9116: Bug in unexpand --all of In-Reply-To: References: <4E245057.5000206@draigBrady.com> <4E24C768.5050609@draigBrady.com> X-Mailer: VM 7.18 under Emacs 22.2.1 X-UiO-Ratelimit-Test: rcpts/h 6 msgs/h 2 sum rcpts/h 7 sum msgs/h 2 total rcpts 1526 max rcpts/h 17 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-6.0, required=5.0, autolearn=disabled, RP_MATCHES_RCVD=-1.012, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 381743DFD01C8FE9E34ACAA029DA6A2E8C88B180 X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -59 maxlevel 80 minaction 1 bait 0 mail/h: 2 total 659 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9116 X-Mailman-Approved-At: Tue, 19 Jul 2011 03:32:27 -0400 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hallvard B Furuseth writes: > Coreutils 5.12 gets that right in my test: > 1st output line is "12345671". Oops, coreutils 8.12. > But now that you mention it, an option to never > output the sequence would be nice. -- Hallvard From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 05:43:41 2011 Received: (at 9116) by debbugs.gnu.org; 19 Jul 2011 09:43:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj6q5-0005vg-0E for submit@debbugs.gnu.org; Tue, 19 Jul 2011 05:43:41 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qj6q2-0005vM-5i for 9116@debbugs.gnu.org; Tue, 19 Jul 2011 05:43:39 -0400 Received: (qmail 15973 invoked from network); 19 Jul 2011 09:43:31 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 19 Jul 2011 09:43:31 -0000 Message-ID: <4E25513E.6060100@draigBrady.com> Date: Tue, 19 Jul 2011 10:41:18 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Hallvard B Furuseth Subject: Re: bug#9116: Bug in unexpand --all of References: <4E245057.5000206@draigBrady.com> <4E24C768.5050609@draigBrady.com> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9116 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 19/07/11 08:13, Hallvard B Furuseth wrote: > Pádraig Brady writes: >> Actually POSIX is quite specific and my reading >> is that a space before tabstop should be preserved >> iff it's the only blank before tabstop and it >> isn't followed by another blank. >> >> In that sense, both i18n patched unexpand >> and current coreutils get this wrong. > > Coreutils 5.12 gets that right in my test: > 1st output line is "12345671". That's incorrect according to POSIX. The space should be converted to tab as it's followed by a blank. > But now that you mention it, an option to never > output the sequence would be nice. >From my reading of POSIX, that's what it specifies. cheers, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 19 06:42:35 2011 Received: (at 9116) by debbugs.gnu.org; 19 Jul 2011 10:42:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj7l5-0007Gp-7l for submit@debbugs.gnu.org; Tue, 19 Jul 2011 06:42:35 -0400 Received: from mail-out1.uio.no ([129.240.10.57]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qj7kz-0007GW-Pw for 9116@debbugs.gnu.org; Tue, 19 Jul 2011 06:42:31 -0400 Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1Qj7kt-00069B-75; Tue, 19 Jul 2011 12:42:23 +0200 Received: from bombur.uio.no ([129.240.6.233]) by mail-mx4.uio.no with esmtp (Exim 4.76) (envelope-from ) id 1Qj7ks-0001vO-Rl; Tue, 19 Jul 2011 12:42:23 +0200 Received: from hbf by bombur.uio.no with local (Exim 4.72) (envelope-from ) id 1Qj7ks-0003y9-KD; Tue, 19 Jul 2011 12:42:22 +0200 From: Hallvard B Furuseth MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: Date: Tue, 19 Jul 2011 12:42:22 +0200 To: =?ISO-8859-1?Q?P=E1draig_Brady?= Subject: Re: bug#9116: Bug in unexpand --all of In-Reply-To: <4E25513E.6060100@draigBrady.com> References: <4E245057.5000206@draigBrady.com> <4E24C768.5050609@draigBrady.com> <4E25513E.6060100@draigBrady.com> X-Mailer: VM 7.18 under Emacs 22.2.1 X-UiO-Ratelimit-Test: rcpts/h 3 msgs/h 1 sum rcpts/h 6 sum msgs/h 2 total rcpts 1529 max rcpts/h 17 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-6.5, required=5.0, autolearn=disabled, RP_MATCHES_RCVD=-1.456, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 4115A0D378C783DA9527C3E4C6BAA355EE848EF6 X-UiO-SPAM-Test: remote_host: 129.240.6.233 spam_score: -64 maxlevel 80 minaction 1 bait 0 mail/h: 1 total 660 max/h 5 blacklist 0 greylist 0 ratelimit 0 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9116 Cc: 9116@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) P=E1draig Brady writes: >On 19/07/11 08:13, Hallvard B Furuseth wrote: >> Coreutils 5.12 gets that right in my test: >> 1st output line is "12345671". >=20 > That's incorrect according to POSIX. > The space should be converted to tab as > it's followed by a blank. Duh, sorry. I read "...immediately preceding a tab stop" as "...immediately preceding a ". The manpage about this is wrong too: "-a, --all convert all blanks, instead of just initial blanks" No, not single spaces that happen to be just before a tab stop. --=20 Hallvard From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 20 09:02:07 2011 Received: (at control) by debbugs.gnu.org; 20 Jul 2011 13:02:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjWPe-0003MY-Ha for submit@debbugs.gnu.org; Wed, 20 Jul 2011 09:02:07 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QjWPb-0003M4-Ha for control@debbugs.gnu.org; Wed, 20 Jul 2011 09:02:04 -0400 Received: (qmail 54253 invoked from network); 20 Jul 2011 13:01:56 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 20 Jul 2011 13:01:56 -0000 Message-ID: <4E26D13A.5010400@draigBrady.com> Date: Wed, 20 Jul 2011 13:59:38 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: closing 9116 X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) package coreutils close 9116 8.13 From unknown Fri Aug 15 18:09:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Aug 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator