Giter Club home page Giter Club logo

libxml-ruby's People

Contributors

blackwinter avatar carpodaster avatar cfis avatar citguy avatar dudleyf avatar hagabaka avatar jarl-dk avatar julp avatar lorensr avatar mfn avatar nikitug avatar nkriege avatar phiggins avatar raorn avatar szimek avatar tmm1 avatar trans avatar webgago avatar yeban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libxml-ruby's Issues

gem includes .o files, causing build failures for native extension

the gem contains object files:

$ cd /tmp
$ gem unpack libxml-ruby
Unpacked gem: '/private/tmp/libxml-ruby-1.1.4'

$ ls -1 libxml-ruby-1.1.4/ext/libxml/*.o
libxml-ruby-1.1.4/ext/libxml/libxml.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_attr.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_attr_decl.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_attributes.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_cbg.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_document.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_dtd.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_encoding.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_error.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_html_parser.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_html_parser_context.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_html_parser_options.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_input_cbg.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_io.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_namespace.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_namespaces.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_node.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_parser.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_parser_context.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_parser_options.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_reader.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_relaxng.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_sax2_handler.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_sax_parser.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_schema.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xinclude.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xpath.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xpath_context.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xpath_expression.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xpath_object.o
libxml-ruby-1.1.4/ext/libxml/ruby_xml_xpointer.o

this causes the gem install to fail:

Building native extensions.  This could take a while...
/Users/aman/.rvm/rubies/ruby-1.8.7-p174/bin/ruby extconf.rb
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... yes
checking for libxml/xmlversion.h... yes
creating extconf.h
creating Makefile

make
cc -dynamic -bundle -undefined suppress -flat_namespace -o libxml_ruby.bundle libxml.o ruby_xml.o ruby_xml_attr.o ruby_xml_attr_decl.o ruby_xml_attributes.o ruby_xml_cbg.o ruby_xml_document.o ruby_xml_dtd.o ruby_xml_encoding.o ruby_xml_error.o ruby_xml_html_parser.o ruby_xml_html_parser_context.o ruby_xml_html_parser_options.o ruby_xml_input_cbg.o ruby_xml_io.o ruby_xml_namespace.o ruby_xml_namespaces.o ruby_xml_node.o ruby_xml_parser.o ruby_xml_parser_context.o ruby_xml_parser_options.o ruby_xml_reader.o ruby_xml_relaxng.o ruby_xml_sax2_handler.o ruby_xml_sax_parser.o ruby_xml_schema.o ruby_xml_xinclude.o ruby_xml_xpath.o ruby_xml_xpath_context.o ruby_xml_xpath_expression.o ruby_xml_xpath_object.o ruby_xml_xpointer.o -L. -L/Users/aman/.rvm/rubies/ruby-1.8.7-p174/lib -L/Users/aman/.rvm/rubies/ruby-1.8.7-p174/lib -L.     -lxml2 -lxml2 -lz -lpthread -licucore -lm -liconv -lz -lm  -ldl -lobjc  
ld: warning: in libxml.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_attr.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_attr_decl.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_attributes.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_cbg.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_document.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_dtd.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_encoding.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_error.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_html_parser.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_html_parser_context.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_html_parser_options.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_input_cbg.o, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: in ruby_xml_io.o, file was built for unsupported file format which is not the architecture being linked (x86_64)

Parsed strings are always encoded as ASCII 8BIT in Ruby 1.9

Hi,
This problem concerns the new Ruby 1.9 string encoding features
It seems that even when the input XML is encoded in UTF-8, and the appropriate encoding parameter is passed to the parser, the parsed strings have their Ruby encoding set as ASCII-8BIT.

The output document does have the correct encoding set. So I think the problem is just matching the LibXML encoding with the Ruby encoding.

See test case here https://gist.github.com/847984

Thanks,

  • Fabrizio

Sax Parser Crashes on exceptions with process destroying on 1.1.3

Sax Parser crashes on non valid xmls and destroys the running process

Platform - Ubuntu 9.04 Linux (32), Ruby MRI 1.8.7
Libxml-ruby ver 1.1.3

Code:

class SAXParserCallbacks
    include LibXML::XML::SaxParser::Callbacks
end
parser = LibXML::XML::SaxParser.io( data_io )
parser.callbacks = SAXParserCallbacks.new( {:header => header} )
parser.parse

I couldn't add that xml cos it breaks the markup

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.