aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ <Qi@web>2015-02-24 22:15:51 -0400
committeradmin <admin@branchable.com>2015-02-24 22:15:51 -0400
commitf07355f9cbc57e0f99c05ae98ff053489903721d (patch)
tree5943ac27296cba8bbb27ed6edb71b9f3a5f5b68c
parent4e3aa5c435dacf3692d4f613f88a360805da0633 (diff)
downloadikiwiki-f07355f9cbc57e0f99c05ae98ff053489903721d.tar
ikiwiki-f07355f9cbc57e0f99c05ae98ff053489903721d.tar.gz
-rw-r--r--doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm.mdwn47
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm.mdwn b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm.mdwn
new file mode 100644
index 000000000..467df274d
--- /dev/null
+++ b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm.mdwn
@@ -0,0 +1,47 @@
+Cross posting on Stackoverflow http://stackoverflow.com/questions/28709936/perl-error-related-to-encode-pm
+
+I have the following software:
+
+Ubuntu Linux 14.04 LTS
+
+ $ uname -a
+ Linux XXX 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
+
+
+Perl 5.18:
+
+ $ perl -version
+
+ This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
+ (with 41 registered patches, see perl -V for more detail)
+
+and Encode.pm 2.49:
+
+ $ head -n 10 /usr/lib/perl/5.18/Encode.pm
+ #
+ # $Id: Encode.pm,v 2.49 2013/03/05 03:13:47 dankogai Exp dankogai $
+
+
+When I use [ikiwiki](https://packages.debian.org/experimental/ikiwiki), which is a package using Encode.pm, I got the following error:
+
+ $ ikiwiki --setup ~/wiki.setup
+ Cannot decode string with wide characters at /usr/lib/perl/5.18/Encode.pm line 176.
+
+Lines 166 - 180 of Encode.pm reads:
+
+ sub decode($$;$) {
+ my ( $name, $octets, $check ) = @_;
+ return undef unless defined $octets;
+ $octets .= '';
+ $check ||= 0;
+ my $enc = find_encoding($name);
+ unless ( defined $enc ) {
+ require Carp;
+ Carp::croak("Unknown encoding '$name'");
+ }
+ my $string = $enc->decode( $octets, $check );
+ $_[1] = $octets if $check and !ref $check and !( $check & LEAVE_SRC() );
+ return $string;
+ }
+
+Does any kind soul have idea how to fix this issue?