When I compile the following program with perl 5.8.8:
I've got a "segment fault" error:-bash-3.1$ cat -n prueba.pl 1 use strict; 2 use encoding 'utf8'; 3 4 my $x = 'áéíóúñ€'; 5 $x =~ m/áéíóúñ(€)/;
Is a Fedora Linux machine:-bash-3.1$ perl -c prueba.pl Violación de segmento
This is the gcc compiler:-bash-3.1$ uname -a Linux somename.domain.es 2.6.24.2 #3 SMP Fri Feb 15 10:39:28 WET 2008 +i686 i686 i386 GNU/Linux
This is the locale:-bash-3.1$ gcc -v Usando especificaciones internas. Objetivo: i386-redhat-linux Configurado con: ../configure --prefix=/usr --mandir=/usr/share/man -- +infodir=/usr/share/info --enable-shared --enable-threads=posix --enab +le-checking=release --with-system-zlib --enable-__cxa_atexit --disabl +e-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c +,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-ds +si --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2 +.0/jre --with-cpu=generic --host=i386-redhat-linux Modelo de hilos: posix gcc versión 4.1.2 20070626 (Red Hat 4.1.2-13)
I tried the same program in a Linux Debian installation with similar results:-bash-3.1$ env | grep -i lan LANG=es_ES.UTF-8
lhp@nereida:~/Lperl/src/testing$ perl encoding3.pl *** glibc detected *** double free or corruption (!prev): 0x08205830 * +** Abortado
Many thanks
Casiano
In reply to Perl bug in "encoding" module? by casiano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |