summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/diffstat/files/diffstat-1.34-hard-locale.patch')
-rw-r--r--dev-util/diffstat/files/diffstat-1.34-hard-locale.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-util/diffstat/files/diffstat-1.34-hard-locale.patch b/dev-util/diffstat/files/diffstat-1.34-hard-locale.patch
new file mode 100644
index 000000000000..5a95d2a3e018
--- /dev/null
+++ b/dev-util/diffstat/files/diffstat-1.34-hard-locale.patch
@@ -0,0 +1,16 @@
+--- diffstat-1.34/diffstat.c.orig 2004-02-15 12:03:37.000000000 +0100
++++ diffstat-1.34/diffstat.c 2004-02-15 12:04:47.000000000 +0100
+@@ -725,6 +725,12 @@
+ && !version_num(b_fname)
+ && !contain_any(b_fname, "*")
+ && !edit_range(b_fname))
++ || (sscanf(buffer,
++ "*** %[^\t ]\t%d-%d-%d %d:%d:%d",
++ b_fname,
++ &year, &month, &day,
++ &hour, &minute, &second) == 7
++ && !version_num(b_fname))
+ ) {
+ s = do_merging(that, b_fname);
+ that = new_data(s);
+