#450663 libipc-run-perl: ack Read error when locale not in English

Package:
libipc-run-perl
Source:
libipc-run-perl
Submitter:
"Marcos Riosalido"
Date:
2026-05-13 02:43:32 UTC
Severity:
normal
Tags:
#450663#5
Date:
2007-11-08 22:35:09 UTC
From:
To:
To establish LANG=es_ES generate the following error
    ack Error de entrada/salida: read ( 3 ) at /usr/share/perl5/IPC/Run/IO.pm
Which is not the case putting LANG=C.
This happens in the use of IPC::Run::harness in the method pump.

#450663#10
Date:
2010-05-01 07:05:45 UTC
From:
To:
tag 450663 + moreinfo
thanks

Hi Marcos

It's long time you reported this issue. Is this your problem stil
reproducible? If yes, could you give some minimal example showing
this?

Bests
Salvatore

#450663#15
Date:
2010-05-01 07:05:45 UTC
From:
To:
tag 450663 + moreinfo
thanks

Hi Marcos

It's long time you reported this issue. Is this your problem stil
reproducible? If yes, could you give some minimal example showing
this?

Bests
Salvatore

#450663#20
Date:
2011-02-03 21:24:11 UTC
From:
To:
This bug is old, but i have the problem too.

$IPC::Run::VERSION == '0.89'

OS: debian squeeze.

I installed IPC::Run with cpan.

running something like this:

my @command = ("sfdisk", ...);
my $command_out = '';
my $command_in;
my $command_h = start \@command, '<pty<', \$command_in, '>pty>',
\$command_out;

while(pump $command_h) {
    ...
    # Do some stuff with sfdisk
    ...
}

finish($command_h);

When using my default locale (fr_FR.UTF8), i get this error: 'ack Erreur
d'entrée/sortie: read( 4 ) at /usr/share/perl5/IPC/Run/IO.pm line 558'
When setting LC_ALL=POSIX, everything goes well.

#450663#25
Date:
2011-02-04 08:37:51 UTC
From:
To:
- "run() miscalculates length of UTF-8 strings"
https://rt.cpan.org/Ticket/Display.html?id=14078
- " Pumping UTF-8 data mangles it"
https://rt.cpan.org/Public/Bug/Display.html?id=58853

I'm going to suggest upstream to use binmode on the file handles

All the best

Dominique
--
http://config-model.wiki.sourceforge.net/ -o- http://search.cpan.org/~ddumont/
http://www.ohloh.net/accounts/ddumont     -o- http://ddumont.wordpress.com/

#450663#32
Date:
2018-04-02 15:40:55 UTC
From:
To:
I'm the upstream author and am having quite a bit of trouble determining if this bug is reported upstream. I would guess the issue you're reporting here is related to this which we're actively discussing.

Thoughts?

https://github.com/toddr/IPC-Run/issues/116