Patch 8.1.0848
Problem: Cannot build with Ruby 1.8. (Tom G. Christensen)
Solution: Use rb-str_new2(). (Yasuhiro Matsumoto, closes #3883,
closes #3884)
Files: src/if_ruby.c
*** ../vim-8.1.0847/src/if_ruby.c 2019-01-19 17:43:03.417449145 +0100
--- src/if_ruby.c 2019-01-30 20:39:54.616490945 +0100
***************
*** 1262,1268 ****
for (i = 0; i < RSTRING_LEN(str); i++)
{
sprintf(buf, "%02X", RSTRING_PTR(str)[i]);
! rb_str_concat(result, rb_str_new_cstr(buf));
}
return result;
}
--- 1262,1268 ----
for (i = 0; i < RSTRING_LEN(str); i++)
{
sprintf(buf, "%02X", RSTRING_PTR(str)[i]);
! rb_str_concat(result, rb_str_new2(buf));
}
return result;
}
*** ../vim-8.1.0847/src/version.c 2019-01-29 23:06:50.097182305 +0100
--- src/version.c 2019-01-30 20:59:33.203621001 +0100
***************
*** 785,786 ****
--- 785,788 ----
{ /* Add new patch number below this line */
+ /**/
+ 848,
/**/
--
MARTHA'S WAY: Don't throw out all that leftover wine. Freeze into ice cubes
for future use in casseroles and sauces.
MY WAY: What leftover wine?
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.