Changeset 2391


Ignore:
Timestamp:
06/08/20 23:07:17 (4 years ago)
Author:
nanardon
Message:

Fix utf8 input in la-cli

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli/Context.pm

    r2285 r2391  
    1111use Text::ParseWords; 
    1212use Getopt::Long; 
     13use utf8; 
     14use open qw( :std :utf8 ); 
    1315 
    1416=head1 NAME 
     
    5153    my $class = shift; 
    5254 
    53     my $term = Term::ReadLine->new('LA CLI'); 
     55    my $term = Term::ReadLine->new('LA CLI', \*STDIN, \*STDOUT ); 
     56    binmode($term->IN, ':utf8'); 
    5457    $term->MinLine(99999); 
    5558    my $OUT = \*STDOUT; 
Note: See TracChangeset for help on using the changeset viewer.