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

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

Thread Next
From:
Father Chrysostomos via RT
Date:
October 27, 2014 23:04
Subject:
[perl #122551] Should work with utf-8 characters
Message ID:
rt-4.0.18-8057-1414451052-295.122551-15-0@perl.org
On Thu Sep 18 09:21:26 2014, krajserg@gmail.com 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
https://rt.perl.org/Ticket/Display.html?id=122551

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