perl-Acme-FixIO-0.02-alt1.noarch.rpm


Advertisement

Description

perl-Acme-FixIO - Workaround for Windows chcp 65001 UTF-8 output bug

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-Acme-FixIO
Package version: 0.02
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 19.97 KB
Download size: 19.97 KB
Official Mirror: ftp.altlinux.org
This is the underlying problem: The last octet is repeated when Perl outputs a UTF-8 encoded string in cmd.exe, chcp 65001 Two StackOverflow articles with basically the same problem: http://stackoverflow.com/questions/23416075 and http://stackoverflow.com/questions/25585248. This is caused by a bug in Windows. When writing to a console set to code page 65001, WriteFile() returns the number of characters written instead of the number of bytes. Workaround: Inject a binmode(STDOUT, ':unix:encoding(utf8):crlf') into the perl program.

Alternatives

Requires

Provides

  • perl(Acme/FixIO.pm) = 0.020
  • perl-Acme-FixIO = 0.02-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-Acme-FixIO rpm package:
      # sudo apt-get install perl-Acme-FixIO

    Files

    • /usr/share/doc/perl-Acme-FixIO-0.02/Changes
    • /usr/share/doc/perl-Acme-FixIO-0.02/LICENSE
    • /usr/share/doc/perl-Acme-FixIO-0.02/README
    • /usr/share/perl5/Acme/FixIO.pm
    Advertisement
    Advertisement