Zend Framework

Problems with the Console Adapter and Unicode chars

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.8
  • Fix Version/s: 1.8.0
  • Component/s: Zend_ProgressBar
  • Labels:
    None

Description

notify() in Console.php used str_pad() in case ELEMENT_TEXT, but it doesn't account the length of unicode strings - resulting in wrong lengths and thus moving the line further left into the previous line.

The call to str_pad() should be switched to Zend_Text_MultiByte::strPad()

Activity

Hide
Ben Scholzen added a comment -

Fixed with r14558.

Show
Ben Scholzen added a comment - Fixed with r14558.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: