lo-commit-stat: use utf8 to be able to query a dash in the bug title

Change-Id: I691616575b5ea0b35e0ec0cc98db6772a7ad3b25
This commit is contained in:
Ivan Timofeev
2012-05-21 16:54:25 +02:00
committed by Petr Mladek
parent 4283c433b9
commit 521ae23254

View File

@@ -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 {