https://bugzilla.wikimedia.org/show_bug.cgi?id=49437

       Web browser: ---
            Bug ID: 49437
           Summary: Change notifications sent to user are incorrectly
                    wrapped in non-asci languages
           Product: MediaWiki
           Version: 1.22-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Email
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: f...@kolzchut.org.il
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 12516
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=12516&action=edit
Shows the bad wrapping. Only about 38 chars per line, with an odd cutoff.

UserMailer.php uses wordwrap() which doesn't support unicode. An mb function is
needed, otherwise the wrapping is just awful in languages such as Hebrew.

UserMailer.php Line 763: 
$this->body = wordwrap( strtr( $body, $postTransformKeys ), 72 );

Some discussion and suggestions here:
http://stackoverflow.com/questions/3825226/multi-byte-safe-wordwrap-function-for-utf-8

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to