Code

Fix handling of quoted strings in the config file
authorSebastian Harl <sh@tokkee.org>
Fri, 13 Feb 2009 13:10:26 +0000 (14:10 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 13 Feb 2009 13:32:56 +0000 (14:32 +0100)
commitb43e701fc529bbc22f7669a3029c9aa8c5cf2dcb
treee96ca55ae2052ec0952e04c7cf82d7fbb7df5f99
parent7b507b4156865c87a78f9ae8b22267264b9f9083
Fix handling of quoted strings in the config file

parse_string() adapts the string length to automatically remove quotation
marks when copying the string. However, when calling string_ncopy_do()
strlen(arg) used to be called again instead of using the adapted value.

This e.g. led to wrong locale settings when using
  set commit-encoding = "UTF-8"
and thus a slightly messed up display.

Thanks to Gerfried Fuchs for reporting this.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
NEWS
tig.c