Package: libwww-mediawiki-client-perl
Version: 0.31-1
Severity: minor

I have discovered the problem behind the complaint in
http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support#Command_line_tools
where it says

    Unfortunately, mvs uses the name of the local file as the title of the
    page for the wiki remote server. If you need title pages in UTF-8 for
    Russian, Japanese or Arabic for example, you won't be able to upload
    such files. It seems that Mediawiki::Client as well as Perl libraries
    are not enough advanced in the management of UTF-8 characters to be
    fully operational, even if your terminal and shell are correctly set
    for UTF-8.

The problems, at least here on Debian, are

1. In your user preferences, you must set your language to English, as
the program's code,

    my $expect = ($commit ? $pagename : "Editing $pagename");
    unless (lc($headline) eq lc($expect)) {

has the English word "Editing" hardwired in!

However, that still won't help much, as

2. the "eq" in the code fails, as it is indeed comparing the same
string, but one of them has not been set to UTF-8!

So one gets the message, which I have qp-encoded here:

   When we tried to commit '=C3=A6=C2=90=C2=9C=C3=A6=C2=95=C2=91' the server r=
   esponded with '=E6=90=9C=E6=95=91'. See .mediawiki.errors for details.

The latter string is proper Chinese UTF-8, which indeed one can see
has had extra bytes stuffed in between bytes, producing the former
string!

So the comparison fails, and the program reports an error.
Good thing though that it is just mangling the report of the result,
when indeed the command succeeded. One need not even change one's
preferences to English.

However, the program will still report both failures and successes as
failures.

By the way, it doesn't comfort to see these error messages:

   Parsing of undecoded UTF-8 will give garbage when decoding entities at
   /usr/share/perl5/LWP/Protocol.pm line 114. Wide character in print at
   /usr/bin/mvs line 94.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to