Skip to content

Commit

Permalink
Explicitly define the encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed May 14, 2014
1 parent 7b93db5 commit 619ff58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,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
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@



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


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



foo
Expand Down

0 comments on commit 619ff58

Please sign in to comment.