summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1cb41f)
raw | patch | inline | side by side (parent: a1cb41f)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 3 Feb 2009 09:38:05 +0000 (10:38 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 3 Feb 2009 09:38:55 +0000 (10:38 +0100) |
Upstream patch fixing a regression in parsing ~/.tigrc.
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/tigrc-parsing-fix.dpatch | [new file with mode: 0755] | patch | blob |
diff --git a/debian/changelog b/debian/changelog
index a4d4ea085317aca803c9e8c7d5890d9caa1ff37b..4cf93a9263435d0f306c40e65820c645c41716eb 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
* debian/patches:
- Added non-utf8-fix.dpatch - upstream patch fixing a regression in the
handling of non-UTF-8 locales.
+ - Added tigrc-parsing-fix.dpatch - upstream patch fixing a regression in
+ parsing ~/.tigrc.
- -- Sebastian Harl <sh@tokkee.org> Tue, 03 Feb 2009 10:33:22 +0100
+ -- Sebastian Harl <sh@tokkee.org> Tue, 03 Feb 2009 10:37:15 +0100
tig (0.12.1-1) experimental; urgency=low
diff --git a/debian/patches/00list b/debian/patches/00list
index 0c853cfce9eed543e9679b776b295fa66393e76d..8857e8b193155b52dea60d9321d090118528139a 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
non-utf8-fix.dpatch
+tigrc-parsing-fix.dpatch
diff --git a/debian/patches/tigrc-parsing-fix.dpatch b/debian/patches/tigrc-parsing-fix.dpatch
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## tigrc-parsing-fix.dpatch by Jonas Fonseca <fonseca@diku.dk>
+##
+## DP: Fix tokenizing when parsing ~/.tigrc
+## DP:
+## DP: When moving to use argv_from_string() in set_option() a regression was
+## DP: introduced causing problems with parsing of multiple spaces between
+## DP: arguments. For example:
+## DP:
+## DP: color date yellow default
+## DP:
+## DP: Reported by Clifford Caoile.
+
+diff a/tig.c b/tig.c
+--- a/tig.c
++++ b/tig.c
+@@ -292,7 +292,7 @@ argv_from_string(const char *argv[SIZEOF_ARG], int *argc, char *cmd)
+
+ cmd[valuelen] = 0;
+ argv[(*argc)++] = chomp_string(cmd);
+- cmd += valuelen + advance;
++ cmd = chomp_string(cmd + valuelen + advance);
+ }
+
+ if (*argc < SIZEOF_ARG)