[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using iconv in stand-alone info
From: |
Eli Zaretskii |
Subject: |
Re: Using iconv in stand-alone info |
Date: |
Wed, 23 Dec 2015 20:48:10 +0200 |
> Date: Wed, 23 Dec 2015 20:23:41 +0200
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
>
> Yes, you are right, I think I should change the logic there. Will
> resubmit.
Btw, can you tell why you needed this logic:
/* We want to read exactly one character. Do this by
restricting size of output buffer. */
utf8_char_ptr = utf8_char;
for (i = 1; i <= 4; i++)
{
utf8_char_free = i;
iconv_ret = iconv (iconv_to_utf8, &inptr, &bytes_left,
&utf8_char_ptr, &utf8_char_free);
/* If we managed to write a character: */
if (utf8_char_ptr > utf8_char) break;
}
Why cannot you restrict the size of input instead?
- Using iconv in stand-alone info, Eli Zaretskii, 2015/12/21
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/21
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/21
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/21
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/23
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/23
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/23
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/23
- Re: Using iconv in stand-alone info,
Eli Zaretskii <=
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/23
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/24
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/24
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/24
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/24
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/27
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/24
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/25
- Re: Using iconv in stand-alone info, Gavin Smith, 2015/12/25
- Re: Using iconv in stand-alone info, Eli Zaretskii, 2015/12/25