Ignore:
Timestamp:
2011-10-10T15:01:45+13:00 (13 years ago)
Author:
ak19
Message:

Removed code that was added in a recent commit and is no longer used: to do with getting accents in classifier buttonnames to be preserved. The previous fix was to treat buttonname as raw bytedata and call the old method to convert to unicode. Dr Bainbridge then fixed it much better: colcfg, which stores the buttonname, is now read in as unicode aware strings, so no conversion to unicode is necessary anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/classify/BaseClassifier.pm

    r24737 r24745  
    5656use printusage;
    5757use parse2;
    58 use unicode;
    5958
    6059# suppress the annoying "subroutine redefined" warning that various
     
    280279    delete $self->{"info_only"};
    281280
    282 # The following is no longer needed as we now ensure that when text files are
    283 # read in, there are straightaway made to be Unicode aware strings in Perl
    284    
    285 #   # user-entered UTF-8 display meta for buttonname. Needs to be internally turned into unicode
    286 #   # (will later be turned back to UTF-8 along with the rest of the metadata)
    287 #   if ($self->{'buttonname'}) {
    288 #       $self->{'buttonname'} = &unicode::convert_utf8_string_to_unicode_string($self->{'buttonname'});
    289 #   }
     281# We now ensure that when text files (and even colcfg) are read in,
     282# they are straightaway made to be Unicode aware strings in Perl
     283   
    290284    return bless $self, $class;
    291285}
Note: See TracChangeset for help on using the changeset viewer.