Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed small encoding bug in routes command
  • Loading branch information
kraih committed Apr 19, 2013
1 parent 97f3e1d commit 30ddb4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -6,6 +6,7 @@
- Improved documentation.
- Improved tests.
- Fixed small html_unescape bug in Mojo::Util.
- Fixed small encoding bug in routes command.

3.95 2013-04-12
- Added finished_ok method to Test::Mojo.
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Command/routes.pm
Expand Up @@ -3,6 +3,7 @@ use Mojo::Base 'Mojolicious::Command';

use re 'regexp_pattern';
use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Util 'encode';

has description => "Show available routes.\n";
has usage => <<"EOF";
Expand Down Expand Up @@ -73,7 +74,7 @@ sub _draw {
$format .= '?' if $format && $optional;
push @parts, $format ? "$regex$format" : $regex if $verbose;

say join(' ', @parts);
say encode('UTF-8', join(' ', @parts));
}
}

Expand Down

0 comments on commit 30ddb4b

Please sign in to comment.