Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Problem with encoding after 4.5.2 upgrade.

  1. #11
    Klug's Avatar
    Klug is online now Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    Just like this : http://www.mail-archive.com/amavis-u.../msg07759.html ?

    I've just made a search and the only occurence of Cmd.pm I found is in a subdirectory of zimbramon.
    It shows the bad version (2.27).

    Can you try the linked patch ?
    Last edited by Klug; 02-26-2007 at 05:51 AM.

  2. #12
    inigoml's Avatar
    inigoml is offline Project Contributor
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Posts
    124
    Rep Power
    8

    Default

    Quote Originally Posted by Klug View Post
    Just like this : http://www.mail-archive.com/amavis-u.../msg07759.html ?
    Can you try the linked patch ?
    Three points!!! ;-)
    Problem solved.

    ----
    --- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
    +++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
    @@ -22,6 +22,4 @@
    }

    -my $doUTF8 = eval { require utf8 };
    -
    $VERSION = "2.27";
    @ISA = qw(Exporter);
    @@ -395,6 +393,4 @@
    my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
    my $line = join("" ,@$arr);
    -
    - utf8::encode($line) if $doUTF8;

    return 0 unless defined(fileno($cmd));
    ----

  3. #13
    Klug's Avatar
    Klug is online now Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    Excellent.

    Bug is now in bugzilla with link to patch : http://bugzilla.zimbra.com/show_bug.cgi?id=14984

    On my way to patch servers 8-/

  4. #14
    inigoml's Avatar
    inigoml is offline Project Contributor
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Posts
    124
    Rep Power
    8

    Default

    Quote Originally Posted by Klug View Post
    Excellent.

    Bug is now in bugzilla with link to patch : http://bugzilla.zimbra.com/show_bug.cgi?id=14984

    On my way to patch servers 8-/
    This bug is really annoying. Thank you very much for your help, Klug!

  5. #15
    RaNd is offline Active Member
    Join Date
    Feb 2007
    Location
    Greece
    Posts
    27
    Rep Power
    8

    Default

    I'm not very familiar with patching files, but i c/p the text into Cmd.pm.patch, use patch -p1 < Cmd.pm.patch and returns error ->
    malformed patch at line 4: }
    tried a couple modifications but didn't work . . . Any suggestions ? Or could you post the patch file ?

    Thnx!


    PS. Using 4.5.2 in Ubuntu 6.10

  6. #16
    inigoml's Avatar
    inigoml is offline Project Contributor
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Posts
    124
    Rep Power
    8

    Default

    Quote Originally Posted by RaNd View Post
    I'm not very familiar with patching files, but i c/p the text into Cmd.pm.patch, use patch -p1 < Cmd.pm.patch and returns error ->
    malformed patch at line 4: }
    Copy & paste file into a new file (for example, Cmd.diff) without "----" at the beginning and end of file.
    And then,
    >> patch -p1 Cmd.pm Cmd.pm.patch

  7. #17
    kdunphy is offline Active Member
    Join Date
    Nov 2006
    Posts
    25
    Rep Power
    8

    Default

    I copied the text into a file called Cmd.diff without the ----- at the top and bottom. Here's what happened:
    [zimbra@zimbra Net]$ patch -p1 Cmd.pm Cmd.diff
    patching file Cmd.pm
    patch: **** malformed patch at line 4: }

    Suggestions?

  8. #18
    inigoml's Avatar
    inigoml is offline Project Contributor
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Posts
    124
    Rep Power
    8

    Default

    Quote Originally Posted by kdunphy View Post
    I copied the text into a file called Cmd.diff without the ----- at the top and bottom. Here's what happened:
    [zimbra@zimbra Net]$ patch -p1 Cmd.pm Cmd.diff
    patching file Cmd.pm
    patch: **** malformed patch at line 4: }

    Suggestions?
    This is the patch (with three ---)
    You have to apply it to /opt/zimbra/zimbramon/lib/Net

    patch -p1 Cmd.pm Cmd.patch

    *******Cmd.patch ***************
    --- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
    +++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
    @@ -22,6 +22,4 @@
    }

    -my $doUTF8 = eval { require utf8 };
    -
    $VERSION = "2.27";
    @ISA = qw(Exporter);
    @@ -395,6 +393,4 @@
    my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
    my $line = join("" ,@$arr);
    -
    - utf8::encode($line) if $doUTF8;

    return 0 unless defined(fileno($cmd));
    ******************************

    Anyway, I attach with this file the modified Cmd.pm, but you will have to wait until moderator approve the message.
    Attached Files Attached Files

  9. #19
    Klug's Avatar
    Klug is online now Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,292
    Rep Power
    13

    Default

    IMHO, the fastest way to "patch" this file is to comment out the two lines containing "utf8" 8)

    Code:
    my $doUTF8 = eval { require utf8 };
    and
    Code:
    utf8::encode($line) if $doUTF8;

  10. #20
    RaNd is offline Active Member
    Join Date
    Feb 2007
    Location
    Greece
    Posts
    27
    Rep Power
    8

    Default

    OK, got it,! Fixed it anyway, just c/p for firefox to Putty was messing up the alignment . . .

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Subject encoding problem
    By deepblue in forum Administrators
    Replies: 5
    Last Post: 04-01-2008, 10:30 AM
  2. Questions for Upgrade from 4.05 to 4.5.2
    By Rick Baker in forum Installation
    Replies: 6
    Last Post: 02-24-2007, 10:42 AM
  3. 4.01 to 4.02 upgrade problem (with solution)
    By criley in forum Migration
    Replies: 2
    Last Post: 09-28-2006, 11:36 PM
  4. 3.1.3OS Upgrade Problem
    By mcevoys in forum Installation
    Replies: 7
    Last Post: 06-16-2006, 09:47 AM
  5. Odd GA upgrade problem
    By drewage in forum Installation
    Replies: 2
    Last Post: 02-08-2006, 10:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •