From 539d8286436fab8dd9ac4b6b3c38279f3faed958 Mon Sep 17 00:00:00 2001 From: Herwin Date: Fri, 18 Oct 2024 09:27:42 +0200 Subject: [PATCH] Fix encoding usage for Prism 1.2 --- test/bytecode/puts_string_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bytecode/puts_string_test.rb b/test/bytecode/puts_string_test.rb index 7b4b17fbb..89bf8c37e 100644 --- a/test/bytecode/puts_string_test.rb +++ b/test/bytecode/puts_string_test.rb @@ -22,7 +22,7 @@ code = <<~RUBY # -*- encoding: utf-8 -*- - puts "😊".encoding + puts "\xF0\x9F\x98\x8A".encoding RUBY ruby_exe(code, options: "--compile-bytecode #{@bytecode_file}") @@ -33,7 +33,7 @@ code = <<~RUBY # -*- encoding: binary -*- - puts "😊".encoding + puts "\xF0\x9F\x98\x8A".encoding RUBY ruby_exe(code, options: "--compile-bytecode #{@bytecode_file}")