I have been pointing at a general issue with MARC::Record and perl IO.
Your case may come across other issues as well.

You have not provided any code, so I don't know how you ended up with that 
record you have attached.
The only thing I can say with any certainty is the same as marcdump says:
"Invalid record length in record"

>I was under the impression that the MARC record length in the Leader was >the 
>record length in bytes rather than the number of characters.  Is that >your 
>understanding?

Yes.
That is why a simple
use bytes;
works in the general case I exemplified with (see my previous post).

If you have confirmed that tag type makes a difference, then you're for sure 
dealing with additional issues.
(But I am rather sure it all goes back, one way or another, to the basic 
characteristics of Perl IO.)

If you post code and data to reproduce the faulty behaviour we can have a 
deeper look into it.

Leif

======================================
Leif Andersson, Systems Librarian
Stockholm University Library
SE-106 91 Stockholm
SWEDEN
Phone : +46 8 162769
Mobile: +46 70 6904281

-----Ursprungligt meddelande-----
Från: Doran, Michael D [mailto:[EMAIL PROTECTED] 
Skickat: den 3 mars 2008 17:36
Till: Leif Andersson; perl4lib@perl.org
Ämne: RE: Help for utf-8 output

Hi Leif,

I really appreciate you taking a look at this and responding.  Although I 
consider myself somewhat knowledgeable about character sets, I still find these 
kinds of problems to be confusing.

> In this case the leader and actual length will not agree, as 
> your utf8 characters have turned into latin1.

I was under the impression that the MARC record length in the Leader was the 
record length in bytes rather than the number of characters.  Is that your 
understanding?

Also, I am still troubleshooting my particular set of records (I was out of 
town last week) since this problem only appears to manifest itself for records 
with non-ASCII characters in the 100 and 245 fields.  Records with a note field 
having non-ASCII characters doesn't cause a problem. 

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# [EMAIL PROTECTED]
# http://rocky.uta.edu/doran/
 

Reply via email to