develooper Front page | perl.perl5.porters | Postings from January 2009

[perl #62060] Devel::Peek misprints \a\t\n\f\r in UTF8 strings

Thread Next
From:
Eric Brine
Date:
January 8, 2009 01:01
Subject:
[perl #62060] Devel::Peek misprints \a\t\n\f\r in UTF8 strings
Message ID:
rt-3.6.HEAD-28035-1231385984-1878.62060-75-0@perl.org
# New Ticket Created by  "Eric Brine" 
# Please include the string:  [perl #62060]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62060 >


This is a bug report for perl from ikegami@adaelis.com,
generated with the help of perlbug 1.36 running under perl 5.10.0.


-----------------------------------------------------------------
[Please enter your report here]


Slashes are missing in the output of Devel::Peek:

>perl5100\bin\perl -MDevel::Peek -e"utf8::upgrade $x = join '', map chr,
7,9,10,12,13; Dump $x"
SV = PV(0x236d8c) at 0x1829a94
  REFCNT = 1
  FLAGS = (POK,pPOK,UTF8)
  PV = 0x183076c "\7\t\n\f\r"\0 [UTF8 "atnfr"]
  CUR = 5                             -------
  LEN = 8                                 \_____ should be "\a\t\n\f\r"

Same in 5.8.8:

>perl588\bin\perl -MDevel::Peek -e"utf8::upgrade $x = join '', map chr,7,9,10,12,13; Dump $x"
SV = PV(0x238e5c) at 0x236030
  REFCNT = 1
  FLAGS = (POK,pPOK,UTF8)
  PV = 0x182451c "\7\t\n\f\r"\0 [UTF8 "atnfr"]
  CUR = 5
  LEN = 8


But it worked in 5.8.0!

>perl580\bin\perl -MDevel::Peek -e"utf8::upgrade $x = join '', map chr,
7,9,10,12,13; Dump $x"
SV = PV(0x183b4a4) at 0x1823e74
  REFCNT = 1
  FLAGS = (POK,pPOK,UTF8)
  PV = 0x182a634 "\7\11\12\14\15"\0 [UTF8 "\a\t\n\f\r"]
  CUR = 5
  LEN = 6


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

Configured by SYSTEM at Tue Dec 18 08:45:53 2007.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32
-D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE
-DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DUSE_PERLIO -DPERL_MSVCRT_READFIX',
    optimize='-MD -Zi -DNDEBUG -O1',
    cppflags='-DWIN32'
    ccversion='12.00.8804', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-libpath:"C:\progs\perl5100\lib\CORE"  -machine:x86'
    libpth=\lib
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl510.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf  -libpath:"C:\progs\perl5100\lib\CORE"  -machine:x86'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY

---
@INC for perl 5.10.0:
    c:/progs/perl5100/site/lib
    c:/progs/perl5100/lib
    .

---
Environment for perl 5.10.0:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=C:\Progs\MICROS~3\Common\msdev98\BIN;C:\Progs\MICROS~3\VC98\BIN;C:\Progs\MICROS~3\Common\TOOLS\WINNT;C:\Progs\MICROS~3\Common\TOOLS;c:\progs\perl5100\bin;c:\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\WBEM
    PERL_BADLANG (unset)
    SHELL (unset)

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