See code (includes\drush.inc, in function drush_print(), line 572):

572:  if ($charset = drush_get_option('output_charset') && function_exists('iconv')) {
573:    $msg = iconv('UTF-8', $charset, $msg);
574:  }

Variable $charset evaluates as boolean (logical AND between drush_get_option() and function_exists()) but should be a string. Parentheses will fix this bug:

if ( ( $charset = drush_get_option('output_charset') ) && function_exists('iconv')) {

Comments

jonhattan’s picture

Version: 7.x-4.4 »
Status: Active » Fixed

Fixed in master.

@v.sidorov would be nice if you provide a patch next time.

jonhattan’s picture

Version: » All-versions-4.x-dev
Assigned: Unassigned » msonnabaum
Status: Fixed » Patch (to be ported)
msonnabaum’s picture

Status: Patch (to be ported) » Fixed

Backported.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.