From 9c83796f45e634afd770b772a16209e1dbed7068 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Sat, 29 Apr 2017 18:26:20 +0200 Subject: lo-commit-stat: default to utf8, adjust regex for tdf bugzilla Change-Id: I61960512e297417eb096b3bc921974aa43f74ccc --- bin/lo-commit-stat | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/lo-commit-stat') diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat index a4e3f7d1ae32..ca3aa638644b 100755 --- a/bin/lo-commit-stat +++ b/bin/lo-commit-stat @@ -7,6 +7,9 @@ use strict; use LWP::UserAgent; use utf8; use File::Temp; +use Encode; +use open ':encoding(utf8)'; +use open ':std' => ':encoding(utf8)'; my %module_dirname = ( "core" => "", @@ -381,19 +384,16 @@ sub get_bug_name($$) $ua->env_proxy; my $response = $ua->get($url); if ($response->is_success) { - my $title = $response->title; - if ( $title =~ s/^Bug \d+ \S+ // ) { + my $title = decode('utf8', $response->title); + if ( $title =~ s/^(?:Bug $bug_number \S+|$bug_number –) // ) { print "$title\n"; return $title; } else { - print "warning: not found; using commit message (only got $title)\n"; + print "warning: not found; using commit message (only got $title)"; } - } else { - print "\n"; } - } else { - print "\n"; } + print "\n"; return $summary; } -- cgit ib/libreoffice-5-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/connectivity/Library_postgresql-sdbc-impl.mk
AgeCommit message (Expand)Author
2019-09-23do not require $(SRCDIR) in every gb_Library_set_precompiled_headerLuboš Luňák
2019-04-25Cut down on -pthread/-lpthread proliferationStephan Bergmann
2019-02-10Make LDAP support optionalAndrew Udvare