Skip to content

Commit

Permalink
Item175: not sure why this test decided not to work; looks like it wa…
Browse files Browse the repository at this point in the history
…s always wrong.

git-svn-id: http://svn.foswiki.org/trunk@873 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Nov 23, 2008
1 parent f44727c commit 0b6f958
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions UnitTestContrib/test/unit/UTF8Tests.pm
Expand Up @@ -11,18 +11,12 @@
# to have to work out how to re-initialise Foswiki for each test)
#
package UTF8Tests;
use base qw(FoswikiTestCase);
use base qw(FoswikiFnTestCase);

use strict;

use Foswiki;

sub set_up {
}

sub tear_down {
}

sub DISABLEtest_urlEncodeDecode {
my $this = shift;
my $s = '';
Expand Down Expand Up @@ -314,16 +308,16 @@ zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
EOS

my $t = segfaulting_urlDecode($s);
my $t = $this->segfaulting_urlDecode($s);
}

sub segfaulting_urlDecode {
my $text = shift;
my ($this, $text) = @_;

$text =~ s/%([\da-f]{2})/chr(hex($1))/gei;
$text =~ s/%u([\da-f]{4})/chr(hex($1))/gei;

my $t = Foswiki::UTF82SiteCharSet( $text );
my $t = $this->{twiki}->UTF82SiteCharSet( $text );

$text = $t if ( $t );

Expand Down

0 comments on commit 0b6f958

Please sign in to comment.