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

[commits] r3005 - in /fsf/glibc-2_5-branch/libc: ChangeLog NEWS README stdio-common/printf_fp.c stdio-common/tfformat.c version.h



Author: eglibc
Date: Wed Aug  1 00:08:01 2007
New Revision: 3005

Log:
Import glibc-2.5 for 2007-08-01

Modified:
    fsf/glibc-2_5-branch/libc/ChangeLog
    fsf/glibc-2_5-branch/libc/NEWS
    fsf/glibc-2_5-branch/libc/README
    fsf/glibc-2_5-branch/libc/stdio-common/printf_fp.c
    fsf/glibc-2_5-branch/libc/stdio-common/tfformat.c
    fsf/glibc-2_5-branch/libc/version.h

Modified: fsf/glibc-2_5-branch/libc/ChangeLog
==============================================================================
--- fsf/glibc-2_5-branch/libc/ChangeLog (original)
+++ fsf/glibc-2_5-branch/libc/ChangeLog Wed Aug  1 00:08:01 2007
@@ -1,3 +1,16 @@
+2007-07-31  Jakub Jelinek  <jakub@xxxxxxxxxx>
+
+	* NEWS, version.h (VERSION): 2.5.1.
+
+	* stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
+
+2007-07-28  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	[BZ #4858]
+	* stdio-common/printf_fp.c (___printf_fp): Fix special case of
+	#.0g and value rounded to 1.0.
+	* stdio-common/tfformat.c (sprint_doubles): Add two new tests.
+
 2007-07-03  Jakub Jelinek  <jakub@xxxxxxxxxx>
 
 	[BZ #4702]

Modified: fsf/glibc-2_5-branch/libc/NEWS
==============================================================================
--- fsf/glibc-2_5-branch/libc/NEWS (original)
+++ fsf/glibc-2_5-branch/libc/NEWS Wed Aug  1 00:08:01 2007
@@ -4,6 +4,19 @@
 
 Please send GNU C library bug reports via <http://sources.redhat.com/bugzilla/>
 using `glibc' in the "product" field.
+
+Version 2.5.1
+
+* The following bugs are resolved with this release:
+
+  2337, 2749, 3213, 3291, 3306, 3320, 3322, 3334, 3348, 3352, 3369, 3429,
+  3451, 3458, 3559, 3632, 3664, 3673, 3674, 3747, 3842, 3851, 3855, 3884,
+  3902, 3919, 3944, 3954, 3955, 3957, 3995, 4069, 4070, 4074, 4076, 4101,
+  4102, 4130, 4131, 4181, 4342, 4344, 4364, 4368, 4381, 4405, 4406, 4411,
+  4438, 4439, 4465, 4512, 4514, 4586, 4702, 4858
+
+  Visit <http://sources.redhat.com/bugzilla/> for the details of each bug.
+
 
 Version 2.5
 

Modified: fsf/glibc-2_5-branch/libc/README
==============================================================================
--- fsf/glibc-2_5-branch/libc/README (original)
+++ fsf/glibc-2_5-branch/libc/README Wed Aug  1 00:08:01 2007
@@ -1,4 +1,4 @@
-This directory contains the version 2.5 release of the GNU C Library.
+This directory contains the version 2.5.1 release of the GNU C Library.
 
 The GNU C Library is the standard system C library for all GNU systems,
 and is an important part of what makes up a GNU system.  It provides the
@@ -52,7 +52,7 @@
 
 The code for other CPU configurations supported by volunteers outside of
 the core glibc maintenance effort is contained in the separate `ports'
-add-on.  You can find glibc-ports-2.5 distributed separately in the
+add-on.  You can find glibc-ports-2.5.1 distributed separately in the
 same place where you got the main glibc distribution files.
 Currently these configurations are known to work using the `ports' add-on:
 

Modified: fsf/glibc-2_5-branch/libc/stdio-common/printf_fp.c
==============================================================================
--- fsf/glibc-2_5-branch/libc/stdio-common/printf_fp.c (original)
+++ fsf/glibc-2_5-branch/libc/stdio-common/printf_fp.c Wed Aug  1 00:08:01 2007
@@ -985,7 +985,9 @@
 	    if (*wtp != decimalwc)
 	      /* Round up.  */
 	      (*wtp)++;
-	    else if (__builtin_expect (spec == 'g' && type == 'f' && info->alt,
+	    else if (__builtin_expect (spec == 'g' && type == 'f' && info->alt
+				       && wtp == wstartp + 1
+				       && wstartp[0] == L'0',
 				       0))
 	      /* This is a special case: the rounded number is 1.0,
 		 the format is 'g' or 'G', and the alternative format

Modified: fsf/glibc-2_5-branch/libc/stdio-common/tfformat.c
==============================================================================
--- fsf/glibc-2_5-branch/libc/stdio-common/tfformat.c (original)
+++ fsf/glibc-2_5-branch/libc/stdio-common/tfformat.c Wed Aug  1 00:08:01 2007
@@ -4024,6 +4024,21 @@
   {__LINE__, 1.0,			"1.000000e+00", "%e"},
   {__LINE__, .9999999999999999,		"1.000000e+00", "%e"},
 
+  {__LINE__, 912.98,			"913.0", "%#.4g"},
+  {__LINE__, 50.999999,			"51.000", "%#.5g"},
+  {__LINE__, 0.956,			"1", "%.1g"},
+  {__LINE__, 0.956,			"1.", "%#.1g"},
+  {__LINE__, 0.996,			"1", "%.2g"},
+  {__LINE__, 0.996,			"1.0", "%#.2g"},
+  {__LINE__, 999.98,			"1000", "%.4g"},
+  {__LINE__, 999.98,			"1000.", "%#.4g"},
+  {__LINE__, 999.998,			"1000", "%.5g"},
+  {__LINE__, 999.998,			"1000.0", "%#.5g"},
+  {__LINE__, 999.9998,			"1000", "%g"},
+  {__LINE__, 999.9998,			"1000.00", "%#g"},
+  {__LINE__, 912.98,			"913", "%.4g"},
+  {__LINE__, 50.999999,			"51", "%.5g"},
+
   {0 }
 
 };

Modified: fsf/glibc-2_5-branch/libc/version.h
==============================================================================
--- fsf/glibc-2_5-branch/libc/version.h (original)
+++ fsf/glibc-2_5-branch/libc/version.h Wed Aug  1 00:08:01 2007
@@ -1,4 +1,4 @@
 /* This file just defines the current version number of libc.  */
 
 #define RELEASE "stable"
-#define VERSION "2.5"
+#define VERSION "2.5.1"