summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-05-21 16:54:25 +0200
committerPetr Mladek <pmladek@suse.cz>2012-05-21 16:58:57 +0200
commit000a9304b79b2825c6f0606649b4971673667f62 (patch)
tree2d7b74a110fe21d94d237be4d4edf1a88e1ebe2e
parent11f2d5842c45624f540becab4cc6833642e24b26 (diff)
lo-commit-stat: use utf8 to be able to query a dash in the bug title
Change-Id: I691616575b5ea0b35e0ec0cc98db6772a7ad3b25 Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rwxr-xr-xbin/lo-commit-stat3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index a61b32641747..157292448108 100755
--- a/bin/lo-commit-stat
+++ b/bin/lo-commit-stat
@@ -5,6 +5,7 @@
use strict;
use LWP::UserAgent;
+use utf8;
my $main_repo="core";
my @pieces=("binfilter", "dictionaries", "help", "translations");
@@ -297,7 +298,7 @@ sub get_bug_name($$)
my $response = $ua->get($url);
if ($response->is_success) {
my $title = $response->title;
- if ( $title =~ s/^Bug \d+ . // ) {
+ if ( $title =~ s/^Bug \d+ – // ) {
print "$title\n";
return $title;
} else {