develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #122551] Should work with utf-8 characters

Thread Next
Father Chrysostomos via RT
October 27, 2014 23:04
[perl #122551] Should work with utf-8 characters
Message ID:
On Thu Sep 18 09:21:26 2014, wrote:
> [CODE]
> use Term::ReadLine;
> my $term = Term::ReadLine->new('Test');
> my $prompt = "Enter utf8 symbol: ";
> $term->readline($prompt);
> [/CODE]
> Enter utf8 symbol: жузель
> in fact, it turns out:
> Enter utf8 symbol: ??????
> In debian after installing the package libterm-readline-gnu-perl
> problem is gone

It would be useful to know which ReadLine backend it was using.  If you could uninstall the package temporarily and add:

    warn "ReadLine library is ", $term->ReadLine;

to your code, the output would be helpful in figuring out why the question marks were showing up.  (I cannot reproduce the problem on Mac OS X with the default Stub implementation.)


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About