[interchange-cvs] interchange - heins modified lib/Vend/Util.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Thu Nov 15 06:16:00 2001
User: heins
Date: 2001-11-15 11:15:22 GMT
Modified: lib/Vend Util.pm
Log:
* Make round_to_frac_digits() work with frac_digits of 0.
Problem found and invesigated by Shozo Murahashi
<murahashi@ayayu.com>. Thanks to him.
Revision Changes Path
2.8 +4 -3 interchange/lib/Vend/Util.pm
rev 2.8, prev_rev 2.7
Index: Util.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Util.pm,v
retrieving revision 2.7
retrieving revision 2.8
diff -u -r2.7 -r2.8
--- Util.pm 2001/10/31 22:22:35 2.7
+++ Util.pm 2001/11/15 11:15:22 2.8
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
-# $Id: Util.pm,v 2.7 2001/10/31 22:22:35 mheins Exp $
+# $Id: Util.pm,v 2.8 2001/11/15 11:15:22 mheins Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -79,7 +79,7 @@
use Safe;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.7 $, 10);
+$VERSION = substr(q$Revision: 2.8 $, 10);
BEGIN {
eval {
@@ -203,7 +203,8 @@
# use what we were given
}
elsif ( $Vend::Cfg->{Locale} ) {
- $digits = $Vend::Cfg->{Locale}{frac_digits} || 2;
+ $digits = $Vend::Cfg->{Locale}{frac_digits};
+ $digits = 2 if ! defined $digits;
}
else {
$digits = 2;