Skip to content

Commit 1cf57df

Browse files
committed
Docs - improve windows fix
Based on feedback in ruby/ruby#10645
1 parent 1856367 commit 1cf57df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BUILD-WINDOWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ gem install rugged
127127
This uses the Ruby library management tool `gem` to install rugged which is used to
128128
store the code diffs in a local Git repository.
129129

130-
Note - with Ruby 3.3.1 you will need to modify line 321 of `lib\ruby\3.3.0\win32\registry.rb\` from:
130+
Note - with Ruby 3.3.1 you will need to modify line 321 of `lib\ruby\3.3.0\win32\registry.rb` from:
131131

132132
```
133133
data = "\0".force_encoding('ASCII-8BIT') * unpackdw(size)
134134
```
135135
to
136136
```
137-
data = String.new("\0").force_encoding('ASCII-8BIT') * unpackdw(size)
137+
data = "\0".b * unpackdw(size)
138138
```
139139

140140
### 1.5 Install Elixir

0 commit comments

Comments
 (0)