[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#415417: marked as done (libc6: INF not accepted by strtod in Turkish locales (tr_TR.iso88599))



Your message dated Mon, 19 Mar 2007 19:27:58 +0100
with message-id <20070319182758.GA6104@mad.intersec.eu>
and subject line Bug#415417: libc6: INF not accepted by strtod in Turkish locales (tr_TR.iso88599)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.3.6.ds1-13
Severity: normal

The ISO C standard requires "INF" to be accepted by strtod:

         -- one of INF or INFINITY, ignoring case

But in Turkish locales (LC_ALL=tr_TR.iso88599), where the lowercase
'I' is the dotless 'i', "INF" (or similar) is not recognized as the
infinity. This can be seen with the following program and
LC_ALL="tr_TR.iso88599".

#include <stdio.h>
#include <stdlib.h>
#include <locale.h>

int main (void)
{
  double x;
  char *end;
  int err;

  if (setlocale (LC_ALL, "") == NULL)
    {
      fprintf (stderr, "Can't set locales\n");
      exit (EXIT_FAILURE);
    }

  x = strtod ("INF", &end);
  err = *end != '\0';
  printf ("x = %f - error: %s\n", x, err ? "yes" : "no");

  return err;
}

Note: I reported this bug on 2005-08-22 here:

  http://sources.redhat.com/bugzilla/show_bug.cgi?id=1230

when I had the libc6 2.3.5-4 Debian package. It was fixed on 2005-09-28
in the CVS trunk. But it is still present in Debian.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686-bigmem
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages libc6 depends on:
ii  tzdata                        2007c-1    Time Zone and Daylight Saving Time

libc6 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 2.5

On Mon, Mar 19, 2007 at 01:26:19PM +0100, Vincent Lefevre wrote:
> Package: libc6
> Version: 2.3.6.ds1-13
> Severity: normal
> 
> The ISO C standard requires "INF" to be accepted by strtod:
> 
>          -- one of INF or INFINITY, ignoring case
> 
> But in Turkish locales (LC_ALL=tr_TR.iso88599), where the lowercase
> 'I' is the dotless 'i', "INF" (or similar) is not recognized as the
> infinity. This can be seen with the following program and
> LC_ALL="tr_TR.iso88599".
> 
> #include <stdio.h>
> #include <stdlib.h>
> #include <locale.h>
> 
> int main (void)
> {
>   double x;
>   char *end;
>   int err;
> 
>   if (setlocale (LC_ALL, "") == NULL)
>     {
>       fprintf (stderr, "Can't set locales\n");
>       exit (EXIT_FAILURE);
>     }
> 
>   x = strtod ("INF", &end);
>   err = *end != '\0';
>   printf ("x = %f - error: %s\n", x, err ? "yes" : "no");
> 
>   return err;
> }
> 
> Note: I reported this bug on 2005-08-22 here:
> 
>   http://sources.redhat.com/bugzilla/show_bug.cgi?id=1230
> 
> when I had the libc6 2.3.5-4 Debian package. It was fixed on 2005-09-28
> in the CVS trunk. But it is still present in Debian.
> 
> -- System Information:
> Debian Release: 4.0
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.18-4-686-bigmem
> Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
> 
> Versions of packages libc6 depends on:
> ii  tzdata                        2007c-1    Time Zone and Daylight Saving Time
> 
> libc6 recommends no packages.
> 
> -- no debconf information
> 
> 

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp1C2jDXJ3_i.pgp
Description: PGP signature


--- End Message ---

Reply to: