Skip to content

Commits on Source 13

jcodings
========
Use the rules/get-orig-source target to create the orig.tar.gz.
For more details on repackaging of upstream sources please see the
debian/orig-tar.sh file.
-- Torsten Werner <twerner@debian.org> Fri, 30 Jul 2010 04:32:11 +0200
jcodings (1.0.44-1) unstable; urgency=medium
* New upstream release
* debian/copyright
- use https for upstream github URL
- update Upstream-Contact to point JRuby website
- update copyright year
* debian/control
- set Rules-Requires-Root: no
* debian/libjcodings-java.poms
- use "--no-parent" option to ignore unnecessary dependency
* drop obsolete debian/README.source
-- Hideki Yamane <henrich@debian.org> Sat, 18 May 2019 11:02:03 +0900
jcodings (1.0.43-1) unstable; urgency=medium
* New upstream release
......
......@@ -10,6 +10,7 @@ Standards-Version: 4.3.0
Vcs-Git: https://salsa.debian.org/java-team/jcodings.git
Vcs-Browser: https://salsa.debian.org/java-team/jcodings
Homepage: https://github.com/jruby/jcodings
Rules-Requires-Root: no
Package: libjcodings-java
Architecture: all
......
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: JCodings
Upstream-Contact: Thomas E. Enobo
Source: http://github.com/jruby/jcodings
Upstream-Contact: https://www.jruby.org/
Source: https://github.com/jruby/jcodings
Files: *
Copyright: 2008-2012 Marcin Mielżyński
Copyright: 2008-2019 Marcin Mielżyński <lopx@gazeta.pl>
2008-2010 Thomas E. Enobo <tom.enebo@gmail.com>
2009-2015 Charles Oliver Nutter <headius@headius.com>
License: MIT
Files: debian/*
Copyright: 2010 Torsten Werner <twerner@debian.org>
2012-2017 Hideki Yamane <henrich@debian.org>
2012-2019 Hideki Yamane <henrich@debian.org>
License: MIT
License: MIT
......
......@@ -25,4 +25,4 @@
# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
# Empty by default. [mh_install]
#
pom.xml --has-package-version --java-lib
pom.xml --has-package-version --java-lib --no-parent
Description: avoid unnecessary dependency to deal with FTBFS
Author: Hideki Yamane <henrich@debian.org>
Forwarded: not-needed
Last-Update: 2018-09-17
--- a/pom.xml
+++ b/pom.xml
@@ -6,11 +6,6 @@
<version>1.0.43</version>
<name>JCodings</name>
<description>Byte based encoding support library for java</description>
- <parent>
- <groupId>org.sonatype.oss</groupId>
- <artifactId>oss-parent</artifactId>
- <version>7</version>
- </parent>
<licenses>
<license>
<name>MIT License</name>
remove_unnecessary_dependency.patch
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jruby.jcodings</groupId>
<artifactId>jcodings</artifactId>
<version>1.0.43</version>
<version>1.0.44</version>
<name>JCodings</name>
<description>Byte based encoding support library for java</description>
<parent>
......
......@@ -564,7 +564,11 @@ public abstract class Encoding implements Cloneable {
public static final byte NEW_LINE = (byte)0x0a;
public static Encoding load(String name) {
String encClassName = name;
return load(name, "org.jcodings.specific");
}
public static Encoding load(String name, String pkg) {
String encClassName = pkg + "." + name + "Encoding";
Class<?> encClass;
try {
encClass = Class.forName(encClassName);
......
......@@ -45,4 +45,9 @@ public class TestUnicode {
assertEquals(enc.codeToMbcLength(0xfffffffe), 1); // USE_INVALID_CODE_SCHEME
assertEquals(enc.codeToMbcLength(0xffffffff), 1); // USE_INVALID_CODE_SCHEME
}
@Test
public void testEncodingLoad() throws Exception {
assertEquals(UTF8Encoding.INSTANCE, Encoding.load("UTF8"));
}
}