Skip to content

Commit 6c466d4

Browse files
committed
Use hexadecimal chars to avoid depending on the C source encoding
1 parent b6b7752 commit 6c466d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optional/capi/ext/string_spec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static VALUE string_spec_rb_usascii_str_new_lit(VALUE self) {
443443
}
444444

445445
static VALUE string_spec_rb_usascii_str_new_lit_non_ascii(VALUE self) {
446-
return rb_usascii_str_new_lit("r\u00E9sum\u00E9");
446+
return rb_usascii_str_new_lit("r\xc3\xa9sum\xc3\xa9");
447447
}
448448

449449
static VALUE string_spec_rb_usascii_str_new_cstr(VALUE self, VALUE str) {

0 commit comments

Comments
 (0)