mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
Revert "Fake reencoding success under NO_ICONV instead of returning NULL."
We have a working iconv now, so this workaround is no longer needed.
This commit is contained in:
7
utf8.c
7
utf8.c
@@ -388,11 +388,4 @@ char *reencode_string(const char *in, const char *out_encoding, const char *in_e
|
||||
iconv_close(conv);
|
||||
return out;
|
||||
}
|
||||
#else
|
||||
char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding)
|
||||
{
|
||||
if (!in_encoding)
|
||||
return NULL;
|
||||
return xstrdup(in);
|
||||
}
|
||||
#endif
|
||||
|
||||
4
utf8.h
4
utf8.h
@@ -10,6 +10,10 @@ int is_encoding_utf8(const char *name);
|
||||
|
||||
int print_wrapped_text(const char *text, int indent, int indent2, int len);
|
||||
|
||||
#ifndef NO_ICONV
|
||||
char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
|
||||
#else
|
||||
#define reencode_string(a,b,c) NULL
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user