Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6768275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:03:21+00:00 2026-05-26T15:03:21+00:00

Recently I am getting this error when using msysgit, in particular when there is

  • 0

Recently I am getting this error when using msysgit, in particular when there is some non-ASCII content generated by the git output:

warning: Your console font probably doesn’t support Unicode. If you experience strange characters in the output, consider switching to a TrueType font such as Lucida Console!

The funny thing is that although that message is telling me that my font doesn’t support Unicode, it actually does and the text in question is displayed correctly (in the correct encoding & with all characters displayed).

The sad thing is that I don’t find a way to disable this message. I tried changing the font in the Git Bash (I usually use PowerShell) but when I checked the font there, I noticed that it was actually already set to Lucida Console, and the warning appears in that same console too. So I’m a bit clueless what to do to fix this, or at least stop msysgit from printing this warning all the time.

I tried reinstalling msysgit, also with the option selected that is supposed to set the font to Lucida Console, but it didn’t help. What can I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:03:22+00:00Added an answer on May 26, 2026 at 3:03 pm

    This test is done by the function warn_if_raster_font in compat/winansi.c. This uses the Win32 API GetCurrentConsoleFontEx to find the font in use by the console attached to the current output stream. This test should always be correct on Windows Vista and above. On Windows XP it has to resort to looking in the registry for the current default console font. So possibly you are on XP and while you have configured the shortcut for the console you are using, the default setting remains configured to use a non-unicode font.

    If not, you might try compiling the following which uses roughly the same code and see what it prints out. Provided the output contains tt: 4 we would expect the corresponding git code to properly detect your console font as truetype.

    #define STRICT
    #define WINVER 0x0600
    #define _WIN32_WINNT 0x600
    #define WIN32_LEAN_AND_MEAN
    #include <windows.h>
    #include <tchar.h>
    #include <stdio.h>
    
    #ifdef __MINGW32__
    typedef struct _CONSOLE_FONT_INFOEX {
            ULONG cbSize;
            DWORD nFont;
            COORD dwFontSize;
            UINT FontFamily;
            UINT FontWeight;
            WCHAR FaceName[LF_FACESIZE];
    } CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
    #endif
    
    typedef BOOL (WINAPI *PGETCURRENTCONSOLEFONTEX)(HANDLE, BOOL,
                    PCONSOLE_FONT_INFOEX);
    int
    _tmain(int argc, TCHAR *argv[])
    {
        PGETCURRENTCONSOLEFONTEX pgccf;
        pgccf = (PGETCURRENTCONSOLEFONTEX)
            GetProcAddress(GetModuleHandleW(L"kernel32.dll"),
                       "GetCurrentConsoleFontEx");
        if (pgccf == NULL) {
            _tprintf(_T("error: failed to get function pointer\n"));
        } else {
            HANDLE console;
            CONSOLE_FONT_INFOEX cfi;
            cfi.cbSize = sizeof(cfi);
    
            console = GetStdHandle(STD_OUTPUT_HANDLE);
            if (!pgccf(console, 0, &cfi)) {
                _tprintf(_T("error: failed to get console info\n"));
            } else {
                _tprintf(_T("font %08x tt:%d"), cfi.FontFamily,
                     (cfi.FontFamily&TMPF_TRUETYPE));
                wprintf(L" %s", cfi.FaceName);
                _tprintf(_T("\n"));
            }
        }
        return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried a veriety of jQuery plugins recently and I keep getting this error
So here's what I've been getting every now and again recently, using msysgit on
I'm getting the old familiar Fatal error: Using $this when not in object context
Recently I've switched to Ninject 2.0 release and started getting the following error: Error
I've been getting an error recently while debugging an ASP.NET application in Visual Studio
Recently in our work, I've started getting some experience with SEO (finally). It's something
I've recently moved from VB6 to VB.NET and I am finally getting there with
I am getting following error. Restore failed for Server I have recently upgraded SQL
I have updated recently to IE 9 and I'm getting some strange issues. I
I'm getting this error: CS0246: The type or namespace name 'ManagementScope' could not be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.