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

r2472 - in glibc-package/trunk/debian: . patches patches/any



Author: aurel32
Date: 2007-07-29 00:38:28 +0000 (Sun, 29 Jul 2007)
New Revision: 2472

Added:
   glibc-package/trunk/debian/patches/any/cvs-printf_fp.c.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
  * cvs-printf_fp.c.diff: new patch to  print the wrong number of digits
    with %#g.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2007-07-28 22:01:58 UTC (rev 2471)
+++ glibc-package/trunk/debian/changelog	2007-07-29 00:38:28 UTC (rev 2472)
@@ -11,12 +11,14 @@
   * sparc/submitted-gscope_flag.diff: update from upstream.
   * hppa/submitted-gscope_flag.diff : new patch to fix build on hppa
     with NPTL.
-  * debian/patches/any/local-linuxthreads-gscope.diff: new patch to add
-    gscope support to linuxthreads.
-  * debian/patches/hppa/local-linuxthreads-gscope.diff: new patch to fix build
-    on hppa with linuxthreads.  Closes: #434799.
+  * any/local-linuxthreads-gscope.diff: new patch to add gscope support 
+    to linuxthreads.
+  * hppa/local-linuxthreads-gscope.diff: new patch to fix build on hppa 
+    with linuxthreads.  Closes: #434799.
+  * cvs-printf_fp.c.diff: new patch to  print the wrong number of digits
+    with %#g.
 
- -- Aurelien Jarno <aurel32@debian.org>  Sun, 29 Jul 2007 00:00:31 +0200
+ -- Aurelien Jarno <aurel32@debian.org>  Sun, 29 Jul 2007 02:36:38 +0200
 
 glibc (2.6-4) unstable; urgency=low
 

Added: glibc-package/trunk/debian/patches/any/cvs-printf_fp.c.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/cvs-printf_fp.c.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/any/cvs-printf_fp.c.diff	2007-07-29 00:38:28 UTC (rev 2472)
@@ -0,0 +1,24 @@
+2007-07-28  Ulrich Drepper  <drepper@redhat.com>
+
+	[BZ 4858]
+	* stdio-common/printf_fp.c (___printf_fp): Fix special case of
+	#.0g and value rounded to 1.0.
+
+===================================================================
+RCS file: /cvs/glibc/libc/stdio-common/printf_fp.c,v
+retrieving revision 1.63
+retrieving revision 1.64
+diff -u -r1.63 -r1.64
+--- libc/stdio-common/printf_fp.c	2007/04/30 22:31:21	1.63
++++ libc/stdio-common/printf_fp.c	2007/07/29 00:25:19	1.64
+@@ -986,7 +986,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: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2007-07-28 22:01:58 UTC (rev 2471)
+++ glibc-package/trunk/debian/patches/series	2007-07-29 00:38:28 UTC (rev 2472)
@@ -106,6 +106,7 @@
 
 any/cvs-ld_library_path.diff
 any/cvs-initfini.diff -p1
+any/cvs-printf_fp.c.diff -p1
 any/local-notls.diff -p0
 any/local-asserth-decls.diff -p0
 # any/local-base.diff -p0	#  g: suspended



Reply to: