Skip to content

Commit 8b7eff4

Browse files
committed
unicode 15.0
1 parent 3a7f3a6 commit 8b7eff4

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

core/pom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
jar 'com.github.jnr:jffi:${jffi.version}:native'
5353

5454
jar 'org.jruby.joni:joni:2.2.3'
55-
jar 'org.jruby.jcodings:jcodings:1.0.61'
55+
jar 'org.jruby.jcodings:jcodings:1.0.62'
5656
jar 'org.jruby:dirgra:0.5'
5757

5858
jar 'com.headius:invokebinder:1.14'

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ DO NOT MODIFY - GENERATED CODE
154154
<dependency>
155155
<groupId>org.jruby.jcodings</groupId>
156156
<artifactId>jcodings</artifactId>
157-
<version>1.0.61</version>
157+
<version>1.0.62</version>
158158
</dependency>
159159
<dependency>
160160
<groupId>org.jruby</groupId>

core/src/main/java/org/jruby/RubyConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public class RubyConverter extends RubyObject {
8989
@JRubyConstant
9090
public static final int CR_NEWLINE_DECORATOR = EConvFlags.CR_NEWLINE_DECORATOR;
9191
@JRubyConstant
92+
public static final int LF_NEWLINE_DECORATOR = EConvFlags.LF_NEWLINE_DECORATOR;
93+
@JRubyConstant
9294
public static final int XML_TEXT_DECORATOR = EConvFlags.XML_TEXT_DECORATOR;
9395
@JRubyConstant
9496
public static final int XML_ATTR_CONTENT_DECORATOR = EConvFlags.XML_ATTR_CONTENT_DECORATOR;

core/src/main/java/org/jruby/util/io/EncodingUtils.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ public static int econvOpts(ThreadContext context, IRubyObject opt, int ecflags)
735735
} else if (v.toString().equals("cr")) {
736736
ecflags |= EConvFlags.CR_NEWLINE_DECORATOR;
737737
} else if (v.toString().equals("lf")) {
738-
// ecflags |= ECONV_LF_NEWLINE_DECORATOR;
738+
ecflags |= EConvFlags.LF_NEWLINE_DECORATOR;
739739
} else if (v instanceof RubySymbol sym) {
740740
throw argumentError(context, "unexpected value for newline option: " + sym.to_s(context).toString());
741741
} else {
@@ -764,6 +764,12 @@ public static int econvOpts(ThreadContext context, IRubyObject opt, int ecflags)
764764
}
765765
newlineflag |= !v.isNil();
766766

767+
v = ((RubyHash)opt).op_aref(context, Convert.asSymbol(context, "lf_newline"));
768+
if (v.isTrue()) {
769+
setflags |= EConvFlags.LF_NEWLINE_DECORATOR;
770+
}
771+
newlineflag |= !v.isNil();
772+
767773
if (newlineflag) {
768774
ecflags &= ~EConvFlags.NEWLINE_DECORATOR_MASK;
769775
ecflags |= setflags;

spec/tags/ruby/library/rbconfig/unicode_emoji_version_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/tags/ruby/library/rbconfig/unicode_version_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)