Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 230053 Details for
Bug 130645
net-print/cnijfilter-3.20 - Canon pixma/pixus drivers (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to overcome libxml2-issue
cnijfilter-2.60-r1-keytext-c.patch (text/plain), 1.50 KB, created by
Stefan Struhs
on 2010-05-02 16:37:46 UTC
(
hide
)
Description:
patch to overcome libxml2-issue
Filename:
MIME Type:
Creator:
Stefan Struhs
Created:
2010-05-02 16:37:46 UTC
Size:
1.50 KB
patch
obsolete
>--- cnijfilter-2.60/printui/src/keytext.c 2006-02-27 03:05:20.000000000 +0100 >+++ cnijfilter-2.60/printui/src/keytext.c 2010-05-02 16:32:01.319502729 +0200 >@@ -37,7 +37,7 @@ > #ifdef USE_LIB_GLADE > # include <glade/glade.h> > #endif >-#include <gnome-xml/parser.h> >+#include <libxml/parser.h> > #include <string.h> > > #ifndef USE_LIB_GLADE >@@ -71,13 +71,13 @@ > > static void AddKeyAndTextToTree(xmlNodePtr xmlnode, GTree* tree) > { >- char *key, *text; >+ xmlChar *key, *text; > >- if( !xmlnode->name || g_strcasecmp(xmlnode->name,"Item") != 0 ) >+ if( !xmlnode->name || xmlStrcasecmp(xmlnode->name, xmlCharStrdup("Item")) != 0 ) > return; > >- key = g_strdup(xmlGetProp(xmlnode,"key")); >- text = g_strdup(xmlNodeGetContent(xmlnode)); >+ key = xmlStrdup(xmlGetProp(xmlnode,xmlCharStrdup("key"))); >+ text = xmlStrdup(xmlNodeGetContent(xmlnode)); > > if( key != NULL && text != NULL ) > { >@@ -89,7 +89,7 @@ > { > xmlNodePtr node; > >- for( node = doc->root->childs ; node != NULL ; node = node->next ) >+ for( node = xmlDocGetRootElement(doc)->children ; node != NULL ; node = node->next ) > { > AddKeyAndTextToTree(node, tree); > } >@@ -102,9 +102,9 @@ > if( (doc = xmlParseFile(fname)) == NULL ) > return FALSE; > >- if( doc->root == NULL >- || doc->root->name == NULL >- || g_strcasecmp(doc->root->name, "KeyTextList") != 0) >+ if( xmlDocGetRootElement(doc) == NULL >+ || xmlDocGetRootElement(doc)->name == NULL >+ || xmlStrcasecmp(xmlDocGetRootElement(doc)->name, xmlCharStrdup("KeyTextList")) != 0) > { > xmlFreeDoc(doc); > return FALSE;
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 130645
:
85055
|
89824
|
90098
|
90286
|
92300
|
92394
|
92765
|
94410
|
95341
|
95342
|
95343
|
100540
|
100713
|
100922
|
103002
|
106584
|
189035
|
189036
|
189037
|
189039
|
222229
|
224233
|
224363
|
230051
|
230053
|
233407
|
241641
|
241643
|
261484
|
261485
|
261486
|
262545
|
263077
|
270671
|
270673
|
270681
|
270683
|
270687
|
270875
|
270881
|
277421
|
283773
|
283775
|
284261
|
284263
|
292163
|
292399
|
292401
|
292403
|
295761
|
295777
|
295779
|
296499
|
297123
|
302461
|
302525
|
302527
|
304563
|
304565
|
304995
|
304997
|
304999
|
305003
|
305005
|
312725
|
312727
|
312729
|
312731
|
323934
|
323936
|
323938
|
323940
|
332928
|
332936
|
332938
|
332940
|
332942
|
332996
|
333010
|
333012
|
333014
|
333040
|
333042
|
340020
|
340022
|
349482
|
357984
|
357990
|
385826
|
402866
|
491132
|
515100
|
515104
|
560112
|
560114
|
762522
|
882299