develooper Front page | perl.perl5.porters | Postings from September 2003

Unknown discipline ':utf8' w/ maint perl w/o perlio

From:
Stas Bekman
Date:
September 12, 2003 13:44
Subject:
Unknown discipline ':utf8' w/ maint perl w/o perlio
Message ID:
3F62301B.3080604@stason.org
If perl is built without perlio, and one tries to do:

perl -le 'binmode(STDOUT, ":utf8");'
Unknown discipline ':utf8' at -e line 1.

I'd say that this error is not quite helpful to a Joe user. Is it possible to 
change the error to say:

   Unknown discipline ':utf8'.
   To use IO layers you need to rebuild perl with -Duseperlio

or something similar?

~/perl/5.8.1-nouseperlio/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
   Platform:
     osname=linux, osvers=2.4.21-0.18mdkcustom, archname=i686-linux-stdio
     uname='linux rabbit.stason.org 2.4.21-0.18mdkcustom #6 mon jun 16 
16:26:34 est 2003 i686 unknown unknown gnulinux '
     config_args='-des -Dprefix=/home/stas/perl/5.8.1-nouseperlio 
-Doptimize=-g -Uuseperlio -Dusedevel'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     optimize='-g',
     cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-I/usr/include/gdbm'
     ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)', 
gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
     libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.3.2'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: DEBUGGING USE_LARGE_FILES
   Locally applied patches:
         MAINT20844
   Built under linux
   Compiled at Aug 22 2003 11:28:26
   %ENV:
     PERLDOC_PAGER="less -R"
   @INC:
     /home/stas/perl/5.8.1-nouseperlio/lib/5.8.1/i686-linux-stdio
     /home/stas/perl/5.8.1-nouseperlio/lib/5.8.1
     /home/stas/perl/5.8.1-nouseperlio/lib/site_perl/5.8.1/i686-linux-stdio
     /home/stas/perl/5.8.1-nouseperlio/lib/site_perl/5.8.1
     /home/stas/perl/5.8.1-nouseperlio/lib/site_perl
     .


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About