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

[perl #119785] bsd_glob does not sort case-sensitively

Thread Next
From:
John Wiersba
Date:
September 14, 2013 22:40
Subject:
[perl #119785] bsd_glob does not sort case-sensitively
Message ID:
rt-3.6.HEAD-1873-1379100193-1002.119785-75-0@perl.org
# New Ticket Created by  John Wiersba 
# Please include the string:  [perl #119785]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119785 >



This is a bug report for perl from jrw32982@yahoo.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.


-----------------------------------------------------------------
[Please describe your issue here]

According to all versions of File::Glob's doc, it appears that it should
sort case-insensitively.  But instead, it sorts as if GLOB_NOCASE was
supplied.

$ touch tt TTT uu

$ LC_ALL=C

$ export LC_ALL

$ ls
TTT  tt  uu

$ /opt/perl5.16/bin/perl -MFile::Glob=:bsd_glob -le 'print for bsd_glob "*"'
tt
TTT
uu

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=File::Glob
---
Site configuration information for perl 5.16.3:

Configured by ActiveState at Wed Mar 13 11:03:46 PDT 2013.

Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
   
  Platform:
    osname=linux, osvers=2.6.11-1.1369_fc4, archname=x86_64-linux-thread-multi
    uname='linux perl-linux64-vm 2.6.11-1.1369_fc4 #1 thu jun 2 22:56:33 edt 2005 x86_64 x86_64 x86_64 gnulinux '
    config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dlibpth=/lib64 /usr/lib64 /usr/local/lib64 -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-DPERL_RELOCATABLE_INCPUSH -Accflags=-fno-merge-constants -Dprefix=/opt/ActivePerl-5.16 -Dprivlib=/opt/ActivePerl-5.16/lib -Darchlib=/opt/ActivePerl-5.16/lib -Dsiteprefix=/opt/ActivePerl-5.16/site -Dsitelib=/opt/ActivePerl-5.16/site/lib -Dsitearch=/opt/ActivePerl-5.16/site/lib -Dsed=/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe'
    ccversion='', gccversion='4.0.0 20050519 (Red Hat 4.0.0-8)', 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='gcc', ldflags =''
    libpth=/lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/ActivePerl-5.16/lib/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY

---
@INC for perl 5.16.3:
    /home/jrw32982/std/lib/perl
    /../lib
    /opt/ActivePerl-5.16/site/lib
    /opt/ActivePerl-5.16/lib
    .

---
Environment for perl 5.16.3:
    HOME=/home/jrw32982
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/jrw32982/vim73/bin:/home/jrw32982/std/bin:/home/jrw32982/sh:/home/jrw32982/bin:/home/jrw32982/local:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/ucb:/usr/games:/usr/bin/X11:/usr/X11R6/bin:/etc:.
    PERL5LIB=/home/jrw32982/std/lib/perl:/../lib
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


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