drush-ops/drush — pull request #193 by dhaley (2013-10-11 20:08:28+00:00)
Title: Issue 192

I will work to get the Pear library itself updated, but if would be nice to fix the default drush output bug in drush now, rather than waiting.

179a180,182
> if ($this->_ansiColor) {
> include_once 'Console/Color.php';
> }
595c598,603
< $return = implode("\r\n", $return);
---
> if (!stristr(PHP_OS, 'WIN')) {
> $return = implode("\r\n", $return);
> }
> else {
> $return = implode("\n", $return);
> }
599d606
< $return .= "\r\n";
600a608,610
> if (!stristr(PHP_OS, 'WIN')) {
> $return .= "\r\n";
> }
601a612
> if (!stristr(PHP_OS, 'WIN')) {
602a614,617
> }
> else {
> $return = $this->_getHeaderLine() . "\n" . $return;
> }
777c792
< static $mbstring, $utf8;
---
> static $mbstring;
781d795
< include_once 'Console/Color.php';
787,790c801
< $mbstring = function_exists('mb_strlen');
< }
< if (!isset($utf8)) {
< $utf8 = function_exists('utf8_decode');
---
> $mbstring = function_exists('mb_strwidth');
793,797d803
< if ($utf8 &&
< ($this->_charset == strtolower('utf-8') ||
< $this->_charset == strtolower('utf8'))) {
< return strlen(utf8_decode($str));
< }
799c805
< return mb_strlen($str, $this->_charset);
---
> return mb_strwidth($str, $this->_charset);