Bugzilla – Attachment 112006 Details for
Bug 26601
Add utf8 output to text output of overdue_notices.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Bug-26601-add-utf8-output-to-text-output-of-overdue_.patch
file_26601.txt (text/plain), 1.22 KB, created by
Mark Hofstetter
on 2020-10-19 18:37:42 UTC
(
hide
)
Description:
0001-Bug-26601-add-utf8-output-to-text-output-of-overdue_.patch
Filename:
MIME Type:
Creator:
Mark Hofstetter
Created:
2020-10-19 18:37:42 UTC
Size:
1.22 KB
patch
obsolete
>From 2b4f04f901a0be43c05a8d3644dc2753b958b818 Mon Sep 17 00:00:00 2001 >From: Mark Hofstetter <mark@hofstetter.at> >Date: Mon, 19 Oct 2020 17:28:19 +0000 >Subject: [PATCH] Bug [26601]: [add utf8 output to text output of > overdue_notices.pl] > >Sponsored-by: Styrian State Library > >text output of overdue_notices.pl is now also utf8 encoded. > >test by running: > >create ODUE text with eg german umlauts ><url>/cgi-bin/koha/tools/letter.pl?op=add_form&module=circulation&code=ODUE > >then run >perl overdue_notices.pl -text [-library <library-name>] -test > >text now inludes properly encoded umlauts >--- > misc/cronjobs/overdue_notices.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 01200d8435c..591feea1451 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -439,7 +439,7 @@ elsif ( defined $text_filename ) { > $fh = *STDOUT; > } else { > my $today = dt_from_string(); >- open $fh, ">",File::Spec->catdir ($text_filename,"notices-".$today->ymd().".txt"); >+ open $fh, ">:encoding(UTF-8)",File::Spec->catdir ($text_filename,"notices-".$today->ymd().".txt"); > } > } >. >--. >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26601
:
112006
|
112112
|
112124