Does Win32 -A api variant truly support MBCS

Aditya Mehta 0 Reputation points
2023-11-17T12:24:28.9266667+00:00

ClearCase is a portable product (across Unix / Linux / Windows). In part, the portability is possible because the product uses multibyte characters (MBCS).  Historically, Microsoft Windows has not had full support for multibyte characters, only single and double byte characters (DBCS).  Windows 10 Version 1803 added true multibyte support in at least the Win32 "-A" API variant:

https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page

This enhancement allowed our command line interface to support GB18030 (and UTF-8 encodings).

We have numerous MFC (Microsoft Foundation Classes) GUIs.  They still do not work correctly with GB18030 and UTF-8 (in Windows 10 Version 1803 and later).  Was MFC (including the GUI controls) enhanced to support true MBCS or is it still limited to DBCS?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,624 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,734 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Minxin Yu 11,751 Reputation points Microsoft Vendor
    2023-11-20T02:44:22.9166667+00:00

    Hi, @Aditya Mehta

    MFC MBCS only supports double-byte character sets (DBCS).

    MFC Support for MBCS Strings

    And the MBCS libraries were deprecated in Visual Studio 2013 and Visual Studio 2015.

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.