On Sun, Nov 02, 2008 at 10:02:00PM +0100, Andre Colomb wrote:
> ---SNIP---
> [EMAIL PROTECTED]:~> convmv .
> Your Perl version has fleas #37757 #49830
> Use of uninitialized value $name in exists at /usr/lib/perl/5.10/Encode.pm 
> line 97.
> Use of uninitialized value $find in exists at 
> /usr/lib/perl/5.10/Encode/Alias.pm line 25.
[...]
> Please have a look at this, it makes the package unusable for me. Also tried 
> it under Ubuntu 8.10, same problem there, so
> I guess it is not a problem with my particular system.

Hi Andre,

try to use the -t and -f switches. Encode.pm seems to be unhappy with
unset encoding information.

For example, to recursively convert your home directory from
iso8859-15 to utf8 without dry-run (dangerous!), do following:
$ convmv --notest -r -f iso8859-15 -t utf8 <directory name or file name>

I should apply following patch to make Encode.pm happy when -f and -t
are omitted.

Best regards,
Raphael

--- convmv~     2008-02-05 22:33:25.000000000 +0100
+++ convmv      2008-11-04 00:08:49.000000000 +0100
@@ -298,6 +298,8 @@
        $get_newname=\&upperlower_get_newname;
        $opt_f="ascii" unless ($opt_f);
 } else {
+       $opt_f="ascii" unless ($opt_f);
+       $opt_t="ascii" unless ($opt_t);
        $opt_f=Encode::resolve_alias($opt_f) or die "wrong/unknown \"from\" 
encoding!\n";
        $opt_t=Encode::resolve_alias($opt_t) or die "wrong/unknown \"to\" 
encoding!\n";
        $checkenc=\&char_checkenc;



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

Reply via email to