Skip to content

Weird font(?) change when building gtest #4

Open

Description

@Holt59

When mob "build and install" gtest, I often (always?) get a weird font change (or something similar) in the console:

image

It always happens on the gtest task.


Reference font just to confirm:

image

Activity

  1. isanae commented on May 18, 2020

    @isanae
    Contributor

    Looks like it's a combination of codepage 65001, the Consolas font and powershell. I can reproduce it reliably by selecting the Consolas font in the console and doing

    > chcp 65001
    > powershell
    

    I change the codepage to 65001 (UTF-8) for some tasks and tools to handle non-ascii characters. Without it, some tasks fail if you have non-ascii characters in %TEMP%, for example.

    When powershell runs, it will change the active font if it thinks the current one can't display everything from the codepage. In this case, it assumes Consolas cannot display UTF-8 and changes to raster. I don't execute powershell directly, but I'm pretty sure msbuild does.

    Note that it doesn't happen with the new terminal at all and I've never had the problem when mob is launched from the debugger. I can reproduce it if I change the debugging settings to launch cmd and type the two commands above, but not when running mob directly. Nevermind, I get it all the time

    Not sure what to do about that.

  2. added
    bug
    on May 22, 2020
  3. isanae commented on May 25, 2020

    @isanae
    Contributor

    I did a crap workaround in 17b6aa2. I restore the console font if it changed once mob finishes. It's not a fix, so I'll leave this open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions