Skip to content

Commit 8d52b67

Browse files
authored
Merge pull request #408 from mvz/restore-gobject-introspection-independence
Restore independence of GObjectIntrospection::Strv implementation
2 parents 68ac2b4 + 34b12fb commit 8d52b67

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/ruby.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
with:
5555
ruby-version: ${{ matrix.ruby }}
5656
bundler-cache: true
57-
- name: Run tests
58-
run: bundle exec rake test:all
57+
- name: Run test suites
58+
run: bundle exec rake test:suites
5959
- name: Run features
6060
run: bundle exec rake test:features
6161

‎lib/ffi-gobject_introspection/strv.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def each
2424
offset = 0
2525
while (ptr = fetch_ptr offset)
2626
offset += POINTER_SIZE
27-
yield ptr.to_utf8
27+
yield ptr.read_string.force_encoding(Encoding::UTF_8)
2828
end
2929
end
3030

0 commit comments

Comments
 (0)