8000 ASCII-8BIT encoding · Issue #44 · ahoward/systemu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ASCII-8BIT encoding #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
albertnetymk opened this issue Oct 19, 2016 · 0 comments
Open

ASCII-8BIT encoding #44

albertnetymk opened this issue Oct 19, 2016 · 0 comments

Comments

@albertnetymk
Copy link
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0