GNU bug report logs - #11933
ambiguous "stty --help" text

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Fri, 13 Jul 2012 13:57:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11933 in the body.
You can then email your comments to 11933 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#11933; Package coreutils. (Fri, 13 Jul 2012 13:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 13 Jul 2012 13:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-coreutils <at> gnu.org, Michael Stummvoll <michael <at> stummi.org>,
	translation-team-de <at> lists.sourceforge.net
Subject: ambiguous "stty --help" text
Date: Fri, 13 Jul 2012 15:53:14 +0200
Hi coreutils maintainers,

"stty --help" produces the output

   [-]parodd     set odd parity (even with `-')

When looking at the code and "man termios", which says:

       PARODD If set, then parity for input and output is odd; otherwise
              even parity is used.

it is clear that option '-parodd' means the opposite of option 'parodd'.
But the German translator misunderstood this line twice (even after being
pointed to the fact that it's ambiguous), as if it was

   [-]parodd     set odd parity (believe it or not, also with `-')

Can this ambiguity please be fixed at the root, in the English source
code? Here is a proposed patch (apply with "patch -p0"):


2012-07-13  Bruno Haible  <bruno <at> clisp.org>

	stty: Clarify meaning of '-parodd'.
	* src/stty.c (usage): Disambiguate explanation of -parodd.
	Reported by Michael Stummvoll <michael <at> stummi.org>.

--- src/stty.c.orig	Fri Jul 13 15:44:17 2012
+++ src/stty.c	Fri Jul 13 15:40:47 2012
@@ -583,7 +583,7 @@
    [-]hup        send a hangup signal when the last process closes the tty\n\
    [-]hupcl      same as [-]hup\n\
    [-]parenb     generate parity bit in output and expect parity bit in input\n\
-   [-]parodd     set odd parity (even with '-')\n\
+   [-]parodd     set odd parity (or even parity with '-')\n\
 "), stdout);
       fputs (_("\
 \n\





Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Fri, 13 Jul 2012 14:16:02 GMT) Full text and rfc822 format available.

Notification sent to Bruno Haible <bruno <at> clisp.org>:
bug acknowledged by developer. (Fri, 13 Jul 2012 14:16:03 GMT) Full text and rfc822 format available.

Message #10 received at 11933-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Bruno Haible <bruno <at> clisp.org>
Cc: translation-team-de <at> lists.sourceforge.net, michael <at> stummi.org,
	11933-done <at> debbugs.gnu.org
Subject: Re: bug#11933: ambiguous "stty --help" text
Date: Fri, 13 Jul 2012 15:09:59 +0100
On 07/13/2012 02:53 PM, Bruno Haible wrote:
> Hi coreutils maintainers,
> 
> "stty --help" produces the output
> 
>    [-]parodd     set odd parity (even with `-')
> 
> When looking at the code and "man termios", which says:
> 
>        PARODD If set, then parity for input and output is odd; otherwise
>               even parity is used.
> 
> it is clear that option '-parodd' means the opposite of option 'parodd'.
> But the German translator misunderstood this line twice (even after being
> pointed to the fact that it's ambiguous), as if it was
> 
>    [-]parodd     set odd parity (believe it or not, also with `-')

:)
Pushed.

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#11933; Package coreutils. (Fri, 13 Jul 2012 15:47:01 GMT) Full text and rfc822 format available.

Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Stummvoll <michael <at> stummi.org>
To: Bruno Haible <bruno <at> clisp.org>, bug-coreutils <at> gnu.org,
	translation-team-de <at> lists.sourceforge.net
Subject: Re: ambiguous "stty --help" text
Date: Fri, 13 Jul 2012 16:22:33 +0200
Hi,

Thanks for pushing this to bug-coreutils. I never thought about this
for myself.

> +   [-]parodd     set odd parity (or even parity with '-')\n\

another (and maybe clearer) way could be:

        parodd      set odd parity
       -parodd      set even parity

but I am not sure, cause it breaks with the notation of all the other
options.

Kind regards,
Michael




Information forwarded to bug-coreutils <at> gnu.org:
bug#11933; Package coreutils. (Fri, 13 Jul 2012 17:51:01 GMT) Full text and rfc822 format available.

Message #16 received at 11933 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Michael Stummvoll <michael <at> stummi.org>
Cc: translation-team-de <at> lists.sourceforge.net, bruno <at> clisp.org,
	11933 <at> debbugs.gnu.org
Subject: Re: bug#11933: ambiguous "stty --help" text
Date: Fri, 13 Jul 2012 19:45:04 +0200
On 07/13/2012 04:22 PM, Michael Stummvoll wrote:
> Hi,
> 
> Thanks for pushing this to bug-coreutils. I never thought about this
> for myself.
> 
>> +   [-]parodd     set odd parity (or even parity with '-')\n\
> 
> another (and maybe clearer) way could be:
> 
>         parodd      set odd parity
>        -parodd      set even parity
> 
> but I am not sure, cause it breaks with the notation of all the other
> options.
>
What about the following?

   [-]parodd     set parity (even parity with '-', odd parity otherwise)

Regards,
  Stefano




Information forwarded to bug-coreutils <at> gnu.org:
bug#11933; Package coreutils. (Sun, 15 Jul 2012 15:08:02 GMT) Full text and rfc822 format available.

Message #19 received at 11933 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: translation-team-de <at> lists.sourceforge.net, 11933 <at> debbugs.gnu.org,
	Michael Stummvoll <michael <at> stummi.org>
Subject: Re: bug#11933: ambiguous "stty --help" text
Date: Sun, 15 Jul 2012 16:55:20 +0200
Stefano Lattarini wrote:
> What about the following?
> 
>    [-]parodd     set parity (even parity with '-', odd parity otherwise)

It's correct, but sounds strange, because it suggests that the main
purpose of this option is to get even parity. As always, the first thing
one mentions is the most important or intended one.

Bruno





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Aug 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.