Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sebthom
Copy link
Contributor

@sebthom sebthom commented Jan 10, 2025

This is a rebased version of PR #20

@lopex
Copy link
Contributor

lopex commented Jan 15, 2025

Is the check enc.codeToMbcLength(to[0]) > 1 for broken or truncated characters ?
If so, then we should be striving for https://github.com/jruby/jruby/wiki/Encodings-in-JRuby

@headius
Copy link
Member

headius commented Jan 15, 2025

@lopex You mean we should be using our equivalent macros to check the result?

@headius headius added this to the 2.2.2 milestone Jan 15, 2025
@headius
Copy link
Member

headius commented Jan 16, 2025

We have a need to release joni this week for a JRuby release next week. I'm going to bump this to a future release.

It's simple enough to kick out another release when these PRs are ready.

@headius headius modified the milestones: 2.2.2, 2.2.3, 2.2.4 Jan 16, 2025
@headius headius merged commit de23ab0 into jruby:master Feb 27, 2025
1 check passed
@headius
Copy link
Member

headius commented Mar 3, 2025

After doing some experimentation this fix appeared to be valid and "good enough", so we merged it and released joni 2.2.4.

I have filed an issue with CRuby since they still exhibit the same problem, and they have a similar fix in the past week we may want to mimic: https://bugs.ruby-lang.org/issues/21162

headius added a commit to headius/jruby that referenced this pull request Mar 3, 2025
jcodings 1.0.62:

* update unicode to 15.0 (jruby/jcodings#66)

joni 2.2.4:

* update jcodings to 1.0.62
* fix: char class casefold for certain chars (jruby/joni#85)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants