aboutsummaryrefslogtreecommitdiffstats
path: root/misc/emma/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/emma/files')
-rw-r--r--misc/emma/files/patch-aa10
-rw-r--r--misc/emma/files/patch-ab10
-rw-r--r--misc/emma/files/patch-ac11
-rw-r--r--misc/emma/files/patch-ad10
-rw-r--r--misc/emma/files/patch-ae19
-rw-r--r--misc/emma/files/patch-af11
-rw-r--r--misc/emma/files/patch-ag19
-rw-r--r--misc/emma/files/patch-ah41
-rw-r--r--misc/emma/files/patch-ai11
-rw-r--r--misc/emma/files/patch-aj20
-rw-r--r--misc/emma/files/patch-ak20
-rw-r--r--misc/emma/files/patch-al11
12 files changed, 193 insertions, 0 deletions
diff --git a/misc/emma/files/patch-aa b/misc/emma/files/patch-aa
new file mode 100644
index 000000000000..de34a1c5b9fc
--- /dev/null
+++ b/misc/emma/files/patch-aa
@@ -0,0 +1,10 @@
+--- ./src/date_entry.c 2000/11/07 11:19:50 1.1
++++ ./src/date_entry.c 2000/11/07 11:19:59
+@@ -3,7 +3,6 @@
+ #include <gnome.h>
+ #include "gnome-ucombo.h"
+
+-#include <langinfo.h>
+ #include <time.h>
+
+ #include "misc.h"
diff --git a/misc/emma/files/patch-ab b/misc/emma/files/patch-ab
new file mode 100644
index 000000000000..8479d52331bf
--- /dev/null
+++ b/misc/emma/files/patch-ab
@@ -0,0 +1,10 @@
+--- ./src/interface.c 2000/11/07 11:20:32 1.1
++++ ./src/interface.c 2000/11/07 11:20:40
+@@ -3,7 +3,6 @@
+
+ #include <gnome.h>
+
+-#include <langinfo.h>
+ #include <stdio.h>
+
+ #include <ctype.h>
diff --git a/misc/emma/files/patch-ac b/misc/emma/files/patch-ac
new file mode 100644
index 000000000000..e7660afe27d4
--- /dev/null
+++ b/misc/emma/files/patch-ac
@@ -0,0 +1,11 @@
+--- ./src/limit_dlg.c 2000/11/07 11:23:56 1.1
++++ ./src/limit_dlg.c 2000/11/07 11:24:08
+@@ -2,8 +2,6 @@
+
+ #include <gnome.h>
+
+-#include <langinfo.h>
+-
+ #include "acc_entry.h"
+ #include "date_entry.h"
+ #include "py_module.h"
diff --git a/misc/emma/files/patch-ad b/misc/emma/files/patch-ad
new file mode 100644
index 000000000000..e6923f45a7e6
--- /dev/null
+++ b/misc/emma/files/patch-ad
@@ -0,0 +1,10 @@
+--- ./src/misc.c 2000/11/07 11:24:41 1.1
++++ ./src/misc.c 2000/11/07 11:24:49
+@@ -2,7 +2,6 @@
+
+ #include <ctype.h>
+ #include <time.h>
+-#include <langinfo.h>
+
+ #include "data.h"
+
diff --git a/misc/emma/files/patch-ae b/misc/emma/files/patch-ae
new file mode 100644
index 000000000000..0c366dc127ff
--- /dev/null
+++ b/misc/emma/files/patch-ae
@@ -0,0 +1,19 @@
+--- ./src/prefs.c 2000/11/07 11:25:16 1.1
++++ ./src/prefs.c 2000/11/07 12:11:29
+@@ -3,7 +3,6 @@
+ #include <gnome.h>
+
+ #include <ctype.h>
+-#include <langinfo.h>
+
+ #include "interface.h"
+ #include "actions.h"
+@@ -116,7 +115,7 @@
+ gchar *path;
+ gchar *format;
+
+- path = g_strdup_printf("/emma/Misc/DateFormat=%s", nl_langinfo(D_FMT));
++ path = g_strdup_printf("/emma/Misc/DateFormat=%s", "%D");
+ format = gnome_config_get_string(path);
+
+ strncpy(misc_date_fmt, format, MISC_DATE_FMT_SIZE-1);
diff --git a/misc/emma/files/patch-af b/misc/emma/files/patch-af
new file mode 100644
index 000000000000..ea0d8c90adb2
--- /dev/null
+++ b/misc/emma/files/patch-af
@@ -0,0 +1,11 @@
+--- ./src/prefs_dlg.c 2000/11/07 12:12:14 1.1
++++ ./src/prefs_dlg.c 2000/11/07 12:12:23
+@@ -2,8 +2,6 @@
+
+ #include <gnome.h>
+
+-#include <langinfo.h>
+-
+ #include "limit_dlg.h"
+ #include "py_module.h"
+ #include "misc.h"
diff --git a/misc/emma/files/patch-ag b/misc/emma/files/patch-ag
new file mode 100644
index 000000000000..08210f036a82
--- /dev/null
+++ b/misc/emma/files/patch-ag
@@ -0,0 +1,19 @@
+--- src/py_module.c.orig Wed Nov 1 10:10:18 2000
++++ src/py_module.c Tue Nov 7 15:14:32 2000
+@@ -1,7 +1,6 @@
+ #include <config.h>
+
+ #include <ctype.h>
+-#include <langinfo.h>
+ #include <stdio.h>
+ #include <time.h>
+ #include <unistd.h>
+@@ -100,6 +99,8 @@
+ strcpy(tmp, g_get_home_dir());
+ strcat(tmp, "/.emma.py");
+ py_module_include_file(tmp, FALSE);
++
++ py_module_include_file(PREFIX "/share/gnome/emma/emma.py", FALSE);
+
+ py_module_include_file("/usr/share/emma.py", FALSE);
+ py_module_include_file("/usr/local/share/emma.py", FALSE);
diff --git a/misc/emma/files/patch-ah b/misc/emma/files/patch-ah
new file mode 100644
index 000000000000..f063d227450b
--- /dev/null
+++ b/misc/emma/files/patch-ah
@@ -0,0 +1,41 @@
+--- src/report_druid.c.orig Thu Nov 2 15:20:59 2000
++++ src/report_druid.c Tue Nov 7 15:02:22 2000
+@@ -1,6 +1,5 @@
+ #include <config.h>
+
+-#include <langinfo.h>
+ #include <math.h>
+
+ #include "date_entry.h"
+@@ -12,6 +11,10 @@
+
+ #include "report_druid.h"
+
++char *daynames[]={"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
++char *monthnames[]={"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", \
++ "Aug", "Sep", "Oct", "Nov", "Dec"};
++
+ /*
+ 0123456789012345678901234567890123456789012345678901234567890123456789012345678
+ */
+@@ -693,9 +696,9 @@
+ rgd = g_new(ReportGroupData, 1);
+
+ if (i == 6)
+- strcpy(rgd->label, nl_langinfo(ABDAY_1));
++ strcpy(rgd->label, daynames[6]);
+ else
+- strcpy(rgd->label, nl_langinfo(ABDAY_2 + i));
++ strcpy(rgd->label, daynames[i]);
+
+ snprintf(rgd->expr, PY_EXPRESSION_MAX_SIZE, "Weekday() == %d", i+1);
+
+@@ -711,7 +714,7 @@
+ ReportGroupData *rgd;
+ rgd = g_new(ReportGroupData, 1);
+
+- strcpy(rgd->label, nl_langinfo(ABMON_1+i));
++ strcpy(rgd->label, monthnames[i]);
+
+ snprintf(rgd->expr, PY_EXPRESSION_MAX_SIZE, "Month() == %d", i+1);
+
diff --git a/misc/emma/files/patch-ai b/misc/emma/files/patch-ai
new file mode 100644
index 000000000000..56b27d0b56d5
--- /dev/null
+++ b/misc/emma/files/patch-ai
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig Tue Nov 7 15:25:26 2000
++++ src/Makefile.in Tue Nov 7 15:19:32 2000
+@@ -140,7 +140,7 @@
+
+
+ DEFS = @DEFS@ -I. -I$(srcdir) -I..
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -DPREFIX=\"@prefix@\"
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ emma_OBJECTS = acc_entry.o account_dlg.o actions.o data.o date_entry.o \
diff --git a/misc/emma/files/patch-aj b/misc/emma/files/patch-aj
new file mode 100644
index 000000000000..803404888a30
--- /dev/null
+++ b/misc/emma/files/patch-aj
@@ -0,0 +1,20 @@
+--- data/standard.py 2000/11/07 14:27:11 1.1
++++ data/standard.py 2000/11/07 14:27:48
+@@ -48,7 +48,7 @@
+ "Example : CurDay()");
+
+ A = NormalisedTime()
+-FirstDayOfMonth = time.mktime(A[0], A[1], 1, A[3], A[4], A[5], A[6], A[7], A[8]);
++FirstDayOfMonth = time.mktime((A[0], A[1], 1, A[3], A[4], A[5], A[6], A[7], A[8]));
+
+ def CurMonth():
+ return emma.date() >= FirstDayOfMonth
+@@ -59,7 +59,7 @@
+ "Example : CurMonth()");
+
+ A = NormalisedTime()
+-FirstDayOfYear = time.mktime(A[0], 1, 1, A[3], A[4], A[5], A[6], A[7], A[8]);
++FirstDayOfYear = time.mktime((A[0], 1, 1, A[3], A[4], A[5], A[6], A[7], A[8]));
+
+ def CurYear():
+ return emma.date() >= FirstDayOfYear
diff --git a/misc/emma/files/patch-ak b/misc/emma/files/patch-ak
new file mode 100644
index 000000000000..194b1a11757e
--- /dev/null
+++ b/misc/emma/files/patch-ak
@@ -0,0 +1,20 @@
+--- data/date.py 2000/11/07 14:34:00 1.1
++++ data/date.py 2000/11/07 14:36:28
+@@ -57,7 +57,7 @@
+ return emma.date() >= this.ticks() and emma.date() < next.ticks()
+
+ emma.register_func("MonthExt",\
+- "Args: numMonths, offset\n\n",\
++ "Args: numMonths, offset\n\n"\
+ "Returns True if the transaction happened\n"\
+ "in the next <numMonths> months offset by\n"\
+ "<offset> weeks.\n\n"\
+@@ -72,7 +72,7 @@
+ return emma.date() >= this.ticks() and emma.date() < next.ticks()
+
+ emma.register_func("YearExt",\
+- "Args: numYears, offset\n\n",\
++ "Args: numYears, offset\n\n"\
+ "Returns True if the transaction happened in\n"\
+ "the next <numYears> year offset by <offset>\n"\
+ "years.\n\n"\
diff --git a/misc/emma/files/patch-al b/misc/emma/files/patch-al
new file mode 100644
index 000000000000..c6dc477ba2e8
--- /dev/null
+++ b/misc/emma/files/patch-al
@@ -0,0 +1,11 @@
+--- data/Makefile.in 2000/11/07 14:57:10 1.1
++++ data/Makefile.in 2000/11/07 14:57:34
+@@ -125,7 +125,7 @@
+ EXTRA_DIST = emma.py
+
+
+-pkgdata_DATA = $(LIMIT_EXTENSION) $(REPORT_FILTERS)
++pkgdata_DATA = $(LIMIT_EXTENSIONS) $(REPORT_FILTERS)
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h
+ CONFIG_CLEAN_FILES =