Guest User

Untitled

a guest
May 26th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. From 6e3aca60faf12ac4eec022ca2367a995583877db Mon Sep 17 00:00:00 2001
  2. From: Will Dietz <w@wdtz.org>
  3. Date: Mon, 21 May 2018 17:06:29 -0500
  4. Subject: [PATCH] iconv: fix special hkscs conversions
  5.  
  6. ---
  7. src/locale/iconv.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9.  
  10. diff --git a/src/locale/iconv.c b/src/locale/iconv.c
  11. index 3a34395c..05d42095 100644
  12. --- a/src/locale/iconv.c
  13. +++ b/src/locale/iconv.c
  14. @@ -461,7 +461,7 @@ size_t iconv(iconv_t cd, char **restrict in, size_t *restrict inb, char **restri
  15. if (totype-0300U > 8) k = 2;
  16. else k = "\10\4\4\10\4\4\10\2\4"[totype-0300];
  17. if (k > *outb) goto toobig;
  18. - x += iconv(combine_to_from(to, 0),
  19. + x += iconv(combine_to_from(to, find_charmap("utf8")),
  20. &(char *){"\303\212\314\204"
  21. "\303\212\314\214"
  22. "\303\252\314\204"
  23. --
  24. 2.17.0
Add Comment
Please, Sign In to add comment