aboutsummaryrefslogtreecommitdiffstats
path: root/math/gcalctool/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-12-24 06:03:41 +0800
committermarcus <marcus@FreeBSD.org>2003-12-24 06:03:41 +0800
commitdcdb24ed0d8265ba0a42419e217d02963eb84f87 (patch)
tree4eb3f80886fe27bccbfd04b39354109b23a36ab0 /math/gcalctool/files
parent39fd93fc0800fd6789fd71a972645395ded3c508 (diff)
downloadfreebsd-ports-gnome-dcdb24ed0d8265ba0a42419e217d02963eb84f87.tar.gz
freebsd-ports-gnome-dcdb24ed0d8265ba0a42419e217d02963eb84f87.tar.zst
freebsd-ports-gnome-dcdb24ed0d8265ba0a42419e217d02963eb84f87.zip
Update to 4.3.31.
Diffstat (limited to 'math/gcalctool/files')
-rw-r--r--math/gcalctool/files/patch-gcalctool::get.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/math/gcalctool/files/patch-gcalctool::get.c b/math/gcalctool/files/patch-gcalctool::get.c
deleted file mode 100644
index 2c91de180eac..000000000000
--- a/math/gcalctool/files/patch-gcalctool::get.c
+++ /dev/null
@@ -1,46 +0,0 @@
---- gcalctool/get.c.orig Thu Nov 27 05:29:52 2003
-+++ gcalctool/get.c Sat Dec 6 17:50:52 2003
-@@ -125,7 +125,6 @@
- {
- char *radix_char;
-
-- setlocale(LC_NUMERIC, "");
- radix_char = nl_langinfo(RADIXCHAR);
-
- return(radix_char[0]);
-@@ -220,8 +219,9 @@
- {
- char *tsep_char;
-
-- setlocale(LC_NUMERIC, "");
- tsep_char = nl_langinfo(THOUSEP);
-+ if (!*tsep_char)
-+ return ' ';
-
- return(tsep_char[0]);
- }
-@@ -231,6 +231,7 @@
- init_vars() /* Setup default values for various variables. */
- {
- int acc, i, n, size;
-+ char lrc;
-
- v->accuracy = 9; /* Initial accuracy. */
- v->show_zeroes = FALSE; /* Don't show trailing zeroes. */
-@@ -253,6 +254,8 @@
-
- read_str(&v->iconlabel, _("calculator")); /* Default icon label. */
-
-+ lrc = v->radix_char;
-+ v->radix_char = '.';
- MPstr_to_num("0.621", DEC, v->MPcon_vals[0]); /* kms/hr <=> miles/hr. */
- MPstr_to_num("1.4142135623", DEC, v->MPcon_vals[1]); /* square root of 2 */
- MPstr_to_num("2.7182818284", DEC, v->MPcon_vals[2]); /* e */
-@@ -263,6 +266,7 @@
- MPstr_to_num("0.0353", DEC, v->MPcon_vals[7]); /* grams <=> ounce. */
- MPstr_to_num("0.948", DEC, v->MPcon_vals[8]); /* Kjoules <=> BTU's. */
- MPstr_to_num("0.0610", DEC, v->MPcon_vals[9]); /* cms3 <=> inches3. */
-+ v->radix_char = lrc;
-
- n = 0;
- for (i = 0; i < MAXREGS; i++) {