Subject: | SVN-Notify script fails with certain UTF-8 chars |
Date: | Tue, 27 Nov 2007 16:33:51 -0800 |
To: | bug-SVN-Notify [...] rt.cpan.org |
From: | Chris Sarcone <sarcone [...] mac.com> |
Hi --
I'd like to report a bug against SVN-Notify. Specifically, the
ColorDiff.pm script. We have files with certain UTF-8 characters in
them which causes the ColorDiff.pm script to output the following
errors:
Warning: 'post-commit' hook failed with error output:
utf8 "\xA9" does not map to Unicode at /Library/Perl/5.8.6/SVN/Notify/
HTML/ColorDiff.pm line 117, <PIPE> line 4.
utf8 "\xA9" does not map to Unicode at /Library/Perl/5.8.6/SVN/Notify/
HTML/ColorDiff.pm line 117, <PIPE> line 6.
It appears that ColorDiff.pm calls encode_entities() with a set of
unsafe_chars set to "&<>"'. I believe the files I've seen the script
return this mapping error on are:
"•" = \x2022
"—" = \x2014
"©" = \xA9
"§" = \xA7
Should ColorDiff.pm add these characters to the available set of
chars, or call encode_entities() without the unsafe_chars argument
perhaps?
Thanks,
Chris Sarcone
sarcone@mac.com