Bug 3463 - Wide character in null operation for “Edit MARC Record”
Summary: Wide character in null operation for “Edit MARC Record”
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Bibliographic data support (show other bugs)
Version: rel_3_2
Hardware: Other All
: P3 enhancement (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 09:12 UTC by Chris Cormack
Modified: 2015-06-04 23:23 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 01:10:58 UTC


---- Reported by quanzhong.zhang@xjtlu.edu.cn 2009-08-01 09:12:19 ----

I installed Koha 3.00.3 on CentOS 5.3(X86_64) and the database upgrade from Koha version 2.2.9
I try to check the function “Edit MARC Record”. It’s OK for English. But if the title include the Chinese character, the following error message display in browser 

production mode - trapped fatal error

The error message in the log file /var/log/koha/koha-error_log as:

[Thu Jul 23 10:36:17 2009] [error] [client 10.7.13.30] [Thu Jul 23 10:36:17 2009] addbiblio.pl: Wide character in null operation at /usr/lib/perl5/site_perl/5.8.8/MARC/Charset/Table.pm line 96, <DATA> line 532., referer: http://10.7.1.219:8080/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=6495&amp;amp;op=

Not found such problem for Edit “Patron Details”

Thanks and Best Regards,



---- Additional Comments From gmcharlt@gmail.com 2009-08-01 13:19:34 ----

(In reply to comment #0)
> I installed Koha 3.00.3 on CentOS 5.3(X86_64) and the database upgrade from
> Koha version 2.2.9
> I try to check the function “Edit MARC Record”. It’s OK for English. But
> if the title include the Chinese character, the following error message display
> in browser 

Could you paste in the specific character or characters that you tried this with  Thanks!




---- Additional Comments From gmcharlt@gmail.com 2009-08-01 13:20:23 ----

(In reply to comment #1)
> (In reply to comment #0)
> > I installed Koha 3.00.3 on CentOS 5.3(X86_64) and the database upgrade from
> > Koha version 2.2.9
> > I try to check the function “Edit MARC Record”. It’s OK for English. But
> > if the title include the Chinese character, the following error message display
> > in browser 
> 
> Could you paste in the specific character or characters that you tried this
> with  Thanks!
> 

To be clear, I mean adding the characters in question as a comment to this bug.



---- Additional Comments From quanzhong.zhang@xjtlu.edu.cn 2009-08-01 14:15:47 ----


If I add the characters "测试中文" into title. The error message appears after click the button "Save".

No problem for the same execution on the demo (version 3.01.00.037) "http://public-staff.demo.kohalibrary.com/"

No problem for display if I update the characters "测试中文" into database koha directly.

Thanks and Best Regards,
Zhang QZ




---- Additional Comments From gmcharlt@gmail.com 2009-08-01 14:40:02 ----

(In reply to comment #3)
> If I add the characters "测试中文" into title. The error message appears
> after click the button "Save".
> 
> No problem for the same execution on the demo (version 3.01.00.037)
> "http://public-staff.demo.kohalibrary.com/"

Thanks.  I cannot reproduce the problem in HEAD (3.1), so I'm tagging this bug as rel_3_0 and will test in 3.0.x soon.





---- Additional Comments From gmcharlt@gmail.com 2009-08-01 14:41:19 ----

What version of MARC::Charset do you have installed?  You can get that by running

perl -MMARC::Charset -e 'print $MARC::Charset::VERSION, "\n"';

from the sheel.



---- Additional Comments From quanzhong.zhang@xjtlu.edu.cn 2009-08-02 06:42:14 ----

The version is 1.1

# perl -MMARC::Charset -e 'print $MARC::Charset::VERSION, "\n"';
1.1





---- Additional Comments From magnus@enger.priv.no 2009-11-21 18:02:58 ----

I think I have just grappled with (a version) of this bug. For me the solution lay in the leader (field 000), position 09, which needs to be set to "a" for Koha to interpret records as Unicode. 

I have fiddled with creating frameworks for NORMARC, and had set 000 to be non mandatory. In addition, position 09 is not actually defined in NORMARC. The "a" in position 09 was included in the default value for this field, and it was also being set "behind the scenes" when the value_builder was used. But since 000 was not mandatory, it was possible to save a record without selecting values for this field and hence without 09=a. 

If 245$a contained "Norwegian vowels" (æøå), this would lead to a correct value in biblio.title, but 245$a in biblioitems.marcxml would be corrupted. Koha would not complain at this stage, but when I tried to add an item, clicking on "Add an item" would generate the error "Wide character in null operation at /usr/local/share/perl/5.10.0/MARC/Charset/Table.pm line 96." 

Changing 000 position 09 from " " to "a" and correcting the garbled characters would result in a clean save, both of the record and the items. 

I guess this may not be applicable to all occurrences of this error, but checking that 000 position 09 is set to "a" may be worth a try when this problem is encountered. 



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:10 UTC  ---

This bug was previously known as _bug_ 3463 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3463

Unknown operating system Linux - Redhat. Setting to default OS "All".
Actual time not defined. Setting to 0.0
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here: chris@bigballofwax.co.nz.
   Previous reporter was quanzhong.zhang@xjtlu.edu.cn.

Comment 1 Katrin Fischer 2014-09-01 12:21:52 UTC
I believe this is fixed in current versions, please reopen if you can still reproduce the problem.