Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 45909 Details for
Bug 74279
valknut / dclib broken by recent libxml2 upgrade
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to dclib
cxml.patch (text/plain), 800 bytes, created by
Marien Zwart (RETIRED)
on 2004-12-13 06:56:14 UTC
(
hide
)
Description:
patch to dclib
Filename:
MIME Type:
Creator:
Marien Zwart (RETIRED)
Created:
2004-12-13 06:56:14 UTC
Size:
800 bytes
patch
obsolete
>--- dclib.orig/dclib/core/cxml.cpp 2004-08-12 10:32:06.000000000 +0200 >+++ dclib/dclib/core/cxml.cpp 2004-11-27 19:44:56.776477965 +0100 >@@ -145,12 +145,12 @@ > > res = UTF8Toisolat1( b, &outlen, (unsigned char*)s, &inlen ); > >- if ( res == -2 ) >+ if ( res >= 0 ) >+ r = (char*)b; >+ else if ( res == -2 ) > printf("UTF8Toisolat1 transcoding fail: '%s'\n",s); > else if ( res == -1 ) > printf("UTF8Toisolat1 fail: '%s'\n",s); >- else if ( res == 0 ) >- r = (char*)b; > else > printf("CXml::xml_UTF8Toisolat1 error %d\n",res); > >@@ -178,10 +178,10 @@ > > res = isolat1ToUTF8( b, &outlen, (unsigned char*)s, &inlen ); > >- if ( res == -1 ) >+ if ( res >= 0 ) >+ r = (char*)b; >+ else if ( res == -1 ) > printf("isolat1ToUTF8 fail: '%s'\n",s); >- else if ( res == 0 ) >- r = (char*)b; > > free(b);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74279
: 45909 |
45910