Closed (fixed)
Project:
Drush
Version:
All-versions-4.x-dev
Component:
Base system (internal API)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 May 2011 at 15:20 UTC
Updated:
12 Jun 2011 at 21:02 UTC
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
Comment #1
jonhattanFixed in master.
@v.sidorov would be nice if you provide a patch next time.
Comment #2
jonhattanComment #3
msonnabaum commentedBackported.