GithubHelp home page GithubHelp logo

Comments (7)

voxik avatar voxik commented on July 19, 2024

Actually the problem comes from this commit http://github.com/grosser/autotest/commit/d827a4a5004ae3d89be45b61422ad500c79d4f52 where the putc was replaced by print. When you replace it back, the coloring will work. I have no idea for what purpose it was changed ...

from autotest.

lstoldt avatar lstoldt commented on July 19, 2024

I also have this problem and changing print to putc fixed it for me.

from autotest.

luislavena avatar luislavena commented on July 19, 2024

The problem about using print vs putc is because print fixes the output of UTF strings, something that getc will actually corrupt from input (try pass specs with accented characters in it).

Either way, please see the RubyInstaller thread about deprecating win32console support:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/2d2a62db7281509a/

from autotest.

daniel avatar daniel commented on July 19, 2024

Does this bug effect other OSes? I get no colours in Debian (but I do in Mac OS X).

from autotest.

luislavena avatar luislavena commented on July 19, 2024

It could, that depends on your current encoding of the terminal and the version of Ruby you're using.

For example, usage of accented characters inside autotest could generate broken output due the usage of getc to get a single byte and usage of print to output it.

from autotest.

grosser avatar grosser commented on July 19, 2024

the original change was a refactoring for more readability, i reverted this and added a comment (how to test this ?)

from autotest.

luislavena avatar luislavena commented on July 19, 2024

You need Windows :P

But basically using putc with single characters (like it used to do) should fix this.

from autotest.

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.