summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-04-19 09:08:46 +1000
committerJunio C Hamano <gitster@pobox.com>2013-04-18 16:28:28 -0700
commitb782bbab94e3618aea352907caa77321b487b918 (patch)
tree0aa385e77a981f481943f304cdf7a1be65973baf /compat
parent2bc1e7ecba1fcd73112d5e6703bdc28fb4da530a (diff)
downloadgit-b782bbab94e3618aea352907caa77321b487b918.tar.gz
utf8.c: add reencode_string_len() that can handle NULs in string
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/precompose_utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/precompose_utf8.c b/compat/precompose_utf8.c
index 030174db51..7980abd1a7 100644
--- a/compat/precompose_utf8.c
+++ b/compat/precompose_utf8.c
@@ -78,7 +78,7 @@ void precompose_argv(int argc, const char **argv)
size_t namelen;
oldarg = argv[i];
if (has_non_ascii(oldarg, (size_t)-1, &namelen)) {
- newarg = reencode_string_iconv(oldarg, namelen, ic_precompose);
+ newarg = reencode_string_iconv(oldarg, namelen, ic_precompose, NULL);
if (newarg)
argv[i] = newarg;
}