[dw-free] Feeds with ansi_x3.4-1968 encoding can't be parsed
[commit: http://hg.dwscoalition.org/dw-free/rev/4ea4957bcb9f]
http://bugs.dwscoalition.org/show_bug.cgi?id=2737
Update comment.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2737
Update comment.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/SynSuck.pm
-------------------------------------------------------------------------------- diff -r eef597a174ee -r 4ea4957bcb9f cgi-bin/LJ/SynSuck.pm --- a/cgi-bin/LJ/SynSuck.pm Mon Jun 28 16:48:26 2010 +0800 +++ b/cgi-bin/LJ/SynSuck.pm Mon Jun 28 16:50:56 2010 +0800 @@ -159,8 +159,7 @@ sub process_content { $content =~ s/encoding=([\"\'])(.+?)\1/encoding='windows-1252'/; } - # ANOTHER hack: if a feed asks for ANSI_v3.4-1968 (ASCII), - # ignore it - just pretend it's something harmless like ISO-8859-1 + # ANOTHER hack: if a feed asks for ANSI_v3.4-1968 (ASCII), alias it to us-ascii if ( $encoding =~ /^ANSI_X3.4-1968$/i ) { $content =~ s/encoding=([\"\'])(.+?)\1/encoding='us-ascii'/; } --------------------------------------------------------------------------------