From b420460c9717608d2909688a10129bbc9f6b94f5 Mon Sep 17 00:00:00 2001 From: Slaven Rezic Date: Sun, 21 Feb 2016 21:21:57 +0000 Subject: [PATCH] decode_utf8 not needed anymore (RT #103283) I guess that decode_utf8 is not needed anymore, as the YAML-loaded files are probably already correctly decoded (at least with newer YAML versions); and there are failures with newer Encode versions (>= 2.53) anyway. --- lib/DateTime/Calendar/Japanese/Era.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DateTime/Calendar/Japanese/Era.pm b/lib/DateTime/Calendar/Japanese/Era.pm index 5ea47f6..2b4cc2b 100644 --- a/lib/DateTime/Calendar/Japanese/Era.pm +++ b/lib/DateTime/Calendar/Japanese/Era.pm @@ -214,14 +214,14 @@ sub load_from_file if ( $opts->{is_south_regime} ) { push @SOUTH_REGIME_ERAS, __PACKAGE__->new( id => $this_era->[$ID], - name => Encode::decode_utf8($this_era->[$NAME]), + name => $this_era->[$NAME], start => $start_date, end => $end_date, ); } else { __PACKAGE__->register_era( id => $this_era->[$ID], - name => Encode::decode_utf8($this_era->[$NAME]), + name => $this_era->[$NAME], start => $start_date, end => $end_date ); -- 2.1.2