rpms/bc/devel bc-1.06-dc_ibase.patch,1.1,1.2 bc.spec,1.29,1.30
Zdenek Prikryl (zprikryl)
fedora-extras-commits at redhat.com
Wed Aug 22 06:49:22 UTC 2007
Author: zprikryl
Update of /cvs/extras/rpms/bc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10539
Modified Files:
bc-1.06-dc_ibase.patch bc.spec
Log Message:
fixed incorrect processing of decimal separator
bc-1.06-dc_ibase.patch:
Index: bc-1.06-dc_ibase.patch
===================================================================
RCS file: /cvs/extras/rpms/bc/devel/bc-1.06-dc_ibase.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- bc-1.06-dc_ibase.patch 26 Jul 2007 14:02:50 -0000 1.1
+++ bc-1.06-dc_ibase.patch 22 Aug 2007 06:49:20 -0000 1.2
@@ -1,5 +1,5 @@
---- bc-1.06/dc/numeric.c.dc_ibase 2000-08-31 17:57:42.000000000 +0200
-+++ bc-1.06/dc/numeric.c 2007-07-26 15:47:42.000000000 +0200
+--- bc-1.06/dc/numeric.c.dc_ibase 2007-08-22 08:37:57.000000000 +0200
++++ bc-1.06/dc/numeric.c 2007-08-22 08:37:40.000000000 +0200
@@ -285,6 +285,8 @@ dc_getnum DC_DECLARG((input, ibase, read
int digit;
int decimal;
@@ -36,7 +36,19 @@
}
if (c == '.'){
bc_free_num(&build);
-@@ -328,6 +338,7 @@ dc_getnum DC_DECLARG((input, ibase, read
+@@ -321,13 +331,18 @@ dc_getnum DC_DECLARG((input, ibase, read
+ build = bc_copy_num(_zero_);
+ decimal = 0;
+ for (;;){
+- c = (*input)();
++ if (c_buff) {
++ c = c_buff;
++ c_buff = 0;
++ } else
++ c = (*input)();
+ if (isdigit(c))
+ digit = c - '0';
+ else if ('A' <= c && c <= 'F')
digit = 10 + c - 'A';
else
break;
Index: bc.spec
===================================================================
RCS file: /cvs/extras/rpms/bc/devel/bc.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- bc.spec 26 Jul 2007 14:02:50 -0000 1.29
+++ bc.spec 22 Aug 2007 06:49:20 -0000 1.30
@@ -1,7 +1,7 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc
Version: 1.06
-Release: 27
+Release: 28
License: GPL
URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
@@ -70,6 +70,10 @@
%{_infodir}/*
%changelog
+* Thu Aug 22 2007 Zdenek Prikryl <zprikryl at redhat.com> 1.06-28
+- fixed incorrect processing of decimal separator
+- Resolves: #253729
+
* Thu Jul 26 2007 Zdenek Prikryl <zprikryl at redhat.com> 1.06-27
- dc accepts the input which contains wrong symbols of radix in same way like bc
- Resolves: #151844
More information about the fedora-extras-commits
mailing list