Changeset 8903


Ignore:
Timestamp:
2005-01-17T17:11:54+13:00 (19 years ago)
Author:
jrm21
Message:

fix typo in ensure_utf8 function for asian characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/unicode.pm

    r8716 r8903  
    491491    my $byte_replaced = 0;
    492492    while ($highbytes =~
    493         m!\G (?: [\xc0-\xdf][\x80-\xbf]    | # 2 byte utf-8
     493        m!\G (?: [\xc0-\xdf][\x80-\xbf]   | # 2 byte utf-8
    494494            [\xe0-\xef][\x80-\xbf]{2} | # 3 byte
    495             [\xf0-\xf7][\x80-\xbf]{3}   # 4 byte
    496             [\xf8-\xfb][\x80-\xbf]{4}   # 5 byte
    497             [\xfc-\xfd][\x80-\xbf]{5}   # 6 byte
     495            [\xf0-\xf7][\x80-\xbf]{3} | # 4 byte
     496            [\xf8-\xfb][\x80-\xbf]{4} | # 5 byte
     497            [\xfc-\xfd][\x80-\xbf]{5} | # 6 byte
    498498            )*([\x80-\xff])? !xg
    499499        ) {
Note: See TracChangeset for help on using the changeset viewer.