# HG changeset patch # User Bram Moolenaar # Date 1548879306 -3600 # Node ID ef9c89680e7f07e6d1e3531f3da91b43d406df96 # Parent 78587768d8acef6c5f8b825b8267e5eb3154f0a8 patch 8.1.0848: cannot build with Ruby 1.8 commit https://github.com/vim/vim/commit/b191be2f0000bf1de09a79226cfd405d9387caa3 Author: Bram Moolenaar Date: Wed Jan 30 21:00:12 2019 +0100 patch 8.1.0848: cannot build with Ruby 1.8 Problem: Cannot build with Ruby 1.8. (Tom G. Christensen) Solution: Use rb-str_new2(). (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/3883, closes #3884) diff --git a/src/if_ruby.c b/src/if_ruby.c --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -1262,7 +1262,7 @@ static VALUE vim_blob(VALUE self UNUSED, for (i = 0; i < RSTRING_LEN(str); i++) { sprintf(buf, "%02X", RSTRING_PTR(str)[i]); - rb_str_concat(result, rb_str_new_cstr(buf)); + rb_str_concat(result, rb_str_new2(buf)); } return result; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -784,6 +784,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 848, +/**/ 847, /**/ 846,