Changeset 9462


Ignore:
Timestamp:
2005-03-18T11:57:51+13:00 (19 years ago)
Author:
mdewsnip
Message:

Added "use bytes" in all XML::Parser Char functions. This is to prevent nasty encoding problems when using XML::Parser versions 2.31+. See BasPlug's revision 1.58 log message for more information on this problem.

With much help from John McPherson.

Location:
trunk/gsdl/perllib/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BNContentePlug.pm

    r8764 r9462  
    316316# things down significantly in some cases.
    317317sub Char {
     318    use bytes;  # Necessary to prevent encoding issues with XML::Parser 2.31+
    318319    $_[0]->{'Text'} .= $_[1];
    319320    if ((defined $self->{'subfield'} && ($self->{'subfield'} ne ""))) {
  • trunk/gsdl/perllib/plugins/DSpacePlug.pm

    r9168 r9462  
    411411# things down significantly in some cases.
    412412sub Char {
    413   $_[0]->{'Text'} .= $_[1];
    414   return undef;
     413    use bytes;  # Necessary to prevent encoding issues with XML::Parser 2.31+
     414    $_[0]->{'Text'} .= $_[1];
     415    return undef;
    415416}
    416417
  • trunk/gsdl/perllib/plugins/RecPlug.pm

    r9376 r9462  
    548548# things down significantly in some cases.
    549549sub Char {
    550   $_[0]->{'Text'} .= $_[1];
    551   return undef;
     550    use bytes;  # Necessary to prevent encoding issues with XML::Parser 2.31+
     551    $_[0]->{'Text'} .= $_[1];
     552    return undef;
    552553}
    553554
  • trunk/gsdl/perllib/plugins/XMLPlug.pm

    r8716 r9462  
    149149# things down significantly in some cases.
    150150sub Char {
    151   $_[0]->{'Text'} .= $_[1];
    152   return undef;
     151    use bytes;  # Necessary to prevent encoding issues with XML::Parser 2.31+
     152    $_[0]->{'Text'} .= $_[1];
     153    return undef;
    153154}
    154155
Note: See TracChangeset for help on using the changeset viewer.