summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-08-24 18:32:46 +0900
committerNobuyoshi Nakada <[email protected]>2023-08-26 08:58:02 +0900
commit00ac3a64ba57ecd8f10bf54f03297cdec0c538d6 ()
treedb4c230a17629f0e8996ffa01c300088a8305efe /file.c
parentcfdbbd67268a77177e485263cdd8fb416315e9a6 (diff)
Introduce `at_char_boundary` function
Notes: Merged: https://.com/ruby/ruby/pull/8296
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
@@ -4610,7 +4610,7 @@ rmext(const char *p, long l0, long l1, const char *e, long l2, rb_encoding *enc)
if (l1 < l2) return l1;
s = p+l1-l2;
- if (rb_enc_left_char_head(p, s, p+l1, enc) != s) return 0;
#if CASEFOLD_FILESYSTEM
#define fncomp strncasecmp
#else