Skip to content

ASCII-8BIT encoding #44

@albertnetymk

Description

@albertnetymk
ruby -e ' require "systemu";  p Encoding.default_internal = Encoding.default_external; status, stdout, stderr = systemu "echo 3"; p [status, stdout.encoding, stderr]'

The result I got using ruby 2.3.1 and systemu 2.6.5 is:

#<Encoding:UTF-8>
[#<Process::Status: pid 8346 exit 0>, #<Encoding:ASCII-8BIT>, ""]

I was expecting that changing default_internal would affect the encoding used by systemu. How can I tell systemu to use utf8 by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions