Bug 91328 - Having problems with MSDN RSS 2.0 Feeds
Summary: Having problems with MSDN RSS 2.0 Feeds
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 17:52 UTC by David Menday
Modified: 2004-12-01 09:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Menday 2004-10-14 17:52:12 UTC
Version:           1.0 beta6 (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) 
OS:                Linux

For example the feed "MSDN Just Published" does not display any entries/articles 
http://msdn.microsoft.com/rss.xml
Same for MSDN: Visual C++
http://msdn.microsoft.com/visualc/rss.xml
Comment 1 George Staikos 2004-12-01 09:32:15 UTC
0000000   o   ;   ?   <   ?   x   m   l  sp   v   e   r   s   i   o   n
        357 273 277 074 077 170 155 154 040 166 145 162 163 151 157 156

That's probably why.
Comment 2 George Staikos 2004-12-01 09:41:05 UTC
Or not
Comment 3 George Staikos 2004-12-01 09:45:53 UTC
The problem is that MSDN puts the <item> nodes inside the <channel> node.  Moving them out lets akregator read it.
Comment 4 George Staikos 2004-12-01 09:56:54 UTC
CVS commit by staikos: 

make MSDN feeds work:
1) Skip over UTF8 junk
2) Handle version="2" as version="2.0"
     -> might want to make this version stuff more robust?
BUG: 91328


  M +1 -1      document.cpp   1.10
  M +4 -0      loader.cpp   1.12


--- kdenonbeta/akregator/src/librss/document.cpp  #1.9:1.10
@@ -108,5 +108,5 @@ Document::Document(const QDomDocument &d
             else if (attr == QString::fromLatin1("0.94"))
                 d->version = v0_94;
-            else if (attr.startsWith("2.0")) // http://www.breuls.org/rss puts 2.00 in version (BR #0000016)
+            else if (attr.startsWith("2.0") || attr == QString::fromLatin1("2")) // http://www.breuls.org/rss puts 2.00 in version (BR #0000016)
                 d->version = v2_0;
         }

--- kdenonbeta/akregator/src/librss/loader.cpp  #1.11:1.12
@@ -291,4 +291,8 @@ void Loader::slotRetrieverDone(const QBy
       }
 
+          if (len > 3 && QChar(*charData) == 0357) { // 0357 0273 0277 
+                          len -= 3;
+                          charData += 3;
+          }
       QByteArray tmpData;
       tmpData.setRawData(charData, len);