Internationalization and localization tools


Locale-Sensitive Function

int _setmbcp(int codepage);

Internationalization (I18n) Function Overview

The _setmbcp function sets a new multibyte code page for locale-independent multibyte routines; returning 0 if successful, else -1 in the event of an error.

I18n Issues

The multibyte code page setting affects all multibyte routines that are not locale dependent and so must be set correctly. By default, the run-time system automatically sets the multibyte code page to the system-default code page (the code page returned from GetACP).

To instruct _setmbcp to use the code page defined for the current locale, call _setmbcp(_MB_CP_LOCALE).

See the MSDN Library for more information.

Recommended Replacements*

There are no variations of this function.

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Locale-Sensitive Functions

 

Lingoport internationalization and localization services and software