diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-09-29 19:59:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-10-01 20:28:44 +0900 |
commit | 842b0008c132dd587f09766a228041afb7fed24f (patch) | |
tree | b7324862c67cfc7e28c0d4e4866b77f548019e6a /internal | |
parent | 409dbc951b9875d27bd73748c88e15386473cffb (diff) |
Skip broken strings as the locale encoding
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4915
Diffstat (limited to 'internal')
-rw-r--r-- | internal/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/string.h b/internal/string.h index 546a0ac9a7..d010669ca8 100644 --- a/internal/string.h +++ b/internal/string.h @@ -42,6 +42,7 @@ size_t rb_str_memsize(VALUE); char *rb_str_to_cstr(VALUE str); const char *ruby_escaped_char(int c); void rb_str_make_independent(VALUE str); +int rb_enc_str_coderange_scan(VALUE str, rb_encoding *enc); static inline bool STR_EMBED_P(VALUE str); static inline bool STR_SHARED_P(VALUE str); |