develooper Front page | perl.perl5.porters | Postings from April 2007

Re: Analysis of problems with mixed encoding case insensitive matches in regex engine.

Thread Previous | Thread Next
From:
Jerry D. Hedden
Date:
April 26, 2007 06:17
Subject:
Re: Analysis of problems with mixed encoding case insensitive matches in regex engine.
Message ID:
1ff86f510704260616u38ecc859pd42279d4bd83472a@mail.gmail.com
> Thanks, applied as #31081.

I get failures in t/op/pat.t with this patch on Cygwin Perl:

ok 1903 - "ss"!~/\xDF/i (str is latin, pat is latin)    Line 4376
ok 1904 - "ss"=~/\xDF/i (str is latin, pat is utf8)     Line 4371
not ok 1905 - "ss"=~/\xDF/i (str is utf8, pat is latin) Line 4371
# Failed test at line 4371
ok 1906 - "ss"=~/\xDF/i (str is utf8, pat is utf8)      Line 4371
ok 1907 - "sS"!~/\xDF/i (str is latin, pat is latin)    Line 4376
ok 1908 - "sS"=~/\xDF/i (str is latin, pat is utf8)     Line 4371
not ok 1909 - "sS"=~/\xDF/i (str is utf8, pat is latin) Line 4371
# Failed test at line 4371
ok 1910 - "sS"=~/\xDF/i (str is utf8, pat is utf8)      Line 4371
ok 1911 - "Ss"!~/\xDF/i (str is latin, pat is latin)    Line 4376
ok 1912 - "Ss"=~/\xDF/i (str is latin, pat is utf8)     Line 4371
not ok 1913 - "Ss"=~/\xDF/i (str is utf8, pat is latin) Line 4371
# Failed test at line 4371
ok 1914 - "Ss"=~/\xDF/i (str is utf8, pat is utf8)      Line 4371
ok 1915 - "SS"!~/\xDF/i (str is latin, pat is latin)    Line 4376
ok 1916 - "SS"=~/\xDF/i (str is latin, pat is utf8)     Line 4371
not ok 1917 - "SS"=~/\xDF/i (str is utf8, pat is latin) Line 4371
# Failed test at line 4371
ok 1918 - "SS"=~/\xDF/i (str is utf8, pat is utf8)      Line 4371
ok 1919 - "\xDF"=~/\xDF/i (str is latin, pat is latin)  Line 4371
not ok 1920 - "\xDF"=~/\xDF/i (str is latin, pat is utf8)       Line 4371
# Failed test at line 4371
ok 1921 - "\xDF"=~/\xDF/i (str is utf8, pat is latin)   Line 4371
ok 1922 - "\xDF"=~/\xDF/i (str is utf8, pat is utf8)    Line 4371


Could this be the result of something peculiar in my configuration:

Summary of my perl5 (revision 5 version 9 subversion 5 patch 31081)
configuration:
  Platform:
    osname=cygwin, osvers=1.5.24(0.15642), archname=cygwin-thread-multi-64int
    uname='cygwin_nt-5.0 pn100-02-2-054p 1.5.24(0.15642) 2007-01-31
10:57 i686 cygwin '
    config_args='-de -Dusedevel -Dversiononly=no -Dinstallusrbinperl
-Duse64bitint -Dusethreads -Uusemymalloc -A define:optimize=-O3 -pipe
-funit-at-a-time -mtune=pentium4m -march=pentium4 -mfpmath=sse
-mieee-fp -mmmx -msse -msse2 -A define:ld=/usr/bin/ld2 -A
append:ccflags= -DPERL_DONT_CREATE_GVSV -DNO_MATHOMS'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__
-DPERL_DONT_CREATE_GVSV -DNO_MATHOMS -fno-strict-aliasing -pipe',
    optimize='-O3 -pipe -funit-at-a-time -mtune=pentium4m
-march=pentium4 -mfpmath=sse -mieee-fp -mmmx -msse -msse2',
    cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__
-DPERL_DONT_CREATE_GVSV -DNO_MATHOMS -fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.4.4 (cygming special, gdc 0.12, using
dmd 0.125)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld2', ldflags =' -Wl,--enable-auto-import -s -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldl -lcrypt -lgdbm_compat
    perllibs=-ldl -lcrypt -lgdbm_compat
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
    cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY NO_MATHOMS PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_USE_SAFE_PUTENV USE_64_BIT_INT USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
        DEVEL
        31081
  Built under cygwin
  Compiled at Apr 26 2007 08:31:52
  %ENV:
    PERLIO="perlio"
    CYGWIN="ntsec"
  @INC:
    lib
    /usr/lib/perl5/5.9/cygwin
    /usr/lib/perl5/5.9
    .

Thread Previous | 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