[Bug 6554] New: Broken encoding in members home/search page
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bug #: 6554 Summary: Broken encoding in members home/search page Classification: Unclassified Change sponsored?: --- Product: Koha Version: rel_3_4 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: Patrons AssignedTo: kyle.m.hall@gmail.com ReportedBy: dubyk@library.lviv.ua QAContact: koha-bugs@lists.koha-community.org CC: gmcharlt@gmail.com Created attachment 4558 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4558 members-home.pl (Ukrainian) Two pages /cgi-bin/koha/members/members-home.pl /cgi-bin/koha/members/member.pl displayed incorrectly for languages with multibytes encodings. Screenshot attached for Ukrainian, Russian, Greek French, Spanish, Arabic ... Template member.tt look good - all translated parts is readable. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #1 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-07-05 15:34:58 UTC --- Created attachment 4560 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4560 member.pl (Ukrainian) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #2 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-07-05 15:36:04 UTC --- Created attachment 4561 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4561 members-home.pl (Russian) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #3 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-07-05 15:36:42 UTC --- Created attachment 4562 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4562 members-home.pl (Greek) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #4 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-07-05 15:37:26 UTC --- Created attachment 4563 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4563 members-home.pl (French) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #5 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-07-05 15:38:57 UTC --- Created attachment 4564 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4564 members-home.pl (Arabic) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Serhij Dubyk <dubyk@library.lviv.ua> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |critical -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Serhij Dubyk <dubyk@library.lviv.ua> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|rel_3_4 |master -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #6 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-18 19:06:54 UTC --- Created attachment 5962 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5962 -- /cgi-bin/koha/members/members-home.pl (Russian) Tested in Koha 3.05.00.011. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #7 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-18 19:12:44 UTC --- (In reply to comment #6)
Created attachment 5962 [details] -- /cgi-bin/koha/members/members-home.pl (Russian)
Tested in Koha 3.05.00.011.
Encoding of members.tt looks good: <pre> [% INCLUDE 'doc-head-open.inc' %] <title>Коха › Посетители [% IF ( searching ) %] › Результаты поиска [% END %]</title>[% INCLUDE 'doc-head-close.inc' %] </head> <body>[% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Начало</a>› [% IF ( searching ) %]<a href="/cgi-bin/koha/members/members-home.pl">Посетители</a>› Результаты поиска[% ELSE %]Посетители[% END %]</div> <div id="doc2" class="yui-t7"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div class="yui-g">[% INCLUDE 'patron-toolbar.inc' %] [% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>[% IF ( no_branches ) %]<p>There are <strong>no libraries defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/branches.pl">add a library</a>.[% ELSE %]An administrator must define at least one library.[% END %]</p>[% END %] [% IF ( no_categories ) %]<p>There are <strong>no patron categories defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/categorie.pl">add a patron category</a>.[% ELSE %]An administrator must define at least one patron category.[% END %]</p>[% END %]</div>[% END %] <div class="browse">Поиск по фамилии: [% FOREACH letter IN letters %] <a href="/cgi-bin/koha/members/member.pl?quicksearch=1&surname=[% letter.letter %]">[% letter.letter %]</a>[% END %] </div>[% IF ( resultsloop ) %] <div id="searchheader"> <h3>Результаты от [% from %] по [% to %] с [% numresults %] для поиска по запросу [% IF ( member ) %]'<span class="ex">[% member %]</span>'[% END %][% IF ( surname ) %]'<span class="ex">[% surname %]</span>'[% END %]</h3></div> <div class="searchresults"> <table id="memberresultst"> <thead> <tr> <th>Билет</th> <th>Наименование </th> <th>Категория</th> <th>Библиотека</th> <th>Истекает на</th> <th>Просрочки/Выдачи</th> <th>Пеня</th> <th>Примечание для оборота</th> <th> </th> </tr> </thead> <tbody>[% FOREACH resultsloo IN resultsloop %] [% IF ( resultsloo.overdue ) %] <tr class="problem">[% ELSE %] [% UNLESS ( loop.odd ) %] <tr class="highlight">[% ELSE %] <tr>[% END %] [% END %] <td>[% resultsloo.cardnumber %]</td> <td style="white-space: nowrap;"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]">[% resultsloo.surname %], [% resultsloo.firstname %]</a> <br />[% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% resultsloo.city %][% IF ( resultsloo.state ) %],[% END %][% END %][% IF ( resultsloo.state ) %] [% resultsloo.state %][% END %] [% IF ( resultsloo.zipcode ) %] [% resultsloo.zipcode %][% END %][% IF ( resultsloo.country ) %], [% resultsloo.country %][% END %]</td> <td>[% resultsloo.category_description %] ([% resultsloo.category_type %])</td> <td>[% resultsloo.branchcode %]</td> <td>[% resultsloo.dateexpiry %]</td> <td>[% IF ( resultsloo.overdues ) %]<span class="overdue"><strong>[% resultsloo.overdues %]</strong></span>[% ELSE %][% resultsloo.overdues %][% END %]/[% resultsloo.issues %]</td> <td>[% IF ( resultsloo.fines < 0 ) %]<span class="credit">[% resultsloo.fines %]</span>[% ELSIF resultsloo.fines > 0 %] <span class="debit"><strong>[% resultsloo.fines %]</strong></span> [% ELSE %] [% resultsloo.fines %] [% END %]</td> <td>[% resultsloo.borrowernotes %]</td> <td>[% IF ( resultsloo.category_type ) %] <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% resultsloo.borrowernumber %]&category_type=[% resultsloo.category_type %]">Редактировать</a> [% ELSE %] <!-- try with categorycode if no category_type --> [% IF ( resultsloo.categorycode ) %] <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% resultsloo.borrowernumber %]&categorycode=[% resultsloo.categorycode %]">Редактировать</a> [% ELSE %] <!-- if no categorycode, set category_type to A by default --> <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% resultsloo.borrowernumber %]&category_type=A">Редактировать</a>[% END %] [% END %]</td> </tr>[% END %] </tbody> </table> <div class="pages">[% IF ( multipage ) %][% paginationbar %][% END %]</div> </div>[% ELSE %] [% IF ( searching ) %] <div class="dialog alert">Ничего не найдено</div>[% END %] [% END %] </div> </div> <div class="yui-g">[% INCLUDE 'members-menu.inc' %] </div> </div> </div> <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> <script type="text/javascript">//<![CDATA[ $(document).ready(function() { $("#memberresultst").tablesorter({ sortList: [[1,0]], widgets: ['zebra'] }); }); //]]> </script>[% INCLUDE 'intranet-bottom.inc' %] </pre> -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #8 from Dobrica Pavlinusic <dpavlin@rot13.org> 2011-10-24 18:11:09 UTC --- Created attachment 6041 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6041 Clean up Koha utf-8 string handling We are having same problem, but in our case we don't use localized templates but have utf-8 characters inside MySQL which get double utf-8 encoded before they are sent to browser. If you feel brave, you can try attached patch with fixes problem for us. Below is short summary of changes from patch: This patch tries to clean up utf-8 handling in Koha. In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :utf8 handler is used removing various "wide character" warnings as side-effect. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |ASSIGNED CC| |paul.poulain@biblibre.com Patch Status|--- |Needs Signoff AssignedTo|kyle.m.hall@gmail.com |dubyk@library.lviv.ua --- Comment #9 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-26 16:54:30 UTC --- There is a patch provided, I update to "needs signoff" However, I must point that I can't reproduce the behaviour in french anymore. There used to be a problem on this specific page (member-home.pl) a few weeks ago, it's now fixed. I didn't reported the problem, because I thought it could be my translation that was broken. However, I just saw today that, if the list of categorycodes contains a diacritic, then the New button get them double encoded (see attachment) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #10 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-26 16:55:48 UTC --- Created attachment 6065 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6065 encoding problem in member-home.pl in 3.6.0 (another one) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #11 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 08:03:13 UTC --- I apply this patch to 3.6.0 installed. Unfortunately, after this patch, the system of translated templates becomes completely broken. (also tried to generate the translated templates again - does not help). One plus - the result of patron search now is well displayed - see new attached member.pl.png and others. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #12 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 08:06:10 UTC --- Created attachment 6070 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6070 member.pl (Ukrainian) after patch1 -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #13 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 08:08:16 UTC --- Created attachment 6071 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6071 OPAC search (Ukrainian, after patch1) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #14 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 08:09:05 UTC --- Created attachment 6072 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6072 Staff home page (Ukrainian) after patch1 -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #15 from Dobrica Pavlinusic <dpavlin@rot13.org> 2011-10-27 11:03:04 UTC --- Created attachment 6073 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6073 remove unused code, cleanup ident and correctly mark templates as utf-8 Attached patch fixes template encoding. It's artificially large since I also included removal of unused code, but only relevant change to last version is ENCODING => 'utf8' in C4::Template around like 65 in Template->new. This change is based on utf-8 hint from Template::FAQ since our templates don't have BOM -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #16 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:41:05 UTC --- The result of testing the second patch. I checked a few dozen pages opac and staff and saw: 1) pages of patron home andd search now looks good; 2) most of the tested pages too good; 3) a few pages or places where there are still problems - a) the library name on each page; b) search result in the catalog (opac and staff); c) page modify server Z39-50; d) page with system parameters (descriptions from ..pref..po) (also added screenshots for this) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #17 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:42:10 UTC --- Created attachment 6076 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6076 OPAC search (Ukrainian, after patch2) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #18 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:43:21 UTC --- Created attachment 6077 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6077 STAFF search (Ukrainian, after patch 2) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #19 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:44:26 UTC --- Created attachment 6078 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6078 member search (ukrainian, example of good page after patch 2) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #20 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:45:30 UTC --- Created attachment 6079 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6079 z39-50 edit page (ukrainian, after patch 2) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #21 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 14:47:00 UTC --- Created attachment 6080 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6080 preferences page (ukrainian, after patch 2) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #22 from Dobrica Pavlinusic <dpavlin@rot13.org> 2011-10-27 19:29:24 UTC --- Created attachment 6083 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6083 added session, CGI queries and all Zebra/PAR utf8 decode Thanks for report. Attached patch adds: - encoding for data from session (like library name) - utf8 force for CGI queries which include utf-8 text[1] - decode all utf8 results from Zebra/PAR 1: I would guess that I missed some of pages where utf-8 text is posted to Koha, but setting it everywhere would break upload according to CGI docs, so I'm conservative here. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #23 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 22:05:39 UTC --- I applied the patch and re-checked as many pages as able. It seems there are only two places where the problem appears with encoding, it is 1) Search OPAC and 2) Search STAFF. Your patch however partially corrected these pages (on added 2 screenshot I marked these improvements by green). -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #24 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 22:07:34 UTC --- Created attachment 6084 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6084 opac_search.pl (ukrainian, after patch 3) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #25 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-27 22:08:42 UTC --- Created attachment 6085 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6085 staff search.pl (ukrainian, after patch 3) -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #26 from Dobrica Pavlinusic <dpavlin@rot13.org> 2011-10-28 09:50:53 UTC --- This is very strange. Do tables in your database use utf-8 encoding? Could you dump your Koha database somewhere and mail me link to dpavlin@rot13.org so I can test with your data? I already installed languages, so this would help me in debugging without bothering you for each update. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #27 from Serhij Dubyk <dubyk@library.lviv.ua> 2011-10-28 23:50:58 UTC --- Created attachment 6108 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6108 addbiblio.pl dublicate warning (ukrainian, after patch 3) yet another place -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #28 from M. de Rooy <m.de.rooy@rijksmuseum.nl> 2011-11-02 13:49:23 UTC --- Just some "fast" preliminary QA remarks from glimsing through the patches. I agree that encoding data in Template.pm is actually not correct and that specifying utf8 on std output with binmode or use open is a better practice than what is done in current Koha. Check showmarc.p/opac-showmarc.pl where I recently decoded output from template to prevent double encoding. This is a place that therefore is touched also by your patch. Another recent bug report pointed out that using :encoding(utf8) is preffered above :utf8. The latter form is a lazy one in Perl. I saw that you decode output from the Zoom connection in Search.pm. Without further investigation I am inclined to think that this is not (always) correct. Apparently, you assume that the output from Zoom is utf8 octets. Isn't it Latin and doesn't Zoom allow you to pass a charset parameter like charset=latin,utf8 in order to change encoding? Could you verify? -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #29 from M. de Rooy <m.de.rooy@rijksmuseum.nl> 2011-11-02 13:56:00 UTC --- Still another comment came up: It seems that you only need to decode data from XSLT processor if you did not specify UTF-8 already on the stylesheet itself. In most cases (or all?) the xslt templates already do that. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6041|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=6752 -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6073|0 |1 is obsolete| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dubyk@library.lviv.ua |dpavlin@rot13.org -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Patch Status|Needs Signoff |Does not apply --- Comment #30 from Katrin Fischer <katrin.fischer@bsz-bw.de> 2011-12-21 06:35:36 UTC --- It seems there is something wrong with the attached patch: [~/kohaclone (nso_6554)]> git bz apply 6554 Bug 6554 - Broken encoding in members home/search page added session, CGI queries and all Zebra/PAR utf8 decode Apply? [yn] y Patch format detection failed. Patch left in /tmp/added-session-CGI-queries-and-all-ZebraPAR-utf8-de-iXfemD.patch -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #31 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- Dobrica, Could you please resubmit the patch for this bug in git format? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 MJ Ray (software.coop) <mjr@software.coop> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6083|0 |1 is obsolete| | --- Comment #32 from MJ Ray (software.coop) <mjr@software.coop> --- Created attachment 10118 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10118&action=edit Bug 6554 - added session CGI queries and all ZebraPAR utf8_decode Rebased from added-session-CGI-queries-and-all-ZebraPAR-utf8-de-O_t1Z2.patch Original-Author: Dobrica Pavlinusic <dpavlin@rot13.org> -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 MJ Ray (software.coop) <mjr@software.coop> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff CC| |mjr@software.coop -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|PATCH-Sent (DO NOT USE) |P3 --- Comment #33 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I installed uk-UA (Ukrainian) and tried to replicate the display problems. I checked the item type page, creating new itemtypes with "ukrainian" (copied some strings from other places) descriptions, I checked the Z39.50 page and the system preferences. I am not sure how to test this, without being able to replicate the problem. Dobrica, can you help? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Mirko Tietgen <mirko@abunchofthings.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion CC| |mirko@abunchofthings.net --- Comment #34 from Mirko Tietgen <mirko@abunchofthings.net> --- Is this magically resolved without the patch? If not, please somebody provide a test plan pointing out 1. how to reproduce the problem 2. what to look for after patching I'm setting this to "in discussion" in the hope that something constructive will happen. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=9772 -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=9897 -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff Patch complexity|--- |Medium patch -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #10118|0 |1 is obsolete| | --- Comment #35 from Dobrica Pavlinusic <dpavlin@rot13.org> --- Created attachment 16780 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16780&action=edit Bug 6554 - make Koha internally utf-8 clean In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :utf8 handler is used removing various "wide character" warnings as side-effect. Test scenario: 1. make sure that you have utf-8 characters in your biblio records, patrons, categories etc. 2. try to search records on intranet and opac which contain utf-8 characters 3. install language which has utf-8 characters, e.g. uk-UA dpavlin@koha-dev:/srv/koha/misc/translator(bug_6554) $ PERL5LIB=/srv/koha/ perl translate install uk-UA 4. switch language to uk-UA and verify that templates display correctly 5. test search and Z39.50 search and verify that caracters are correct -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16780|0 |1 is obsolete| | --- Comment #36 from Dobrica Pavlinusic <dpavlin@rot13.org> --- Created attachment 16797 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16797&action=edit Bug 6554 - make Koha internally utf-8 clean In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :encoding(utf8) handler is used so it also removes various "wide character" warnings as side-effect. Test scenario: 1. make sure that you have utf-8 characters in your biblio records, patrons, categories etc. 2. try to search records on intranet and opac which contain utf-8 characters 3. install language which has utf-8 characters, e.g. uk-UA dpavlin@koha-dev:/srv/koha/misc/translator(bug_6554) $ PERL5LIB=/srv/koha/ perl translate install uk-UA 4. switch language to uk-UA and verify that templates display correctly 5. test search and Z39.50 search and verify that caracters are correct This version uses more strict :encoding(utf8) and removes unneeded decode of XSLT which comes back as correctly encoded strings. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16797|0 |1 is obsolete| | --- Comment #37 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 16857 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16857&action=edit [SIGNED-OFF] Bug 6554 - make Koha internally utf-8 clean In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :encoding(utf8) handler is used so it also removes various "wide character" warnings as side-effect. Test scenario: 1. make sure that you have utf-8 characters in your biblio records, patrons, categories etc. 2. try to search records on intranet and opac which contain utf-8 characters 3. install language which has utf-8 characters, e.g. uk-UA dpavlin@koha-dev:/srv/koha/misc/translator(bug_6554) $ PERL5LIB=/srv/koha/ perl translate install uk-UA 4. switch language to uk-UA and verify that templates display correctly 5. test search and Z39.50 search and verify that caracters are correct Signed-off-by: Owen Leonard <oleonard@myacpl.org> I followed the test plan, adding utf-8 characters to library names, patron categories, titles, and authorized values. I tried the uk-UA translation and everything looked good. When performing Z39.50 searches for titles containing utf-8 characters I got results which were still occasionally contaminated with dummy characters [?] but I assume this is Z39.50's fault not the patch's. -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA QA Contact|koha-bugs@lists.koha-commun |m.de.rooy@rijksmuseum.nl |ity.org | --- Comment #38 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Good to see this patch! I once tried to get a similar change into Koha with bug 8872. I stumbled over the numerous occurrences where url parameters in scripts are not properly decoded. Finally, the change in Templates was obsoleted. Note that I see you working with binmode in Output.pm; wouldn't it be better to just utf8-encode the data before you print in output_with_http_headers to prevent some kind of improper use? Furthermore, are you really sure you covered all instances in scripts? When using XSLT, I now have a lot of troubled characters. Note that the xslt files now do contain UTF-8 in the headers. Probably, we are mixing encoded data with decoded data now. Could you please have a look and send a followup? -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #39 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- This would work for me: Output.pm (binmode removed), output_with_http_headers: $data =~ s/\&\;amp\; /\&\; /g; utf8::encode($data); print $query->header($options), $data; XSLT.pm (XSLTParse4Display): my $newxmlrecord = $stylesheet->{$xslfilename}->output_as_chars($results); ? utf8::decode($newxmlrecord); return $newxmlrecord; Note that output_string seems to be deprecated. Decoding newxmlrecord seems to be not necessary.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #40 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #37)
When performing Z39.50 searches for titles containing utf-8 characters I got results which were still occasionally contaminated with dummy characters [?] but I assume this is Z39.50's fault not the patch's.
Sure that your settings per server are correct? Lot of US targets still use MARC-8, some UTF-8.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #41 from Dobrica Pavlinusic <dpavlin@rot13.org> --- Created attachment 16905 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16905&action=edit Bug 6554 - followup - encode output, XSLT encoding from templates Encode output data instead of using binmode to be more compliant with various usage (e.g. plack). XSLT output_string seems to be depriciated call, decoding of newxmlrecord seems to be not necessary. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #42 from Dobrica Pavlinusic <dpavlin@rot13.org> --- (In reply to comment #38)
Could you please have a look and send a followup?
I totally agree so I submitted followup with correct acreditation. Is & regexp needed? I added warn, and don't see any output from it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16905|0 |1 is obsolete| | --- Comment #43 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16929 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16929&action=edit Bug 6554 QA Followup Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Removing binmode, now encoding data in output_with_http_headers. Replaced output_string by output_as_chars in XSLTParse4Display. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #44 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Dobrica, We are not there yet. I went diagonally through opac and could not find a problem. But in staff I found this one: Do a patron search on name with diacritic, say musée. No patron matched 'musée' Wrong parameter decoding. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #45 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16930 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16930&action=edit Merge branch 'bug_9919' into 3.12-master Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Simple fix for a bad problem. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16930|0 |1 is obsolete| | --- Comment #46 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Comment on attachment 16930 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16930 Merge branch 'bug_9919' into 3.12-master Oops -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #47 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16931 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16931&action=edit Bug 6554 - make Koha internally utf-8 clean In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :encoding(utf8) handler is used so it also removes various "wide character" warnings as side-effect. Test scenario: 1. make sure that you have utf-8 characters in your biblio records, patrons, categories etc. 2. try to search records on intranet and opac which contain utf-8 characters 3. install language which has utf-8 characters, e.g. uk-UA dpavlin@koha-dev:/srv/koha/misc/translator(bug_6554) $ PERL5LIB=/srv/koha/ perl translate install uk-UA 4. switch language to uk-UA and verify that templates display correctly 5. test search and Z39.50 search and verify that caracters are correct Signed-off-by: Owen Leonard <oleonard@myacpl.org> I followed the test plan, adding utf-8 characters to library names, patron categories, titles, and authorized values. I tried the uk-UA translation and everything looked good. When performing Z39.50 searches for titles containing utf-8 characters I got results which were still occasionally contaminated with dummy characters [?] but I assume this is Z39.50's fault not the patch's. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16857|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16929|0 |1 is obsolete| | --- Comment #48 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16932 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16932&action=edit Bug 6554 QA Followup Removing binmode, now encoding data in output_with_http_headers. Replaced output_string by output_as_chars in XSLTParse4Display. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #49 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Still another one: look for a diacritic in the title within Serials module. Another encoding error visible. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #50 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Acquisitions: look for é in the vendor field. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #51 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #50)
Acquisitions: look for é in the vendor field. Order search too.
Administration: look for pref é. Does not exist, but encoding error. That makes them all for a short tour through the staff client (with comment 44, 49 and 50). Please check if you can find another one :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@biblibre.co | |m --- Comment #52 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to comment #51)
(In reply to comment #50)
Acquisitions: look for é in the vendor field. Order search too.
Administration: look for pref é. Does not exist, but encoding error.
That makes them all for a short tour through the staff client (with comment 44, 49 and 50). Please check if you can find another one :)
I didn't really dive into this issue, but encoding errors don't appears without the last patch ("QA Followup"), at least for member and syspref search. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #53 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #52)
I didn't really dive into this issue, but encoding errors don't appears without the last patch ("QA Followup"), at least for member and syspref search.
I will check it too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #54 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #53)
(In reply to comment #52)
I didn't really dive into this issue, but encoding errors don't appears without the last patch ("QA Followup"), at least for member and syspref search.
I will check it too.
Jonathan had a line commented out. So this is no issue. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #55 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16960 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16960&action=edit 6554 Followup for preferences.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #56 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16961 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16961&action=edit Bug 6554 Followup for circulation patron search Adds decoding for patron name. Test plan: Go to Circulation. Enter a name with a diacritic. Find that patron or get a message with the name you entered without converted characters. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16960|0 |1 is obsolete| | --- Comment #57 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16962 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16962&action=edit 6554 Followup for preferences.pl Decodes searchfield. Test plan: Look for é in preferences. You should no longer see: é -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #58 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16963 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16963&action=edit Bug 6554: Followup for serial search Adds decoding for title, publisher and vendor. Test plan: Go to serials. Search for a diacritic in title. Check. Go to Advanced search (in Serials). Search for diacritic in title, vendor or publisher. Check. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #59 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16964 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16964&action=edit Bug 6554: Followup for acquisitions Adds decoding for url parameter. Test plan: Search for expressions with diacritics in vendor search, orders search. Also try Orders search, Advanced search (within Acq). Check what you see. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #60 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- I resolved the points that i found. This should still receive some signoff. And some people willing to check if they can still find another problem with url parameter handling.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #61 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- There is something with: 6554 Followup for preferences.pl Apply? [yn] y fatal: cannot convert from UTF-8utf-8 to UTF-8 Patch left in /tmp/6554-Followup-for-preferencespl-SMvTX9.patch Will submit that one again. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16962|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #62 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16966 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16966&action=edit Bug 6554: Followup for preferences.pl Decodes searchfield. Test plan: Look for e accent in preferences. You should no longer see converted chars. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16966|0 |1 is obsolete| | --- Comment #63 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16968 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16968&action=edit Bug 6554: Followup for preferences.pl Decodes searchfield. Test plan: Look for e accent in preferences. You should no longer see converted chars. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16961|0 |1 is obsolete| | --- Comment #64 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 16969 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16969&action=edit Bug 6554 Followup for circulation patron search Adds decoding for patron name. Test plan: Go to Circulation. Enter a name with a diacritic. Find that patron or get a message with the name you entered without converted characters. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #65 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Resubmitted the followups for acq and prefs. They did not need URI::Escape after all. CGI handles that correctly. Simplification :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #66 from Dobrica Pavlinusic <dpavlin@rot13.org> --- M. de Rooy thanks a lot for your effort in locating places which need additional utf-8 encoding and follow-up patches. I would prefer to leave utf-8 decoding of parameters to CGI module using: use CGI qw(-utf8); This ensures that we are decoding all parameters and produce much less code. Additional benefit is that we are not missing any parameters, possibly creating undecoded params which can break encoding down the road. Extract from CGI documentation: -utf8 This makes CGI.pm treat all parameters as UTF-8 strings. Use this with care, as it will interfere with the processing of binary uploads. It is better to manually select which fields are expected to return utf-8 strings and convert them using code like this: use Encode; my $arg = decode utf8=>param('foo'); Can I squash your followups in one patch and use CGI qw(-utf8) to solve it? I think we might also benefit from README.utf-8 which explains how to handle encoding in Koha for easier reference in future. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16931|0 |1 is obsolete| | --- Comment #67 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16984 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16984&action=edit [SIGNED-OFF] Bug 6554 - make Koha internally utf-8 clean In current implementation (mostly commented out in this patch) uses heuristic to guess which strings need decoding from utf-8 to binary representation and doesn't support utf-8 characters in templates and has problems with utf-8 data from database. With this changes, Koha perl code always uses utf-8 encoding correctly. All incomming data from database is allready correctly marked as utf-8, and decoding of utf8 is required only from Zebra and XSLT transfers which don't set utf-8 flag correctly. For output, standard perl :encoding(utf8) handler is used so it also removes various "wide character" warnings as side-effect. Test scenario: 1. make sure that you have utf-8 characters in your biblio records, patrons, categories etc. 2. try to search records on intranet and opac which contain utf-8 characters 3. install language which has utf-8 characters, e.g. uk-UA dpavlin@koha-dev:/srv/koha/misc/translator(bug_6554) $ PERL5LIB=/srv/koha/ perl translate install uk-UA 4. switch language to uk-UA and verify that templates display correctly 5. test search and Z39.50 search and verify that caracters are correct Signed-off-by: Owen Leonard <oleonard@myacpl.org> I followed the test plan, adding utf-8 characters to library names, patron categories, titles, and authorized values. I tried the uk-UA translation and everything looked good. When performing Z39.50 searches for titles containing utf-8 characters I got results which were still occasionally contaminated with dummy characters [?] but I assume this is Z39.50's fault not the patch's. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Already signed, add mine. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16932|0 |1 is obsolete| | --- Comment #68 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16985 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16985&action=edit [SIGNED-OFF] Bug 6554 QA Followup Removing binmode, now encoding data in output_with_http_headers. Replaced output_string by output_as_chars in XSLTParse4Display. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> No errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16963|0 |1 is obsolete| | --- Comment #69 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16986 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16986&action=edit [SIGNED-OFF] Bug 6554: Followup for serial search Adds decoding for title, publisher and vendor. Test plan: Go to serials. Search for a diacritic in title. Check. Go to Advanced search (in Serials). Search for diacritic in title, vendor or publisher. Check. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works ok, no errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16964|0 |1 is obsolete| | --- Comment #70 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16987 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16987&action=edit [SIGNED-OFF] Bug 6554: Followup for acquisitions Adds decoding for url parameter. Test plan: Search for expressions with diacritics in vendor search, orders search. Also try Orders search, Advanced search (within Acq). Check what you see. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16968|0 |1 is obsolete| | --- Comment #71 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16988 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16988&action=edit [SIGNED-OFF] Bug 6554: Followup for preferences.pl Decodes searchfield. Test plan: Look for e accent in preferences. You should no longer see converted chars. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works ok, no errors. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16969|0 |1 is obsolete| | --- Comment #72 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 16989 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16989&action=edit [SIGNED-OFF] Bug 6554 Followup for circulation patron search Adds decoding for patron name. Test plan: Go to Circulation. Enter a name with a diacritic. Find that patron or get a message with the name you entered without converted characters. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |bgkriegel@gmail.com --- Comment #73 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- I found that this solves the problem reported in Bug 9579. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #74 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #73)
I found that this solves the problem reported in Bug 9579. Thanks, Bernardo. If you are sure about solving the other problem, please mark it as such on that report. I try to have a look too tomorrow.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Karam Qubsi <karamqubsi@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |karamqubsi@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #75 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to comment #74)
I found that this solves the problem reported in Bug 9579. Thanks, Bernardo. If you are sure about solving the other problem, please mark it as such on
(In reply to comment #73) that report. I try to have a look too tomorrow.
I have my dev install loaded with a sample of arabic records (from Bug 9579), also did an install trying to figure out (using chr|icu, dom|grs1). When testing I tried a search and then the faceted search was right (that's the problem in 9579). So, your changes apparently solved that. I'll report on that bug. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 mathieu saby <mathieu.saby@univ-rennes2.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mathieu.saby@univ-rennes2.f | |r --- Comment #76 from mathieu saby <mathieu.saby@univ-rennes2.fr> --- Thank you Bernardo! From the title of this bug, I could never imagine it solved the problem of arabic facets... Mathieu Saby -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Broken encoding in members |Resolve encoding problems |home/search page |with corrected UTF8 | |handling in templates --- Comment #77 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #76)
Thank you Bernardo! From the title of this bug, I could never imagine it solved the problem of arabic facets...
Mathieu Saby
I agree that we should change the title of this report. It started with wrong encoding of members page, but it corrects UTF-8 handling in processing templates all through Koha. Renaming it from [Broken encoding in members home/search page] to: [Resolve encoding problems with corrected UTF8 handling in templates] If you have something better, feel free.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Patrons |Architecture, internals, | |and plumbing -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #78 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #66)
I would prefer to leave utf-8 decoding of parameters to CGI module using: use CGI qw(-utf8); This ensures that we are decoding all parameters and produce much less code. Additional benefit is that we are not missing any parameters, possibly creating undecoded params which can break encoding down the road.
Use this with care, as it will interfere with the processing of binary uploads. It is better to manually select which fields are expected to return utf-8 strings and convert them using code like this: my $arg = decode utf8=>param('foo');
Can I squash your followups in one patch and use CGI qw(-utf8) to solve it?
I think we might also benefit from README.utf-8 which explains how to handle encoding in Koha for easier reference in future.
Thanks, Dobrica. The choice between -utf8 flag for CGI and individual decodes is arbitrary. The utf8 flag may do some unneeded decodes and could affect binary uploads, but I am not sure if that really interferes with Koha somewhere. The decode option is marked as safer, adds little more code but probably does less decodes. Disadvantage is forgetting to decode one parameter. At this moment in time, I would prefer to leave the patches on this report as they are now. We tested; your change should go in now. I will open up a new report to catch the remaining places of incorrect parameter encoding. And will send a short mail to the dev list for further opinions on the best practice in this regard. This is easily addressed later. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #79 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- I also tested this with record containing Chinese characters. No problem with displaying the record, editing and saving. Dobrica: Note that some decodes are not always visible in the script. Addbiblio for instance 'hides' them in the Biblio module: TransformHtmlToMarc. Consistency in Koha is a large and continuing project :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |9951 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #80 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- QA Comment: This report is pending for some time now. Dobrica's change (incl. the first followup) is a great fix for UTF-8 handling in template processing. We make Koha adhere to "Decode what goes in, encode what goes out". It is a welcome fix for non-English languages with diacritics. But it does have quite some impact. All occurrences where cgi parameters with utf8 chars not being decoded, will show up. Note that you could argue that these place are actually existing bugs that were hidden by the templates bug. My strong recommendation is nevertheless to push this patch. We have repaired the most important and visible occurrences of wrong parameter handling. I opened up a new report, bug 9951, to add new ones. I checked the staff client via interface and went through all opac scripts. With tests from Owen, Dobrica, Bernardo and myself with various languages and characters, this patch has a solid base. So, have courage, RM :) Code looks good to me. qa script does not complain. Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Dobrica Pavlinusic <dpavlin@rot13.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=9579 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #81 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- This patch has been pushed to master. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Colin Campbell <colin.campbell@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |colin.campbell@ptfs-europe. | |com --- Comment #82 from Colin Campbell <colin.campbell@ptfs-europe.com> --- This patch breaks Koha.. On login you receive Modification of a read-only value attempted at /home/cc/kohaclone/C4/Context.pm line 1107. Problem is the call to decode within map $_ is an alias to a value which may be read-only -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #83 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Colin, I just checked and can log into master just fine - is there maybe another condition that needs to be met to make the problem occur? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #84 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 17179 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17179&action=edit Bug 6554: Followup for decoding in userenv Thanks to Colin. He reported this problem: Modification of a read-only value attempted at C4/Context.pm line 1107. $_ is an alias to a value which may be read-only in the map call. Could not reproduce this error, but this should prevent it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #85 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Colin: I cannot reproduce either. But could you test the latest patch attached? Thanks. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #86 from Colin Campbell <colin.campbell@ptfs-europe.com> --- I think the problem is with perls greater than 5.10 the map documentation suggests you should use a loop in this case. I' test and let you know -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #87 from Jonathan Druart <jonathan.druart@biblibre.com> --- I cannot reproduce either with perl v.5.14, but I confirm the code should be changed. If utf8::decode($_) modifies $_, the error will occur. However, I think this patch should be in a different report. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #88 from Paul Poulain <paul.poulain@biblibre.com> --- (In reply to comment #86)
I think the problem is with perls greater than 5.10 the map documentation suggests you should use a loop in this case. I' test and let you know
could it be a problem of a login with mysql user/password ? There are problems/errors like this sometimes with the mysql login, that is borrowernumber=0 and many other infos missing. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |ASSIGNED --- Comment #89 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #87)
However, I think this patch should be in a different report.
I left it here because the actual change with the map statement is introduced in this report. It is not a side effect. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #90 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #88)
could it be a problem of a login with mysql user/password ? There are problems/errors like this sometimes with the mysql login, that is borrowernumber=0 and many other infos missing.
I had no problems with the install login.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #91 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Last patch needs signoff. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #92 from Colin Campbell <colin.campbell@ptfs-europe.com> --- Created attachment 17186 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17186&action=edit Proposed Patch I've tested Marcel's patch and it works...however I've also sent my own version which removes the map. The reason is that multi-statement blocks in maps can lead to maintenance headaches and are a bit harder to track down if an error occurs (perlcritic on stricter settings complains). The map doc suggests a loop for this case. I've kept the comment in but on CGI::Session's homepage the utf8 bugs are marked as resolved -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #93 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #92)
Created attachment 17186 [details] [review] Proposed Patch
I've tested Marcel's patch and it works...however I've also sent my own version which removes the map. The reason is that multi-statement blocks in maps can lead to maintenance headaches and are a bit harder to track down if an error occurs (perlcritic on stricter settings complains). The map doc suggests a loop for this case.
I've kept the comment in but on CGI::Session's homepage the utf8 bugs are marked as resolved
OK I will check it right away. Thanks. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17179|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16984|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16985|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16986|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16987|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16988|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #16989|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #94 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 17187 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17187&action=edit Bug 6554 Fix error caused by modifying $_ in a map Error 'Modification of a read-only value attempted' triggered on login because of manipulation of $_ in the map Moved the mod to a loop as recommended in the doc for map Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17186|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #95 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- QA Comment: Patch of Colin is a followup rewriting the map statement introduced here in setuserenv (Context.pm). Several people could not reproduce the problem Colin reported. But this is a code improvement and fixes his problem. Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #96 from Karam Qubsi <karamqubsi@gmail.com> --- Hiو I found an other problem related to this bug that not solved yet on the master if you create a new staff user named with non latin characters like : كرم " my name in Arabic " when log in there is no problem the name is appears but when you change the page go to any other page " like Circulation" the name is gooing to be like this :( ÙØ±Ù , and if we go back to the main page the name still in these characters ÙØ±Ù If we go the the Global system preferences page there is no problem there I will attach photos about this Thanks :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #97 from Karam Qubsi <karamqubsi@gmail.com> --- Created attachment 17327 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17327&action=edit NonLatin user name on Koha pages This is how the name كرم appears -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #98 from Karam Qubsi <karamqubsi@gmail.com> --- Created attachment 17328 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17328&action=edit Non latin user names on the Pereferences page (good) On the System preferences page there is no problems -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #99 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- I can reproduce this problem using Karam's name. What I found so far is: 1) Fresh login, session cookie (in DB) records correctly userid id: كر 2) click on logo (or any link) and now session cookie has userid mangled id: "\xD9\x83\xD8\xB1\xD9\x85" 3) click any page, same result 4) Go to Administration > System Preferences, and now session cookie has correct userid again (also loggedinusername) So, could be something related with encoding at cookie writing time. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #100 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- I confirm this error for a userid with utf8 chars. Can reproduce it. But I prefer to open a new report for it. Bug 10019. Sending a patch under that report now. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17327|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17328|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10019 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #101 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- This patch has been pushed to master and 3.12.x. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10074 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |10070 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |10019, 10074 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #102 from Jared Camins-Esakov <jcamins@cpbibliography.com> --- I have reverted this patch and the other related encoding patches from 3.12.x. These problems can be addressed for 3.14. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Karam Qubsi <karamqubsi@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10128 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10118 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |In Discussion --- Comment #103 from Galen Charlton <gmcharlt@gmail.com> --- Following Jared, I have also reverted the patches for this bug (and related bugs) from master. This should not be viewed as a permanent reversion, although I have reservations about turning on CGI.pm's -utf8 switch across the board -- but I have even stronger reservations about the ensuant game of whack-a-mole we've been playing with new bugs arising from this patch. By next week I will put together a separate integration branch to use as a basis for testing this more thoroughly. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #104 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #103)
Following Jared, I have also reverted the patches for this bug (and related bugs) from master. This should not be viewed as a permanent reversion, although I have reservations about turning on CGI.pm's -utf8 switch across the board -- but I have even stronger reservations about the ensuant game of whack-a-mole we've been playing with new bugs arising from this patch.
By next week I will put together a separate integration branch to use as a basis for testing this more thoroughly.
Here is my reaction on this action from you as new RM: I have spent a lot of time on helping to resolve the side-effects of this patch and you revert this without any discussion! I triggered a discussion on the subject by mailing the list and you did not even respond. Jared planned to revert the patch for 3.12.x but leave it in master. And even more, this work is being compared with some game I do not know about. On the whole: This is very discouraging and highly unmotivating. Please communicate with other developers and team members instead of starting your RM term with one-sided actions like this one. Do you think that this makes me spend more time on the subject? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10114 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Liz Rea <liz@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liz@catalyst.net.nz --- Comment #105 from Liz Rea <liz@catalyst.net.nz> --- Regarding whack a mole: http://www.youtube.com/watch?v=D0n8N98mpes This may be the only time in bugzilla history where a link to a video of a game is appropriate. Liz -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #106 from Galen Charlton <gmcharlt@gmail.com> --- (In reply to comment #104)
Here is my reaction on this action from you as new RM:
I am also an _old_ RM, and stand by my decision on the following basis: - This was reverted in 3.12.x. Jared would have been perfectly in his rights to revert in master as well. If the patch series was too problematic to include in the main release, it does not necessarily belong in master, either. - Side-effects of this patch series were *getting in the way* of applying other patches necessary for the 3.12.x release. - The basis of the patch series relies on use of a flag to CGI.pm that it's own documentation warns against. Further, please bear in mind what I said: "This should not be viewed as a permanent reversion" And I mean it. I do not disagree that the underlying bug needs to be dealt with, but the number of side-effects shows that the current patch series is not ready for prime time. The integration branch will provide an opportunity for more thorough testing.
On the whole: This is very discouraging and highly unmotivating. Please communicate with other developers and team members instead of starting your RM term with one-sided actions like this one. Do you think that this makes me spend more time on the subject?
Considering the discussion and advance warning over IRC, I reject your implication that this decision was not communicated. The reversion is not meant as a personal slight against anybody. I do understand that you have put a lot of effort into this, and I understand that having patches that one has worked on getting reverted stings. I hope to encourage a different approach to patches and reversions: that they be treated as experiments and learning opportunities, and that credit be given to those who make the experiment, even if their patch doesn't end up getting committed in its original form. However, I acknowledge that this is not an easy thing. But I will also be blunt: I would not be doing my job as RM well if, when necessary, I didn't exercise my own judgment. One of the things I've learned the hard way is that at times, it is necessary to force a pause to recheck assumptions. I believe this is one of the moments for this bug. I encourage you to work on the integration branch, but if you prefer to take a break from this bug, I have every confidence that we will not lack for hands and eyes to test. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #107 from Jonathan Druart <jonathan.druart@biblibre.com> --- Galen, I don't know why, a remainder of the first patch still exists on master, which cause some trouble with encoding. The binmode routine is called in master: sub output_html_with_http_headers { binmode( STDOUT, ":encoding(utf8)" ); my ( $query, $cookie, $data, $status ) = @_; output_with_http_headers( $query, $cookie, $data, 'html', $status ); } This line was not deleted by the revert commit. commit d542740ab8877234d043c8a11cb19a6004e72656 Author: Dobrica Pavlinusic <dpavlin@rot13.org> Date: Sun Jun 10 15:18:42 2012 +0100 Bug 6554 - make Koha internally utf-8 clean git show d542740ab8877234d043c8a11cb19a6004e72656 C4/Output.pm +++ b/C4/Output.pm @@ -308,6 +308,7 @@ sub output_with_http_headers { } sub output_html_with_http_headers { + binmode( STDOUT, ":encoding(utf8)" ); commit a7eb34f2c8a281ef83f711e581079a2232296c88 Author: Galen Charlton <gmc@esilibrary.com> CommitDate: Mon Apr 29 15:12:32 2013 -0700 Revert "Bug 6554 - make Koha internally utf-8 clean" git show a7eb34f2c8a281ef83f711e581079a2232296c88 C4/Output.pm returns nothing -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #108 from Dobrica Pavlinusic <dpavlin@rot13.org> --- (In reply to comment #103)
This should not be viewed as a permanent reversion, although I have reservations about turning on CGI.pm's -utf8 switch across the board -- but I have even stronger reservations about the ensuant game of whack-a-mole we've been playing with new bugs arising from this patch.
Would you mind to elaborate your objections to CGI.pm's -utf8 switch? I think that it's cleaner to take extra care about code which uses file upload than to hand-decode every single parameter we are passing into Koha code. This is only my personal preference, and I am fine with whatever solution gets eventually prefered, but I main question is if I should re-submit my patches without -utf8 in them. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #109 from Galen Charlton <gmcharlt@gmail.com> --- (In reply to comment #107)
Galen, I don't know why, a remainder of the first patch still exists on master, which cause some trouble with encoding.
The binmode routine is called in master:
Thanks for catching this. I've pushed a patch to master to complete the revert. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #110 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #105)
This may be the only time in bugzilla history where a link to a video of a game is appropriate. :-)
(In reply to comment #106) Thanks for your reply, but I still disagree. Nevertheless I propose to end that discussion here.. (In reply to comment #107)
I don't know why, a remainder of the first patch still exists on master, which cause some trouble with encoding. Communicated this with Jared on bug 10070.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|m.de.rooy@rijksmuseum.nl | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #17187|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz --- Comment #111 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to comment #108)
(In reply to comment #103)
This should not be viewed as a permanent reversion, although I have reservations about turning on CGI.pm's -utf8 switch across the board -- but I have even stronger reservations about the ensuant game of whack-a-mole we've been playing with new bugs arising from this patch.
Would you mind to elaborate your objections to CGI.pm's -utf8 switch? I think that it's cleaner to take extra care about code which uses file upload than to hand-decode every single parameter we are passing into Koha code.
This is only my personal preference, and I am fine with whatever solution gets eventually prefered, but I main question is if I should re-submit my patches without -utf8 in them.
From the man page
-utf8 This makes CGI.pm treat all parameters as UTF-8 strings. Use this with care, as it will interfere with the processing of binary uploads. It is better to manually select which fields are expected to return utf-8 strings and convert them using code like this: use Encode; my $arg = decode utf8=>param('foo'); -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #112 from Serhij Dubyk <dubyk@library.lviv.ua> --- In Koha 3.12 some encoding problems was returned. Currently found in 3 locations: http://localhost:8888/cgi-bin/koha/members/members-home.pl (main screen) http://localhost:8888/cgi-bin/koha/members/member.pl (search) http://localhost:8888/cgi-bin/koha/circ/circulation.pl (search and menu) http://localhost:8888/cgi-bin/koha/admin/preferences.pl (search for non-latin) Screenshots attached. Search by members completely can not be used in 3.12.0. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #113 from Serhij Dubyk <dubyk@library.lviv.ua> --- Created attachment 18746 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18746&action=edit Search for preferences in Cyrillic -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #114 from Serhij Dubyk <dubyk@library.lviv.ua> --- Created attachment 18747 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18747&action=edit Search for circulation -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #115 from Serhij Dubyk <dubyk@library.lviv.ua> --- Created attachment 18749 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18749&action=edit Members Home -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #116 from Serhij Dubyk <dubyk@library.lviv.ua> --- Created attachment 18750 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=18750&action=edit Search for members -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #117 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #112)
In Koha 3.12 some encoding problems was returned. Currently found in 3 locations: http://localhost:8888/cgi-bin/koha/members/members-home.pl (main screen) http://localhost:8888/cgi-bin/koha/members/member.pl (search) http://localhost:8888/cgi-bin/koha/circ/circulation.pl (search and menu) http://localhost:8888/cgi-bin/koha/admin/preferences.pl (search for non-latin) Screenshots attached. Search by members completely can not be used in 3.12.0.
Horrible pictures, Serhij. But I still think that we were on the right track with Dobrica's patch to make Koha internally utf8 clean. Such a change can be compared with the template engine change we had some years ago. You cannot solve every little problem after that in one run. But the wind blew in another direction :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Pongtawat <pongtawat.c@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pongtawat.c@gmail.com --- Comment #118 from Pongtawat <pongtawat.c@gmail.com> --- I found this problem (like in comment 112) on 3.12. All was fine with 3.10. Is there any work-around while waiting for the patch? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Mike <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |black23@gmail.com --- Comment #119 from Mike <black23@gmail.com> --- I found same problem in 3.12.x in Czech translation. Problem on: /cgi-bin/koha/members/members-home.pl /cgi-bin/koha/admin/preferences.pl?tab=circulation /cgi-bin/koha/admin/preferences.pl?tab=opac /cgi-bin/koha/admin/preferences.pl?tab=patrons -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 skobyanka@mail.ru <skobyanka@mail.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |skobyanka@mail.ru --- Comment #120 from skobyanka@mail.ru <skobyanka@mail.ru> --- (In reply to Mike from comment #119)
I found same problem in 3.12.x in Czech translation. Problem on: /cgi-bin/koha/members/members-home.pl /cgi-bin/koha/admin/preferences.pl?tab=circulation /cgi-bin/koha/admin/preferences.pl?tab=opac /cgi-bin/koha/admin/preferences.pl?tab=patrons
I solved the problem in /cgi-bin/koha/members/members-home.pl by removing from the Advanced Search patron Search by category: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/ru-RU/includes/patron-search.inc Delete: [% IF ( categories ) %] <p><label for="categorycode">Категория: </label><select name="categorycode" id="categorycode"> <option value="">Произвольная</option>[% FOREACH categorie IN categories %] [% IF ( categorie.selected ) %] <option value="[% categorie.categorycode %]" selected="selected">[% categorie.description %]</option>[% ELSE %] <option value="[% categorie.categorycode %]">[% categorie.description %]</option>[% END %] [% END %]</select></p> [% END %] -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketan@carvingit.com --- Comment #121 from Ketan Kulkarni <ketan@carvingit.com> --- Yes, I see this problem in 3.12.4. (In reply to Serhij Dubyk from comment #112)
In Koha 3.12 some encoding problems was returned. Currently found in 3 locations: http://localhost:8888/cgi-bin/koha/members/members-home.pl (main screen) http://localhost:8888/cgi-bin/koha/members/member.pl (search) http://localhost:8888/cgi-bin/koha/circ/circulation.pl (search and menu) http://localhost:8888/cgi-bin/koha/admin/preferences.pl (search for non-latin) Screenshots attached. Search by members completely can not be used in 3.12.0.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff Assignee|dpavlin@rot13.org |ketan@carvingit.com --- Comment #122 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21318 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21318&action=edit An update to Templates.pm The patch is made against tag v3.12.04. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 I'm just a bot <gitbot@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gitbot@bugs.koha-community. | |org When did the bot| |2013-09-24 last check this| | --- Comment #123 from I'm just a bot <gitbot@bugs.koha-community.org> --- Patch applied cleanly, go forth and signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff --- Comment #124 from Chris Cormack <chris@bigballofwax.co.nz> --- Hi Ketan I appreciate your enthusiasm, and we definitely want more people submitting patches. But unfortunately you can't mark your own patch signed off. Here's a quick write up on how it works http://wiki.koha-community.org/wiki/Bug-enhancement-patch_Workflow I would be happy to try signing off on your patch. Can you give me a quick test plan of how to recreate the problem so I can test the patch fixes it?. And of course we would love it if you tested and signed off other's patches. Thanks Chris -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #125 from Ketan Kulkarni <ketan@carvingit.com> --- Hello Chris, Hello Chris, I am sorry, I did not know the process. I did think it was a little odd to sign-off myself. However, the message said "Patch applied cleanly, go forth and signoff" so I did it. Anyway, thanks for the information. Here's the test plan. * Enter Patron names in non-latin characters like Russian. There is a screenshot of submitted by a user earlier. That is in Russian. In my case, the patron names are in Devnagari. * Then carry out a search on Patron * It should show you Patron names as they were entered. * At the same time, other parts of the site like - Catalog search should work with unicode. * A failure scenario is when the results show strange characters on the web page. I'll work on testing others' patches too. I am a little new to the whole process yet. Regards, Ketan (In reply to Chris Cormack from comment #124)
Hi Ketan
I appreciate your enthusiasm, and we definitely want more people submitting patches. But unfortunately you can't mark your own patch signed off.
Here's a quick write up on how it works http://wiki.koha-community.org/wiki/Bug-enhancement-patch_Workflow
I would be happy to try signing off on your patch. Can you give me a quick test plan of how to recreate the problem so I can test the patch fixes it?.
And of course we would love it if you tested and signed off other's patches.
Thanks
Chris
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #126 from Chris Cormack <chris@bigballofwax.co.nz> --- Hi I'm having trouble recreating the problem, I can enter cyrillic characters and have them display fine without the patch. So I can't really test that it fixes the issue, as I can't make the bad characters show. Could you paste a string that breaks it for you? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #127 from Ketan Kulkarni <ketan@carvingit.com> --- Hello Chris, Here are a couple strings. Try them in Patron search of 3.12.4. कुलकर्णी पाटील The above are from devnagari script used for Marathi language. Regards, Ketan (In reply to Chris Cormack from comment #126)
Hi
I'm having trouble recreating the problem, I can enter cyrillic characters and have them display fine without the patch.
So I can't really test that it fixes the issue, as I can't make the bad characters show.
Could you paste a string that breaks it for you?
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #128 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to Ketan Kulkarni from comment #127)
Hello Chris,
Here are a couple strings. Try them in Patron search of 3.12.4.
कुलकर्णी पाटील
The above are from devnagari script used for Marathi language.
Regards, Ketan
Hmm those work fine on master, without the patch. Maybe it is fixed in master already, could you test there? However I note that when I apply your patch it breaks the dropdown on the new patron page. Before the patch <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=B">Board</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=HB">Home Bound</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=IL">Inter-Library Loan</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=J">Juvenile</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=K">Kid</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=L">Library</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=PT">Patron</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=PERSON">person</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=SC">School</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=S">Staff</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=STAFF">staff</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=ST">Student</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=T">Teacher</a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode=YA">Young Adult</a></li> After the patch <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li><li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&categorycode="></a></li> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #129 from Ketan Kulkarni <ketan@carvingit.com> --- Ah yes. It breaks the dropdown of New Patron. Quite a few things have changed in the master after v3.12.4. I'll check the drop down part. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #130 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 21399 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21399&action=edit members-home czech Instead of adding patron with non-latin characters in name, try to define patron categories with non-latin characters. It definitely breaks the members-home page for me. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #131 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to Josef Moravec from comment #130)
Created attachment 21399 [details] members-home czech
Instead of adding patron with non-latin characters in name, try to define patron categories with non-latin characters. It definitely breaks the members-home page for me.
Excellent, thanks for that. I'll wait for a new patch and test it that way. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #132 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Ah, that sounds like bug 10864 - showing up on all our 3.12 installations for patron categories with umlauts. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #133 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21478 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21478&action=edit Double encoding utf8 problem Use of utf8::upgrade() instead of utf8::encode() appears to be working. While taking inputs, they should be decoded first whereas output should always be encoded. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #134 from Ketan Kulkarni <ketan@carvingit.com> --- I have another patch ready which is an enhancement over the earlier patch I submitted. How can I discard the older patch and add a new one? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #135 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Ketan Kulkarni from comment #134)
I have another patch ready which is an enhancement over the earlier patch I submitted. How can I discard the older patch and add a new one?
You can obsolete a patch manually by clicking Details. With git-bz you can do it more or less automatically.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21478|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #136 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21488 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21488&action=edit utf8 double encoding problem enhancement Search, patron pages, patron search, facets need to be tested with different languages. I have done testing on Devnagari input (Marathi). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21318|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #137 from Josef Moravec <josef.moravec@gmail.com> --- I've just tried the last patch in sandbox, but unfortunately, it doesn't work for me. In fact, there are another pages broken after applying patch. (e.g. edit patron categories page) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #138 from Ketan Kulkarni <ketan@carvingit.com> --- Hello Joseph, Could you please attach a screenshot the broken "edit patron categories" page. I am unable to reproduce the problem after the latest update. i.e. the last patch. Screenshot of any other page showing the problem will also do. Regards, Ketan (In reply to Josef Moravec from comment #137)
I've just tried the last patch in sandbox, but unfortunately, it doesn't work for me. In fact, there are another pages broken after applying patch. (e.g. edit patron categories page)
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #139 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 21506 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21506&action=edit Edit patron categories after patch 21488 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #140 from Josef Moravec <josef.moravec@gmail.com> --- I've just uploaded the screenshot. But there is a weird issue... After night, on the same sandbox setup, the problem with catron categories somehow disappeared, but after new setup, with the same parameters, the problem again appeared. Problem on the members home page is still the same. (In reply to Ketan Kulkarni from comment #138)
Hello Joseph,
Could you please attach a screenshot the broken "edit patron categories" page. I am unable to reproduce the problem after the latest update. i.e. the last patch.
Screenshot of any other page showing the problem will also do.
Regards, Ketan
(In reply to Josef Moravec from comment #137)
I've just tried the last patch in sandbox, but unfortunately, it doesn't work for me. In fact, there are another pages broken after applying patch. (e.g. edit patron categories page)
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #141 from Ketan Kulkarni <ketan@carvingit.com> --- Thank you Josef for uploading the screenshot. We are getting closer :-) The problem is thus. Now, the data coming from the db appears ok. e.g. patron names, category names etc. However, the templates are not rendered as they should be. Let me see how we can fix this. Ketan (In reply to Josef Moravec from comment #140)
I've just uploaded the screenshot.
But there is a weird issue... After night, on the same sandbox setup, the problem with catron categories somehow disappeared, but after new setup, with the same parameters, the problem again appeared.
Problem on the members home page is still the same.
(In reply to Ketan Kulkarni from comment #138)
Hello Joseph,
Could you please attach a screenshot the broken "edit patron categories" page. I am unable to reproduce the problem after the latest update. i.e. the last patch.
Screenshot of any other page showing the problem will also do.
Regards, Ketan
(In reply to Josef Moravec from comment #137)
I've just tried the last patch in sandbox, but unfortunately, it doesn't work for me. In fact, there are another pages broken after applying patch. (e.g. edit patron categories page)
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #142 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21509 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21509&action=edit The template problem with utf8 For non-latin templates, almost all pages need to be seen along with the patron categories page. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21509|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Ketan Kulkarni <ketan@carvingit.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21488|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #143 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21581 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21581&action=edit one more file updated ... opac-search.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21581|0 |1 is obsolete| | --- Comment #144 from Srdjan Jankovic <srdjan@catalyst.net.nz> --- Created attachment 21629 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21629&action=edit bug 6554: double utf8 encoding fix * added ENCODING=>utf8 to Template->new * added utf8::decode for ms_query -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |srdjan@catalyst.net.nz --- Comment #145 from Srdjan Jankovic <srdjan@catalyst.net.nz> --- I cannot sign off, it has tabs instead of spaces. I have replaced the multi-patch with this consolidated one. Please check if the commit message is ok. Also, I don't have time to look deeper, but utf8::upgrade($some_var) if utf8::is_utf8($some_var); looks wrong, that should not be needed. Or at least looks like the problem is being addressed in the wrong place. ENCODING => 'utf8' makes sense. Encode::decode() would also makes sense I presume. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #146 from Ketan Kulkarni <ketan@carvingit.com> --- Thank you Srdjan for consolidating the patch and also for removing the if() from utf8::upgrade($some_var) if utf8::is_utf8($some_var); The condition is not needed. Regards, Ketan (In reply to Srdjan Jankovic from comment #145)
I cannot sign off, it has tabs instead of spaces.
I have replaced the multi-patch with this consolidated one. Please check if the commit message is ok.
Also, I don't have time to look deeper, but utf8::upgrade($some_var) if utf8::is_utf8($some_var); looks wrong, that should not be needed. Or at least looks like the problem is being addressed in the wrong place.
ENCODING => 'utf8' makes sense.
Encode::decode() would also makes sense I presume.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #147 from Ketan Kulkarni <ketan@carvingit.com> --- Oops. Sorry .. That was an oversight. I think we can safely remove the if() from those lines. I'd like to hear from fellow developers. How do I remove tabs and put spaces? I use vi editor and I use tab for indentation. Regards, Ketan (In reply to Ketan Kulkarni from comment #146)
Thank you Srdjan for consolidating the patch and also for removing the if() from
utf8::upgrade($some_var) if utf8::is_utf8($some_var);
The condition is not needed.
Regards, Ketan
(In reply to Srdjan Jankovic from comment #145)
I cannot sign off, it has tabs instead of spaces.
I have replaced the multi-patch with this consolidated one. Please check if the commit message is ok.
Also, I don't have time to look deeper, but utf8::upgrade($some_var) if utf8::is_utf8($some_var); looks wrong, that should not be needed. Or at least looks like the problem is being addressed in the wrong place.
ENCODING => 'utf8' makes sense.
Encode::decode() would also makes sense I presume.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #148 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> ---
How do I remove tabs and put spaces? I use vi editor and I use tab for indentation.
Don't use tabs if you expect to pass QA http://stackoverflow.com/questions/426963/replace-tab-with-spaces-in-vim -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #149 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21631 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21631&action=edit Replaced tabs with spaces -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21629|0 |1 is obsolete| | Attachment #21631|0 |1 is obsolete| | --- Comment #150 from Srdjan Jankovic <srdjan@catalyst.net.nz> --- Created attachment 21632 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21632&action=edit bug 6554: UTF8 double encoding fixes. Commits squashed into one. double utf8 encoding fix .. second try minor formatting updates enhancement to the previous patch related to utf8 double encoding added ENCODING=>utf8 to new-> added space which is there in master added utf8::decode for ms_query replaced tabs with spaces replaced tabs with spaces removed extra space Signed-off-by: Srdjan <srdjan@catalyst.net.nz> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 sandboxes@biblibre.com <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandboxes@biblibre.com --- Comment #151 from sandboxes@biblibre.com <sandboxes@biblibre.com> --- Patch tested with a sandbox, by Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 sandboxes@biblibre.com <sandboxes@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21632|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #152 from sandboxes@biblibre.com <sandboxes@biblibre.com> --- Created attachment 21682 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21682&action=edit UTF8 double encoding fixes. Commits squashed into one. double utf8 encoding fix .. second try minor formatting updates enhancement to the previous patch related to utf8 double encoding added ENCODING=>utf8 to new-> added space which is there in master added utf8::decode for ms_query replaced tabs with spaces replaced tabs with spaces removed extra space Signed-off-by: Srdjan <srdjan@catalyst.net.nz> http://bugs.koha-community.org/show_bug.cgi?id=6554 Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=10068 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #153 from Tomás Cohen Arazi <tomascohen@gmail.com> --- I marked 10068 as 'see also', not because of the patches, but to mention the first comment. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #154 from Dobrica Pavlinusic <dpavlin@rot13.org> --- This also fixes Bug 9897 - members/member.pl double encoded utf-8 strings so I added it to see also so we can close it once this gets into master. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #155 from Ketan Kulkarni <ketan@carvingit.com> --- Hello Tomás, Yes, we should move from utf8::encode/decode to Encode:: This particular bug (6554) is about double encoding that happens in Templates.pm. I guess we should treat 10068 as a separate thing. It is linked for sure with the same issue. However, it's more about encoding. This one deals with decoding. Ketan (In reply to Tomás Cohen Arazi from comment #153)
I marked 10068 as 'see also', not because of the patches, but to mention the first comment.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #156 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- I think that for this to pass QA and eventually been pushed we need a test plan 1) A way to check what error this patch is trying to fix, i.e. how and where to look encoding problems (add sample record/data) 2) How it's fixed In it's current incarnation this is a simple patch, but it's not clear how to test. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #157 from Ketan Kulkarni <ketan@carvingit.com> --- Hello, Here's the scenario to reproduce the error condition. * Create patron categories with non-latin characters and then perform a search on patrons using non-latin characters. The patch is trying to fix two things. * Double encoding of utf8 strings. This happens in Templates.pm. * In some places query needs to be uft8::decode'ed. I have done that to fix problems that showed up when Templates.pm was updated. After applying the patch, following pages need to be tested. * Patron search - Need to see all places on the results page that may contain non-latin characters. You need to have patron categories with non-latin characters. * Catalog search - Need to check places where non-latin characters appear * Non-latin templates e.g. koha in Russian language. I think this task will take a lot of time. Regards, Ketan (In reply to Bernardo Gonzalez Kriegel from comment #156)
I think that for this to pass QA and eventually been pushed we need a test plan
1) A way to check what error this patch is trying to fix, i.e. how and where to look encoding problems (add sample record/data) 2) How it's fixed
In it's current incarnation this is a simple patch, but it's not clear how to test.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #158 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Ketan, (In reply to Ketan Kulkarni from comment #155)
Hello Tomás,
Yes, we should move from utf8::encode/decode to Encode:: This particular bug (6554) is about double encoding that happens in Templates.pm.
Take a look at this work from Marcel: http://wiki.koha-community.org/wiki/Handling_UTF8_in_development If we (currently) do things wrong inside Koha regarding encoding/decoding of UTF-8 data (double encoding means we are encoding wrong somewhere), then fixing those symptms will just hide the problem (using utf8::upgrade will avoid the consequences but not fix the root cause, it might even hide new bugs introduced by future patches). It is up to the QA team and the RM to think of the best approach for tackling this so I'm just leaving this comment, also I appreciate you efforts and hope this gets fixed soon. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #159 from Ketan Kulkarni <ketan@carvingit.com> --- Hello Tomás, I appreciate your concerns. I have read the web page. It's up to the QA and RM to decide. Nevertheless, the updates in the patch have been done in accordance with the principle - decode the input and encode the output. Although utf8::upgrade() is a temporary fix to "hide" the problems if any, does fix things to a great extent. Besides, upgrade() is an inbuilt perl function. And on production systems it's better we use upgrade() than just encode() if it is going to break things. Once we have a plan in place, this will be replaced by Encode::.... You see, there's talk about using Encode::... instead of utf8::.... In the current scenario, utf8::upgrade() appears to be a decent (and forgiving) way of handling errors in coding. There's another bug related to writing a generic subroutine for utf-decoding for input. The discussion is on. Considering the size of the code-base, UTF handling related updates are going to take time. The present patch tries to fix the problem that is there in the stable release temporarily. Regards, Ketan (In reply to Tomás Cohen Arazi from comment #158)
Ketan,
(In reply to Ketan Kulkarni from comment #155)
Hello Tomás,
Yes, we should move from utf8::encode/decode to Encode:: This particular bug (6554) is about double encoding that happens in Templates.pm.
Take a look at this work from Marcel: http://wiki.koha-community.org/wiki/Handling_UTF8_in_development
If we (currently) do things wrong inside Koha regarding encoding/decoding of UTF-8 data (double encoding means we are encoding wrong somewhere), then fixing those symptms will just hide the problem (using utf8::upgrade will avoid the consequences but not fix the root cause, it might even hide new bugs introduced by future patches).
It is up to the QA team and the RM to think of the best approach for tackling this so I'm just leaving this comment, also I appreciate you efforts and hope this gets fixed soon.
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #160 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to Ketan Kulkarni from comment #159)
Hello Tomás,
I appreciate your concerns. I have read the web page. It's up to the QA and RM to decide.
Just one note here, Tomás is the release maintainer for the 3.12.x branch, so it is up to him to decide if this will go into that stable release. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #161 from Dobrica Pavlinusic <dpavlin@rot13.org> --- Just to add my $0.02 since I was original author of encoding fixes: this patch indeed goes against idea of correctly encoding everything in Koha, but does fix some really broken places in current code. I would appreciate if this patch was accepted upstream (encoding of borrower characters is my most pressing concern) and if nothing else it does mark few more places in which we will have to take a look when making koha utf-8 clean. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #162 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Sorry, but applying this patch breaks a lot of encodings on several places in opac and staff. Just look at opac-search and catalogue search. I have lots of broken characters (that should have diacritics) in the results (based on XSLT) and in the facets. Failed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #163 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21937 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21937&action=edit My opac after search My opac search does not break after applying the patch. Could you please upload a screenshot? This is from the latest master. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #164 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Ketan Kulkarni from comment #163)
Created attachment 21937 [details] My opac after search
My opac search does not break after applying the patch. Could you please upload a screenshot? This is from the latest master.
You are not using XSLT on OPAC? Please change these preferences and test. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #165 from Ketan Kulkarni <ketan@carvingit.com> --- Created attachment 21955 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21955&action=edit My opac xslt preferences Please see my OPAC preferences. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #166 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Ketan Kulkarni from comment #165)
Created attachment 21955 [details] My opac xslt preferences
Please see my OPAC preferences.
OK That looks good. Will post some more details today about what I came across. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #167 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 21978 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21978&action=edit opac-search Please look at mangled characters with diacritics in the XSLT blocks and facets. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #21978|image/jpeg |image/png mime type| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #168 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- I attached an image for opac-search but opac-detail and opac-MARCdetail contain similar mangled chars. Also opac-shelves.pl, opac-readingrecord.pl, and maybe more.. At staff side: similar problems in catalogue/search, catalogue/detail.pl, virtualshelves/shelves.pl, circ/circulation.pl (confirm checkout had a mangled char), cataloguing/addbiblio.pl (oops: dangerous! saving mangled data), acqui/booksellers.pl (look for é), and maybe more.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #169 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 21980 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21980&action=edit OPAC search Marcel, I take a screenshot of your devel site. For me it looks right, without mangled chars. That's one the problems with this bug, different people see different things. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #170 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Bernardo Gonzalez Kriegel from comment #169)
For me it looks right, without mangled chars.
I got the impression that the mangled chars are from the Latin subset (diacritics on vowels like a e etc.) Special chars from Chinese or Japanese seem to be correct.. Can you confirm that? Or are Latin chars also correct in your case? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #171 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- Created attachment 21981 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21981&action=edit OPAC search 3 (In reply to M. de Rooy from comment #170)
I got the impression that the mangled chars are from the Latin subset (diacritics on vowels like a e etc.) Special chars from Chinese or Japanese seem to be correct.. Can you confirm that? Or are Latin chars also correct in your case?
Problem is they look correct to me (latin diacritics). Attached same screen but with Firefox. When tested latest patchset I can't reproduce errors, I create patron categories in Chinese, Armenian, Indi, etc. All looked right (on master) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #172 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Bernardo Gonzalez Kriegel from comment #171)
Created attachment 21981 [details] OPAC search 3 Hi Bernardo This is another image from my server but the 6554 patch is no longer active. That makes a difference :)
When tested latest patchset I can't reproduce errors, I create patron categories in Chinese, Armenian, Indi, etc. All looked right (on master) OK. My question actually was: If you have only a few latin chars on your screen (so not combined with *real* eh-eh utf8 chars, are they correct? Do not know if you have such records in YOUR database?
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #173 from Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> --- (In reply to M. de Rooy from comment #172)
OK. My question actually was: If you have only a few latin chars on your screen (so not combined with *real* eh-eh utf8 chars, are they correct? Do not know if you have such records in YOUR database?
Yes I have :) And they look correct -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #4558|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #174 from Serhij Dubyk <dubyk@library.lviv.ua> --- Created attachment 23107 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23107&action=edit Screenshot for Patrons in Koha 3.14.0 Bug still exists. Any patrons category name in not ASCII will damage page. On screenshot one category presented on Ukrainian, if it is removed (or transliterated), the encoding problem disappears. But it is not a good solution. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #175 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Can we please close this bug and maybe open specific ones? Most of the screenshots aren't even reproducible. I'm not talking about the last one. Also, please always enumerate the steps to reproduce the problem. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #176 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Serhij Dubyk from comment #174)
Created attachment 23107 [details] Screenshot for Patrons in Koha 3.14.0
Bug still exists. Any patrons category name in not ASCII will damage page. On screenshot one category presented on Ukrainian, if it is removed (or transliterated), the encoding problem disappears. But it is not a good solution.
What are the steps to reproduce? Correct me if I'm wrong: 1) In a fresh Koha, generate translation into XX 2) Select XX for the staff interface (i.e. enable it, and choose it) 3) Go to the Patrons page 4) Everything looks fine 5) In the admin page, create a patron category with (say) the non-ASCII character 'ñ'. 6) Go back to the Patrons page, everything is broken Is that the way to reproduce it? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #177 from Chris Cormack <chris@bigballofwax.co.nz> --- (In reply to Tomás Cohen Arazi from comment #176)
(In reply to Serhij Dubyk from comment #174)
Created attachment 23107 [details] Screenshot for Patrons in Koha 3.14.0
Bug still exists. Any patrons category name in not ASCII will damage page. On screenshot one category presented on Ukrainian, if it is removed (or transliterated), the encoding problem disappears. But it is not a good solution.
What are the steps to reproduce? Correct me if I'm wrong:
1) In a fresh Koha, generate translation into XX 2) Select XX for the staff interface (i.e. enable it, and choose it) 3) Go to the Patrons page 4) Everything looks fine 5) In the admin page, create a patron category with (say) the non-ASCII character 'ñ'. 6) Go back to the Patrons page, everything is broken
Is that the way to reproduce it?
It is caused by includes/patron-search.inc .. if you comment out the include call to it out, the page renders just fine. Will make a new bug and attach a patch when I figure out the fix -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=11290 --- Comment #178 from Chris Cormack <chris@bigballofwax.co.nz> --- Patch on bug 11290 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #179 from Jonathan Druart <jonathan.druart@biblibre.com> --- Created attachment 23140 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23140&action=edit Bug 6554: Template::output should deal with object if a ref is not HASH or ARRAY, C4::Template::output assumes it is a scalar. Which is wrong, it could be an object. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23140|Bug 6554: Template::output |[ALT] Bug 6554: description|should deal with object |Template::output should | |deal with object --- Comment #180 from Jonathan Druart <jonathan.druart@biblibre.com> --- Comment on attachment 23140 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23140 [ALT] Bug 6554: Template::output should deal with object Here is my try on utf8 issues. It is not perfect because we will have to maintain a blacklist. Please test. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jacek Ablewicz <abl@biblos.pk.edu.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abl@biblos.pk.edu.pl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |RESOLVED Resolution|--- |DUPLICATE --- Comment #181 from Jonathan Druart <jonathan.druart@biblibre.com> --- *** This bug has been marked as a duplicate of bug 11302 *** -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #182 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #181)
*** This bug has been marked as a duplicate of bug 11302 ***
Are you sure that you could close this report? The new report does not seem to be so generic as this one was. But your patch will certainly have my attention. Thanks. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #183 from Jonathan Druart <jonathan.druart@biblibre.com> --- This one became too long. It could be reopened if 11302 is wrong. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |--- -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23140|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #184 from Jacek Ablewicz <abl@biblos.pk.edu.pl> --- Looks like there is (somehow) similar bug also in circ/view_holdsqueue.tt . It only manifests itself if there are non-latin characters in collection code (authorised value CCODE) descriptions. Possible fixes: 1) Like in bug 11290 - inserting ' |html_entity' in line 80, after "KohaAuthorisedValues.GetByCode( 'CCODE', itemsloo.ccode )" 2) Replacing KohaAuthorisedValues template plugin with AuthorisedValues plugin. But why are there two different TT plugin versions in the first place; shouldn't AuthorisedValues be used (everywhere) instead of KohaAuthorisedValues ? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |RESOLVED Resolution|--- |MOVED --- Comment #185 from Chris Cormack <chris@bigballofwax.co.nz> --- Please can we open new bugs for each instance, with new valid patches, this bug is impossible to maintain any more. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #186 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Jacek Ablewicz from comment #184)
2) Replacing KohaAuthorisedValues template plugin with AuthorisedValues plugin. But why are there two different TT plugin versions in the first place; shouldn't AuthorisedValues be used (everywhere) instead of KohaAuthorisedValues ?
Will be fixed by bug 10626. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6554 --- Comment #187 from Jonathan Druart <jonathan.druart@biblibre.com> --- For more fun, please see bug 11944. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org