jruby / jcodings

Java-based codings helper classes for Joni and JRuby
MIT License
21 stars 29 forks source link

fix mac transcoder #57

Closed ahorek closed 2 years ago

ahorek commented 2 years ago

the value was incorrectly hardcoded in the generate.rb script, this restores the right value

fixes

 TestCSVEncodings::DifferentOFS#test_regular_expression_escaping:
Java::JavaLang::AssertionError: UTF8-MAC state not large enough
    org.jcodings.transcode.TranscodeFunctions.bufClear(TranscodeFunctions.java:1035)
    org.jcodings.transcode.TranscodeFunctions.fromUtf8MacInit(TranscodeFunctions.java:1017)
    org.jcodings.transcode.specific.From_UTF8_MAC_Transcoder.stateInit(From_UTF8_MAC_Transcoder.java:35)
    org.jcodings.transcode.Transcoding.<init>(Transcoding.java:38)

refs https://github.com/jruby/jruby/pull/7142