-qmbcs, -qdbcs

Description

Use the -qmbcs option if your program contains multibyte characters. The -qmbcs option is equivalent to -qdbcs.

Syntax

Read syntax diagramSkip visual syntax diagram        .-nombcs-.
>>- -q--+-mbcs---+---------------------------------------------><
        +-nodbcs-+
        '-dbcs---'

See also #pragma options.

Notes

Multibyte characters are used in certain languages such as Chinese, Japanese, and Korean.

Multibyte characters are also permitted in comments, if you specify the -qmbcs or -qdbcs compiler option.

If a source file contains multibyte character literals and the default -qnombcs or -qnodbcs compiler option is in effect, the compiler will treat all literals as single-byte literals.

Example

To compile myprogram.c if it contains multibyte characters, enter:

xlc myprogram.c -qmbcs

Related information