Giter Site home page Giter Site logo

Comments (3)

ugexe avatar ugexe commented on July 18, 2024

I was not aware of that, thanks. I think its from Proc itself and the NORMALIZE_ENCODING:
https://github.com/rakudo/rakudo/blob/nom/src/core/Proc.pm#L43
I imagine most things that use Proc and read from .out will encounter the same error right now unless the encoding is manually set

I have an idea to workaround it using unpack to decode instead, but could you paste the German output of mode so I can test the regex?

from zef.

cygx avatar cygx commented on July 18, 2024

could you paste the German output of mode so I can test the regex?

Sure. Here's what I get on a pristine cmd terminal:

Status von Gerät CON:
---------------------
    Zeilen:          300
    Spalten:         80
    Wiederholrate:   31
    Verzögerungszeit:1
    Codepage:        850

from zef.

ugexe avatar ugexe commented on July 18, 2024
# error?
perl6 -e ".say for shell('mode', :out).out.lines"

# ok?
perl6 -e ".say for shell('mode', :out, :enc('latin-1')).out.lines"

I suspect this could fix this specific instance. There are others that will need to be looked at now, but the stdout from those usually is printed back out to the terminal so may require a more targeted solution.

from zef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.