diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-08 04:02:13 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-08 04:02:13 +0000 |
commit | b589ff2130542a92f061186ee2aae6e8a1dee285 (patch) | |
tree | 4c36d527ac8649540bc8fa6141b28e0fc3696f10 /system/man-db/man-db-2.8.3-iconv.patch | |
parent | ff13d7966c9c7130703aa825d93dd07a1ca4cdb4 (diff) | |
download | packages-b589ff2130542a92f061186ee2aae6e8a1dee285.tar.gz packages-b589ff2130542a92f061186ee2aae6e8a1dee285.tar.bz2 packages-b589ff2130542a92f061186ee2aae6e8a1dee285.tar.xz packages-b589ff2130542a92f061186ee2aae6e8a1dee285.zip |
system/man-db: bump to 2.8.5, modernise
Diffstat (limited to 'system/man-db/man-db-2.8.3-iconv.patch')
-rw-r--r-- | system/man-db/man-db-2.8.3-iconv.patch | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/system/man-db/man-db-2.8.3-iconv.patch b/system/man-db/man-db-2.8.3-iconv.patch deleted file mode 100644 index 98f10cb2a..000000000 --- a/system/man-db/man-db-2.8.3-iconv.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- man-db-2.8.3/src/man.c 2018-06-18 22:44:35.672743065 -0500 -+++ man-db-2.8.3/src/man.c 2018-06-18 22:46:35.032624890 -0500 -@@ -1569,15 +1569,13 @@ - { - debug ("add_output_iconv: source %s, target %s\n", source, target); - if (source && target && !STREQ (source, target)) { -- char *target_translit = xasprintf ("%s//TRANSLIT", target); - pipecmd *iconv_cmd; - iconv_cmd = pipecmd_new_args -- ("iconv", "-c", "-f", source, "-t", target_translit, -+ ("iconv", "-c", "-f", source, "-t", target, - NULL); - pipecmd_pre_exec (iconv_cmd, sandbox_load, sandbox_free, - sandbox); - pipeline_command (p, iconv_cmd); -- free (target_translit); - } - } - ---- man-db-2.8.3/src/manconv.c -+++ man-db-2.8.3/src/manconv.c -@@ -106,10 +106,9 @@ static int try_iconv (pipeline *p, const char *try_from_code, const char *to, - static char *utf8 = NULL, *output = NULL; - size_t utf8left = 0; - iconv_t cd_utf8, cd = NULL; -- int to_utf8 = STREQ (try_to_code, "UTF-8") || -- STRNEQ (try_to_code, "UTF-8//", 7); -- const char *utf8_target = last ? "UTF-8//IGNORE" : "UTF-8"; -- int ignore_errors = (strstr (try_to_code, "//IGNORE") != NULL);; -+ int to_utf8 = STREQ (try_to_code, "UTF-8"); -+ const char *utf8_target = "UTF-8"; -+ int ignore_errors = 0; - int ret = 0; - - debug ("trying encoding %s -> %s\n", try_from_code, try_to_code); ---- man-db-2.8.3/src/manconv_client.c -+++ man-db-2.8.3/src/manconv_client.c -@@ -105,7 +105,7 @@ void add_manconv (pipeline *p, const char *source, const char *target) - codes->from[2] = NULL; - name = appendstr (name, "UTF-8:", source, NULL); - } -- codes->to = xasprintf ("%s//IGNORE", target); -+ codes->to = xstrdup (target); - /* informational only; no shell quoting concerns */ - name = appendstr (name, " -t ", codes->to, NULL); - if (quiet >= 2) ---- man-db-2.8.3/src/manconv_main.c -+++ man-db-2.8.3/src/manconv_main.c -@@ -107,9 +107,6 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) - return 0; - case 't': - to_code = xstrdup (arg); -- if (!strstr (to_code, "//")) -- to_code = appendstr (to_code, "//TRANSLIT", -- NULL); - return 0; - case 'd': - debug_level = 1; ---- man-db-2.8.3/src/whatis.c -+++ man-db-2.8.3/src/whatis.c -@@ -968,7 +968,7 @@ int main (int argc, char *argv[]) - display_seen = hashtable_create (&null_hashtable_free); - - #ifdef HAVE_ICONV -- locale_charset = xasprintf ("%s//IGNORE", get_locale_charset ()); -+ locale_charset = xstrdup (get_locale_charset ()); - conv_to_locale = iconv_open (locale_charset, "UTF-8"); - free (locale_charset); - #endif /* HAVE_ICONV */ |