View | Details | Raw Unified | Return to bug 22824
Collapse All | Expand All

(-)a/t/db_dependent/yaml.t (-2 / +2 lines)
Lines 3-8 use Test::More; Link Here
3
3
4
use YAML::XS;
4
use YAML::XS;
5
use Template;
5
use Template;
6
use Encode;
6
use utf8;
7
use utf8;
7
8
8
my $template = Template->new( ENCODING => 'UTF-8' );
9
my $template = Template->new( ENCODING => 'UTF-8' );
Lines 11-17 my $vars; Link Here
11
my $output;
12
my $output;
12
$template->process( 't/db_dependent/data/syspref.pref', $vars, \$output );
13
$template->process( 't/db_dependent/data/syspref.pref', $vars, \$output );
13
14
14
my $yaml = YAML::XS::Load( $output );
15
my $yaml = YAML::XS::Load( Encode::encode_utf8( $output ) );
15
my $syspref_1 = $yaml->{Test}->{Testing}->[0];
16
my $syspref_1 = $yaml->{Test}->{Testing}->[0];
16
my $syspref_2 = $yaml->{Test}->{Testing}->[1];
17
my $syspref_2 = $yaml->{Test}->{Testing}->[1];
17
my $syspref_3 = $yaml->{Test}->{Testing}->[2];
18
my $syspref_3 = $yaml->{Test}->{Testing}->[2];
18
- 

Return to bug 22824