Skip Menu |

This queue is for tickets about the WWW-Mediawiki-Client CPAN distribution.

Report information
The Basics
Id: 27744
Status: new
Priority: 0/
Queue: WWW-Mediawiki-Client

People
Owner: Nobody in particular
Requestors: aoleg [...] math.ucla.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Small Bug with utf encoding
Date: Mon, 25 Jun 2007 20:22:15 -0700
To: bug-WWW-Mediawiki-Client [...] rt.cpan.org
From: Oleg Alexandrov <aoleg [...] math.ucla.edu>
In mvs 0.31, in get_server_page, at line 1240, the variable $headline is encoded to utf-8 before the expected name of the page, $expected, is compared to $headline. All is good. However, in _upload_file, where the same comparison is takes place, $headline was not encoded to utf-8 before hand. That throws an exception, since $expected does not equal $headline (they actually do, but one of the strings is in Unicode, while the other is not, so they don't equal). This bug may not seem as a big deal, but having the script throw an exception where there is no reason to causes complication in my code which uses _upload file. The bug fix is simple, just add an Encode::encode("utf8"... in the appropriate place in _upload file. Cheers, Oleg