Changeset 903

Show
Ignore:
Timestamp:
12/09/06 16:14:44 (2 years ago)
Author:
nick
Message:

Pass the output encoding to the wiki toolkit feeds stuff

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Feed.pm

    r900 r903  
    249249            software_homepage   => 'http://openguides.org/', 
    250250            software_version    => $self->{og_version}, 
     251            encoding            => $self->{config}->http_charset, 
    251252        ); 
    252253    } 
     
    269270            software_homepage   => 'http://openguides.org/', 
    270271            software_version    => $self->{og_version}, 
     272            encoding            => $self->{config}->http_charset, 
    271273        ); 
    272274    } 
  • trunk/t/22_feed_recent_changes.t

    r817 r903  
    2222# Which feed types do we test? 
    2323my @feed_types = qw( rss atom ); 
    24 plan tests => 9 * scalar @feed_types; 
     24plan tests => 10 * scalar @feed_types; 
    2525 
    2626my %content_types = (rss=>'application/rdf+xml', atom=>'application/atom+xml'); 
     
    4242                     template_path      => "./templates", 
    4343                     home_name          => "Home", 
    44                      use_plucene        => 1 
     44                     use_plucene        => 1, 
     45                     http_charset       => "UTF-7", 
    4546                   } 
    4647    ); 
     
    5960    #  that we actually got the right feed) 
    6061    like( $feed_output, "/$feed_type/i", "Does contain the feed type" ); 
     62 
     63    # Check the XML 
     64    like( $feed_output, qr/<?xml version="1.0" encoding="UTF-7"/, "Right XML type and encoding" ); 
    6165 
    6266    # Now write some data, first a minor edit then a non-minor one.