From acc684bc01fca37615009a778ba5927e40f52d29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Tue, 7 Jun 2011 14:03:08 -0400 Subject: [PATCH] Bug 6479 Converts all the serialseq variables to UTF-8. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Corrects a problem when an UTF-8 character is used in the serial numbering formula. The encoding became incorrect when concatenating the number in the subscriptionhistory table. Signed-off-by: Katrin Fischer To reproduce: - Create subscription with numbering pattern N° {X} - Receive 2 or more issues - Check subscription summary page and manual history fields on the edit screen Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- serials/serials-edit.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index db7620c413..9ecd09fe91 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -197,6 +197,11 @@ $template->param( subscriptions => \@subscriptionloop ); if ( $op and $op eq 'serialchangestatus' ) { + # Convert serialseqs to UTF-8 to prevent encoding problems + foreach my $seq (@serialseqs) { + utf8::decode($seq) unless utf8::is_utf8($seq); + } + my $newserial; for ( my $i = 0 ; $i <= $#serialids ; $i++ ) { my ($plan_date, $pub_date); -- 2.20.1