Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Grmbl...
Browse files Browse the repository at this point in the history
  • Loading branch information
Getty committed May 1, 2012
1 parent f6af954 commit c5c93f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DDG/Translate.pm
Expand Up @@ -6,7 +6,6 @@ use warnings;

use Exporter 'import';
use Locale::gettext_pp qw(:locale_h :libintl_h);
use Encode qw( decode_utf8 );

use IO::All -utf8;

Expand Down Expand Up @@ -101,7 +100,8 @@ sub ldnp {
$return = sprintf(dnpgettext($td, $ctxt, $id, $idp, $n),@args);
}
# Fixing bad utf8 handling
return decode_utf8($return);
utf8::decode($return);
return $return;
}

sub ltd {
Expand Down

0 comments on commit c5c93f3

Please sign in to comment.