Skip to content

Commit

Permalink
Ruby 3.3 on Windows now defaults to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonroelofs committed Jan 1, 2024
1 parent b587e27 commit 8e5c6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_Stl_String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ TESTCASE(std_string_to_ruby_encoding)
Object encoding = object.call("encoding");
Object encodingName = encoding.call("name");
std::string result = detail::From_Ruby<std::string>().convert(encodingName);
if(result != "ASCII-8BIT" && result != "US-ASCII") {
FAIL("Encoding incorrect", "ASCII-8BIT or US-ASCII", result);
if(result != "ASCII-8BIT" && result != "US-ASCII" && result != "UTF-8") {
FAIL("Encoding incorrect", "ASCII-8BIT, US-ASCII, or UTF-8 (Windows)", result);
}
}

Expand Down

0 comments on commit 8e5c6ca

Please sign in to comment.