[DRE-commits] [ruby-xmlparser] 01/01: ENC_TO_ENCINDEX → rb_enc_to_index
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Jul 19 12:20:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-xmlparser.
commit ae055ff7e0053af4f002d7f42a5035a413efc994
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Jul 19 09:05:26 2016 -0300
ENC_TO_ENCINDEX → rb_enc_to_index
---
debian/changelog | 8 ++++++++
debian/patches/827835.patch | 11 +++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3624277..1bf80c2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-xmlparser (0.7.3-3) unstable; urgency=medium
+
+ * Replace reference to ENC_TO_ENCINDEX(enc), which was made private in the
+ RubyAPI, rb_enc_to_index, which is the corresponding public function.
+ (Closes: #827835)
+
+ -- Antonio Terceiro <terceiro at debian.org> Tue, 19 Jul 2016 09:03:37 -0300
+
ruby-xmlparser (0.7.3-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/patches/827835.patch b/debian/patches/827835.patch
new file mode 100644
index 0000000..944e2e0
--- /dev/null
+++ b/debian/patches/827835.patch
@@ -0,0 +1,11 @@
+--- a/xmlparser.c
++++ b/xmlparser.c
+@@ -1803,7 +1803,7 @@ XMLParser_parse(int argc, VALUE* argv, V
+ volatile VALUE encobj;
+ volatile VALUE ustr;
+ enc = rb_enc_find(parser->detectedEncoding);
+- if ((int)ENC_TO_ENCINDEX(enc) != rb_ascii8bit_encindex()) {
++ if ((int)rb_enc_to_index(enc) != rb_ascii8bit_encindex()) {
+ rb_enc_associate(str, enc);
+ encobj = rb_enc_from_encoding(enc_xml);
+ /* rb_str_encode may raises an exception */
diff --git a/debian/patches/series b/debian/patches/series
index f7217c4..5ecbedf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
replaces_gt_symbol_by_enconded_version.patch
xmlparser-ftbfs-fix.patch
+827835.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-xmlparser.git
More information about the Pkg-ruby-extras-commits
mailing list