[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40069: Fix encoding of stdout and stderr



Title: GitLab

richard pushed to branch main at The Tor Project / Applications / RBM

Commits:

  • 067c30ee
    by Nicolas Vigier at 2024-01-30T12:50:32+01:00
    Bug 40069: Fix encoding of stdout and stderr
    
    Set stdout and stder encoding based on nl_langinfo, or LC_ALL and LANG
    locale environment variables, as suggested on
    https://perldoc.perl.org/open.
    

1 changed file:

Changes:

  • rbm
    1 1
     #!/usr/bin/perl -w
    
    2 2
     
    
    3 3
     use strict;
    
    4
    +use open OUT => ':locale';
    
    4 5
     use File::Basename;
    
    5 6
     use lib dirname($0) . '/lib';
    
    6 7
     use RBM;
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits