Skip to content

Commit

Permalink
Merge branch '2.3' into 2.4
Browse files Browse the repository at this point in the history
* 2.3:
  Explicitly define the encoding.
  • Loading branch information
fabpot committed May 14, 2014
2 parents af0d8ea + c6c5a35 commit 24f7234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Application.php
Expand Up @@ -1124,7 +1124,7 @@ private function splitStringByWidth($string, $width)
$line = '';
foreach (preg_split('//u', $utf8String) as $char) {
// test if $char could be appended to current line
if (mb_strwidth($line.$char) <= $width) {
if (mb_strwidth($line.$char, 'utf8') <= $width) {
$line .= $char;
continue;
}
Expand Down
11 changes: 5 additions & 6 deletions Tests/Fixtures/application_renderexception_doublewidth2.txt
@@ -1,11 +1,10 @@



[Exception]
コマンドの実行中に
エラーが発生しまし
た。


[Exception]
コマンドの実行中にエラーが
発生しました。



foo
Expand Down

0 comments on commit 24f7234

Please sign in to comment.