File: 827835.patch

package info (click to toggle)
ruby-xmlparser 0.7.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: ruby: 9,342; ansic: 2,017; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Antonio Terceiro <terceiro@debian.org>
Date: Tue, 19 Jul 2016 09:05:26 -0300
Subject: =?utf-8?b?RU5DX1RPX0VOQ0lOREVYIOKGkiByYl9lbmNfdG9faW5kZXg=?=

---
 xmlparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xmlparser.c b/xmlparser.c
index ce7df91..fb17935 100644
--- a/xmlparser.c
+++ b/xmlparser.c
@@ -1803,7 +1803,7 @@ XMLParser_parse(int argc, VALUE* argv, VALUE obj)
       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 */