Menu

#239 Not compatible with libxml2-2.12

Bugs
closed-accepted
nobody
None
5
2025-05-14
2024-03-25
Chris Mayo
No

Needs I think:

--- a/src/wraplibxml.cpp
+++ b/src/wraplibxml.cpp
@@ -706,7 +706,7 @@

 wxString WrapLibxml::getLastError()
 {
-   xmlErrorPtr err = xmlGetLastError();
+   const xmlError *err = xmlGetLastError();

    if ( !err )
        return nonParserError;
@@ -722,7 +722,7 @@

 std::pair<int, int> WrapLibxml::getErrorPosition()
 {
-   xmlErrorPtr err = xmlGetLastError();
+   const xmlError *err = xmlGetLastError();
    if ( !err )
        return std::make_pair ( 1, 1 );

Related

Bugs: #239

Discussion

  • ostroffjh

    ostroffjh - 2024-10-27

    Patch works for me with libxml2 2.13.4-1 on ArchLinux.

     
  • mgscat

    mgscat - 2025-01-09

    Hi there! Do you have any planned release date? Thanks!

     
    • gnschmidt

      gnschmidt - 2025-01-09

      Apologies! Let me try to handle that.

      On Thu, Jan 9, 2025 at 10:29 mgscat marcgarsan@users.sourceforge.net
      wrote:

      Hi there! Do you have any planned release date? Thanks!

      [bugs:#239] https://sourceforge.net/p/xml-copy-editor/bugs/239/ Not
      compatible with libxml2-2.12

      Status: open
      Group: Bugs
      Created: Mon Mar 25, 2024 07:47 PM UTC by Chris Mayo
      Last Updated: Sun Oct 27, 2024 01:18 AM UTC
      Owner: nobody

      Needs I think:

      --- a/src/wraplibxml.cpp+++ b/src/wraplibxml.cpp@@ -706,7 +706,7 @@
      wxString WrapLibxml::getLastError() {- xmlErrorPtr err = xmlGetLastError();+ const xmlError err = xmlGetLastError();
      if ( !err ) return nonParserError;@@ -722,7 +722,7 @@
      std::pair<int, int=""> WrapLibxml::getErrorPosition() {- xmlErrorPtr err = xmlGetLastError();+ const xmlError </int,>
      err = xmlGetLastError(); if ( !err ) return std::make_pair ( 1, 1 );


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/xml-copy-editor/bugs/239/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #239

  • Nuno Teixeira

    Nuno Teixeira - 2025-01-23

    FreeBSD ports:
    Successfully aplied patch above in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284272

    Builds with libxml2 2.13.5 (and libxslt 1.1.42)

    Thanks

     
  • Zane U. Ji

    Zane U. Ji - 2025-05-14
    • status: open --> closed-accepted
     
  • Zane U. Ji

    Zane U. Ji - 2025-05-14

    Merged in [ad7c0f] .

     

    Related

    Commit: [ad7c0f]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.