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

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

Stas Bekman
September 12, 2003 13:44
Unknown discipline ':utf8' w/ maint perl w/o perlio
Message ID:
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:
     osname=linux, osvers=2.4.21-0.18mdkcustom, archname=i686-linux-stdio
     uname='linux 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
     cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
     ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)', 
     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', 
     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/, so=so, useshrplib=false, libperl=libperl.a
   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:
   Built under linux
   Compiled at Aug 22 2003 11:28:26
     PERLDOC_PAGER="less -R"

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide ---> Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About