Ignore:
Timestamp:
2010-12-01T11:40:36+13:00 (13 years ago)
Author:
davidb
Message:

Additional routines (and few upgraded) to help support Greenstone working with filenames under Windows when then go beyond Latin-1 and start turning up in their DOS abbreviated form (e.g. Test~1.txt)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/ghtml.pm

    r22952 r23362  
    207207
    208208    # a numeric entity
    209     if ($entity =~ /^\#0*(\d+)/) {
    210     my $code=$1;
     209    my $code = undef;
     210    if ($entity =~ m/^\#0*(\d+)$/) {
     211    $code=$1;
     212    }
     213    elsif ($entity =~ m/^\#x([0-9A-F]+)$/i) {
     214    $code=hex($1);
     215    }
     216
     217    if (defined $code) {
    211218    # non-standard Microsoft breakage, as usual
    212219    if ($code < 0x9f) { # code page 1252 uses reserved bytes
Note: See TracChangeset for help on using the changeset viewer.