Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-11-06 Thread Simon Paillard
tag 609034 +fixed-upstream
thanks 

On Thu, Jan 06, 2011 at 10:05:18AM +0100, Vincent Lefevre wrote:
 On 2011-01-06 09:45:33 +0100, Denis Barbier wrote:
  After more thinking I also agree that operand is misleading in this
  context.  As type flottant réel seems to not be widely used, it is
  IMO better to be more explicit in French.  Here is another try:
  
Les opérations de relation usuelles (comme , « inférieur à ») échouent
si l'un des paramètres vaut NaN (« Not a Number », ce qui signifie « pas
un nombre »), et déclenchent une exception. Pour l'éviter, C99 définit
ces macros. Elles garantissent de n'évaluer leurs paramètres qu'une
seule fois. Les paramètres peuvent être de n'importe quel type flottant
réel (float, double ou long double).
 
 OK.

Denis commited that upstream in perkamon-fr 3.32-1:
http://gitorious.org/perkamon/man-pages-fr/commit/e8c218636039 

-- 
Simon Paillard



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-01-06 Thread Denis Barbier
On 2011/1/6 Vincent Lefevre wrote:
 On 2011-01-05 22:09:13 +0100, Denis Barbier wrote:
  The French isgreater(3) man page says:
 
   L'opérateur  normal  de relation (comme , « inférieur à ») échouera si
   l'un des opérandes est le non nombre NaN. Ceci déclenche une exception.
   Pour  l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer
   leurs opérandes qu'une seule fois. Les opérandes peuvent être n'importe
   quel type réel.
 
  This is incorrect, and it has been incorrectly translated from the
  English version, which says:
 
   The  normal  relation operations (like , less than) will fail if one
   of the operands is NaN.  This will cause an exception.  To avoid  this,
   C99  defines these macros.  The macros are guaranteed to evaluate their
   operands only once.  The operands can be  of  any  real  floating-point
   type.
 
  So, type réel should be replaced by something like type flottant réel
  (I don't know the correct term in French).

 Thanks for your report.  What do you think about this translation ?

   Les opérations de relation usuelles (comme , « inférieur à ») échouent si
   l'un des opérandes vaut NaN (« Not a Number », ce qui signifie « pas
 un nombre »).
   Ceci déclenche une exception. Pour  l'éviter, C99 définit ces macros.
   Elles garantissent de n'évaluer leurs opérandes qu'une seule fois.
   Les opérandes peuvent être de n'importe quel type flottant.

 No, type flottant is incorrect because complex numbers are also
 floating types (and are forbidden here). C99 has the following
 definitions:

 * There are three /real floating types/, designated as float, double,
  and long double.

 * There are three /complex types/, designated as float t_Complex,
  double _Complex, and long double _Complex.

 * The real floating and complex types are collectively called
  the /floating types/.

 * The type char, the signed and unsigned integer types, and the
  enumerated types are collectively called /integer types/.

 * The integer and real floating types are collectively called
  /real types/.

 * Integer and floating types are collectively called /arithmetic types/.

Thanks Vincent for these clarifications.
After more thinking I also agree that operand is misleading in this
context.  As type flottant réel seems to not be widely used, it is
IMO better to be more explicit in French.  Here is another try:

  Les opérations de relation usuelles (comme , « inférieur à ») échouent
  si l'un des paramètres vaut NaN (« Not a Number », ce qui signifie « pas
  un nombre »), et déclenchent une exception. Pour l'éviter, C99 définit
  ces macros. Elles garantissent de n'évaluer leurs paramètres qu'une
  seule fois. Les paramètres peuvent être de n'importe quel type flottant
  réel (float, double ou long double).

Denis



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-01-06 Thread Vincent Lefevre
On 2011-01-06 09:45:33 +0100, Denis Barbier wrote:
 After more thinking I also agree that operand is misleading in this
 context.  As type flottant réel seems to not be widely used, it is
 IMO better to be more explicit in French.  Here is another try:
 
   Les opérations de relation usuelles (comme , « inférieur à ») échouent
   si l'un des paramètres vaut NaN (« Not a Number », ce qui signifie « pas
   un nombre »), et déclenchent une exception. Pour l'éviter, C99 définit
   ces macros. Elles garantissent de n'évaluer leurs paramètres qu'une
   seule fois. Les paramètres peuvent être de n'importe quel type flottant
   réel (float, double ou long double).

OK.

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-01-05 Thread Vincent Lefevre
Package: manpages-fr-dev
Version: 3.27fr1.4-1
Severity: normal

The French isgreater(3) man page says:

  L'opérateur  normal  de relation (comme , « inférieur à ») échouera si
  l'un des opérandes est le non nombre NaN. Ceci déclenche une exception.
  Pour  l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer
  leurs opérandes qu'une seule fois. Les opérandes peuvent être n'importe
  quel type réel.

This is incorrect, and it has been incorrectly translated from the
English version, which says:

  The  normal  relation operations (like , less than) will fail if one
  of the operands is NaN.  This will cause an exception.  To avoid  this,
  C99  defines these macros.  The macros are guaranteed to evaluate their
  operands only once.  The operands can be  of  any  real  floating-point
  type.

So, type réel should be replaced by something like type flottant réel
(I don't know the correct term in French).

Other corrections could be done, as suggested in bug 609033
(concerning the English version):


It should probably be emphasised that the operands must not be of
integer types.

FYI, the current C1x committee draft N1547 has the following footnote
added:

242) If any argument is of integer type, or any other type that is not
 a real floating type, the behavior is undefined.

BTW, argument may be a better word than operand here, because
operand suggests that the usual arithmetic conversions will be done,
but this isn't the case here.


-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

manpages-fr-dev depends on no packages.

Versions of packages manpages-fr-dev recommends:
ii  manpages-fr  3.27fr1.4-1 French version of the manual pages

Versions of packages manpages-fr-dev suggests:
ii  man-db [man-browser]  2.5.7-8on-line manual pager

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-01-05 Thread Denis Barbier
Le 5 janvier 2011 17:41, Vincent Lefevre a écrit :
 Package: manpages-fr-dev
 Version: 3.27fr1.4-1
 Severity: normal

 The French isgreater(3) man page says:

  L'opérateur  normal  de relation (comme , « inférieur à ») échouera si
  l'un des opérandes est le non nombre NaN. Ceci déclenche une exception.
  Pour  l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer
  leurs opérandes qu'une seule fois. Les opérandes peuvent être n'importe
  quel type réel.

 This is incorrect, and it has been incorrectly translated from the
 English version, which says:

  The  normal  relation operations (like , less than) will fail if one
  of the operands is NaN.  This will cause an exception.  To avoid  this,
  C99  defines these macros.  The macros are guaranteed to evaluate their
  operands only once.  The operands can be  of  any  real  floating-point
  type.

 So, type réel should be replaced by something like type flottant réel
 (I don't know the correct term in French).

Thanks for your report.  What do you think about this translation ?

  Les opérations de relation usuelles (comme , « inférieur à ») échouent si
  l'un des opérandes vaut NaN (« Not a Number », ce qui signifie « pas
un nombre »).
  Ceci déclenche une exception. Pour  l'éviter, C99 définit ces macros.
  Elles garantissent de n'évaluer leurs opérandes qu'une seule fois.
  Les opérandes peuvent être de n'importe quel type flottant.

 Other corrections could be done, as suggested in bug 609033
 (concerning the English version):
[...]

I have no strong opinion about your other comments, and would like to
see if upstream is going to make the requested changes.

Denis



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609034: manpages-fr-dev: incorrect isgreater(3) description

2011-01-05 Thread Vincent Lefevre
On 2011-01-05 22:09:13 +0100, Denis Barbier wrote:
  The French isgreater(3) man page says:
 
   L'opérateur  normal  de relation (comme , « inférieur à ») échouera si
   l'un des opérandes est le non nombre NaN. Ceci déclenche une exception.
   Pour  l'éviter, C99 définit ces macros. Elles garantissent de n'évaluer
   leurs opérandes qu'une seule fois. Les opérandes peuvent être n'importe
   quel type réel.
 
  This is incorrect, and it has been incorrectly translated from the
  English version, which says:
 
   The  normal  relation operations (like , less than) will fail if one
   of the operands is NaN.  This will cause an exception.  To avoid  this,
   C99  defines these macros.  The macros are guaranteed to evaluate their
   operands only once.  The operands can be  of  any  real  floating-point
   type.
 
  So, type réel should be replaced by something like type flottant réel
  (I don't know the correct term in French).
 
 Thanks for your report.  What do you think about this translation ?
 
   Les opérations de relation usuelles (comme , « inférieur à ») échouent si
   l'un des opérandes vaut NaN (« Not a Number », ce qui signifie « pas
 un nombre »).
   Ceci déclenche une exception. Pour  l'éviter, C99 définit ces macros.
   Elles garantissent de n'évaluer leurs opérandes qu'une seule fois.
   Les opérandes peuvent être de n'importe quel type flottant.

No, type flottant is incorrect because complex numbers are also
floating types (and are forbidden here). C99 has the following
definitions:

* There are three /real floating types/, designated as float, double,
  and long double.

* There are three /complex types/, designated as float _Complex,
  double _Complex, and long double _Complex.

* The real floating and complex types are collectively called
  the /floating types/.

* The type char, the signed and unsigned integer types, and the
  enumerated types are collectively called /integer types/.

* The integer and real floating types are collectively called
  /real types/.

* Integer and floating types are collectively called /arithmetic types/.

-- 
Vincent Lefèvre vinc...@vinc17.net - Web: http://www.vinc17.net/
100% accessible validated (X)HTML - Blog: http://www.vinc17.net/blog/
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org