develooper Front page | perl.perl5.porters | Postings from October 2012

[perl #115538] perldoc cannot find functions sections when is called with -L switch

Thread Previous
From:
Joaquin Ferrero
Date:
October 31, 2012 04:25
Subject:
[perl #115538] perldoc cannot find functions sections when is called with -L switch
Message ID:
rt-3.6.HEAD-17500-1351682717-162.115538-75-0@perl.org
# New Ticket Created by  Joaquin Ferrero 
# Please include the string:  [perl #115538]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115538 >



This is a bug report for perl from explorer@joaquinferrero.com,
generated with the help of perlbug 1.39 running under perl 5.16.1.


-----------------------------------------------------------------
When perldoc is called using the '-L XX' and '-f' switches, it
cannot find the corresponding section of the requested function
if the string returned by POD2::XX::search_perlfunc_re() (i.e.
the string that marks the beginning of the section in
perlfunc.pod that contains the descriptions of the functions
available) is not encoded as iso-8859-1.

       perldoc -L ES perlfunc

    works, but

       perldoc -L ES -f chr

    returns the following error message:

   No documentation for perl function 'chr' found

Interum solution: search_perlfunc_re() should return an
iso-8859-1-encoded string fully (or partially) matching the same
string that should appear in perlfunc.pod.

Proposed solution: The search process of the string returned by
search_perlfunc_re() should consider the encoding used for
perlfunc.pod.

In POD2::ES all the docs are UTF-8-encoded. As a temporary
solution, we have fixed this issue by removing characters with
diacritic marks:

	sub search_perlfunc_re {
	    return 'Lista de funciones de Perl en orden';
	}

    (removed ‘alfabético’)

-----------------------------------------------------------------
---
Flags:
    category=docs
    severity=medium
---
Site configuration information for perl 5.16.1:

Configured by explorer at Tue Aug 21 01:17:37 CEST 2012.

Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
   
  Platform:
    osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux
    uname='linux hs-1509 2.6.32-5-amd64 #1 smp mon oct 3 03:59:20 utc 2011 x86_64 gnulinux '
    config_args='-de -Dprefix=/home/explorer/perl5/perlbrew/perls/perl-5.16.1'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.5', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /usr/lib/x86_64-linux-gnu /lib64 /usr/lib64
    libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.11.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.16.1:
    /home/explorer/.perlbrew/libs/perl-5.16.1@locallib/lib/perl5/x86_64-linux-gnu-thread-multi
    /home/explorer/.perlbrew/libs/perl-5.16.1@locallib/lib/perl5/x86_64-linux
    /home/explorer/.perlbrew/libs/perl-5.16.1@locallib/lib/perl5
    /home/explorer/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1/x86_64-linux
    /home/explorer/perl5/perlbrew/perls/perl-5.16.1/lib/site_perl/5.16.1
    /home/explorer/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/x86_64-linux
    /home/explorer/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1
    .

---
Environment for perl 5.16.1:
    HOME=/home/explorer
    LANG=es_ES.UTF-8
    LANGUAGE=es:en
    LC_COLLATE=es_ES.UTF-8
    LC_CTYPE=es_ES.UTF-8
    LC_MESSAGES=es_ES.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib/bin:/home/explorer/perl5/perlbrew/bin:/home/explorer/perl5/perlbrew/perls/perl-5.16.1/bin:/home/explorer/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/java/jdk1.6.0_07
    PERL5LIB=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib/lib/perl5/x86_64-linux-gnu-thread-multi:/home/explorer/.perlbrew/libs/perl-5.16.1@locallib/lib/perl5
    PERLBREW_BASHRC_VERSION=0.43
    PERLBREW_HOME=/home/explorer/.perlbrew
    PERLBREW_LIB=locallib
    PERLBREW_MANPATH=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib/man:/home/explorer/perl5/perlbrew/perls/perl-5.16.1/man
    PERLBREW_PATH=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib/bin:/home/explorer/perl5/perlbrew/bin:/home/explorer/perl5/perlbrew/perls/perl-5.16.1/bin
    PERLBREW_PERL=perl-5.16.1
    PERLBREW_ROOT=/home/explorer/perl5/perlbrew
    PERLBREW_VERSION=0.43
    PERLDOC_POD2=1
    PERL_BADLANG (unset)
    PERL_LOCAL_LIB_ROOT=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib
    PERL_MB_OPT=--install_base /home/explorer/.perlbrew/libs/perl-5.16.1@locallib
    PERL_MM_OPT=INSTALL_BASE=/home/explorer/.perlbrew/libs/perl-5.16.1@locallib
    SHELL=/bin/bash


Thread Previous


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