From 1cf57df935aefb48bfbdd8bfb32ab19a722570bf Mon Sep 17 00:00:00 2001 From: Sam Aaron Date: Fri, 26 Apr 2024 13:38:10 +0100 Subject: [PATCH] Docs - improve windows fix Based on feedback in https://github.com/ruby/ruby/pull/10645 --- BUILD-WINDOWS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD-WINDOWS.md b/BUILD-WINDOWS.md index 477d251c4b..5f399c5685 100644 --- a/BUILD-WINDOWS.md +++ b/BUILD-WINDOWS.md @@ -127,14 +127,14 @@ gem install rugged This uses the Ruby library management tool `gem` to install rugged which is used to store the code diffs in a local Git repository. -Note - with Ruby 3.3.1 you will need to modify line 321 of `lib\ruby\3.3.0\win32\registry.rb\` from: +Note - with Ruby 3.3.1 you will need to modify line 321 of `lib\ruby\3.3.0\win32\registry.rb` from: ``` data = "\0".force_encoding('ASCII-8BIT') * unpackdw(size) ``` to ``` -data = String.new("\0").force_encoding('ASCII-8BIT') * unpackdw(size) +data = "\0".b * unpackdw(size) ``` ### 1.5 Install Elixir