Changeset 873
- Timestamp:
- 11/23/08 10:54:30 (4 years ago)
- File:
-
- 1 edited
-
trunk/UnitTestContrib/test/unit/UTF8Tests.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/unit/UTF8Tests.pm
r816 r873 12 12 # 13 13 package UTF8Tests; 14 use base qw(Foswiki TestCase);14 use base qw(FoswikiFnTestCase); 15 15 16 16 use strict; 17 17 18 18 use Foswiki; 19 20 sub set_up {21 }22 23 sub tear_down {24 }25 19 26 20 sub DISABLEtest_urlEncodeDecode { … … 315 309 EOS 316 310 317 my $t = segfaulting_urlDecode($s);311 my $t = $this->segfaulting_urlDecode($s); 318 312 } 319 313 320 314 sub segfaulting_urlDecode { 321 my $text = shift;315 my ($this, $text) = @_; 322 316 323 317 $text =~ s/%([\da-f]{2})/chr(hex($1))/gei; 324 318 $text =~ s/%u([\da-f]{4})/chr(hex($1))/gei; 325 319 326 my $t = Foswiki::UTF82SiteCharSet( $text );320 my $t = $this->{twiki}->UTF82SiteCharSet( $text ); 327 321 328 322 $text = $t if ( $t );
Note: See TracChangeset
for help on using the changeset viewer.
