Skip to content
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

Weird font(?) change when building gtest #4

Open
Holt59 opened this issue May 18, 2020 · 2 comments
Open

Weird font(?) change when building gtest #4

Holt59 opened this issue May 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@Holt59
Copy link
Member

Holt59 commented May 18, 2020

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

@isanae
Copy link
Contributor

isanae commented May 18, 2020

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.

@isanae isanae added the bug Something isn't working label May 22, 2020
@isanae
Copy link
Contributor

isanae commented May 25, 2020

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants