diff --git a/core/pom.xml b/core/pom.xml
index 9851fb16d2e..cef865c2325 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -92,7 +92,7 @@
org.jruby.jcodings
jcodings
- 1.0.10
+ 1.0.13-SNAPSHOT
jar
diff --git a/spec/regression/GH-2581_utf32_should_alias_utf32be_spec.rb b/spec/regression/GH-2581_utf32_should_alias_utf32be_spec.rb
new file mode 100644
index 00000000000..0c152a2ea4d
--- /dev/null
+++ b/spec/regression/GH-2581_utf32_should_alias_utf32be_spec.rb
@@ -0,0 +1,10 @@
+if RUBY_VERSION >= "1.9"
+ describe "A string encoded as 'UTF-32'" do
+ it "transcodes as UTF-32BE" do
+ a = "a"
+ a32 = a.encode("UTF-32")
+ a8 = a32.encode(Encoding::UTF_8)
+ expect(a8).to eq(a)
+ end
+ end
+end