mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of meta
characters in command line option. fixed: [ruby-talk:155369] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf50186080
commit
ad5b3bac0f
3 changed files with 10 additions and 4 deletions
|
@ -243,6 +243,11 @@ iconv_try
|
|||
size_t *outlen;
|
||||
#endif /* HAVE_PROTOTYPES */
|
||||
{
|
||||
#ifdef ICONV_INPTR_CONST
|
||||
#define ICONV_INPTR_CAST
|
||||
#else
|
||||
#define ICONV_INPTR_CAST (char **)
|
||||
#endif
|
||||
size_t ret = iconv(cd, ICONV_INPTR_CAST inptr, inlen, outptr, outlen);
|
||||
if (ret == (size_t)-1) {
|
||||
if (!*inlen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue