Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf8 character constants and/or split support does not work #1904

Closed
p5pRT opened this issue Apr 27, 2000 · 2 comments
Closed

utf8 character constants and/or split support does not work #1904

p5pRT opened this issue Apr 27, 2000 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 27, 2000

Migrated from rt.perl.org#3174 (status was 'resolved')

Searchable as RT3174$

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2000

From benson@basistech.com

Created by benson@basistech.com

A very simple test case, shown below, fails on simple 'utf8' operations. The
sample sets a string to contain a series of UTF8 characters specified as
Unicode hex values (as per the documentation). Splitting them on character
boundaries does not recover these values.

use utf8;
use warnings;
use strict;

my $sushi = "\x{b36c}\x{5a8c}\x{ff5b}\x{5079}\x{505b}";

my @​charlist = split //, $sushi;
my $r;
foreach my $ch (@​charlist) {
  print ord($ch) . "\n";
  $r = $r . sprintf "U+%04X", ord($ch);
}

print $r . "\n";

Perl Info

Flags:
    category=core
    severity=high

This perlbug was built using Perl v5.6.0 - Tue Apr 25 08:56:04 2000
It is being executed now by  Perl v5.6.0 - Fri Mar 24 12:36:06 2000.

Site configuration information for perl v5.6.0:

Configured by gsar at Fri Mar 24 12:36:06 2000.

Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cl.exe', optimize='-O1 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"C:\Perl\lib\CORE"  -machine:x86'
    libpth="C:\Perl\lib\CORE" 
    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 wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    libc=C:\Perl\lib\CORE\PerlCRT.lib, so=dll, useshrplib=yes,
libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"C:\Perl\lib\CORE"  -machine:x86'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY


@INC for perl v5.6.0:
    C:/Perl/lib
    C:/Perl/site/lib
    .


Environment for perl v5.6.0:
    HOME=C:/benson
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
 
PATH=C:\Perl\bin\;C:\W2K\system32;C:\W2K;C:\W2K\system32\WBEM;c:\inetpub\hss
ystem;C:\Perl\bin;C:\mks\mksnt;C:\W2K\system32;C:\W2K;C:\W2K\System32\Wbem;C
:\platsdk\Bin\;C:\platsdk\Bin\WinNT;c:\sdk-java-40\bin;C:\Program
Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft
Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual
Studio\Common\Tools;C:\VS6\VC98\bin;c:\cmdc:\sdk-java-40\bin;c:\opus\nt;C:\C
afe\Bin;C:\Cafe\Java\Bin;
    PERL_BADLANG (unset)
    SHELL=C:/mks/mksnt/sh.exe


@p5pRT p5pRT closed this as completed Nov 28, 2003
@p5pRT
Copy link
Author

p5pRT commented Nov 28, 2003

From The RT System itself

duplicate of 20000427.003, only severity is higher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant