-qmbcs, -qdbcs
Category
Pragma equivalent
#pragma options [no]mbcs, #pragma options [no]dbcs
Purpose
Enables support for multibyte character sets (MBCS) and Unicode characters in your source code.
When mbcs or dbcs is in effect, multibyte character literals and comments are recognized by the compiler. When nombcs or nodbcs is in effect, the compiler treats all literals as single-byte literals.
Syntax
.-nodbcs-. +-nombcs-+ >>- -q--+-mbcs---+--------------------------------------------->< '-dbcs---'
Defaults
-qnombcs, -qnodbcs
Usage
For rules on using multibyte characters in your source code, see Multibyte characters .
In
addition, you can use multibyte characters in the following contexts:
- In file names passed as arguments to compiler invocations on the
command line; for example:
xlc /u/myhome/c_programs/kanji_files/multibyte_char.c -omultibyte_char
- In file names, as suboptions to compiler options that take file names as arguments
- In the definition of a macro name using the -D option;
for example:
-DMYMACRO=“kpsmultibyte_chardcs” -DMYMACRO='multibyte_char'
Listing files display the date and time for the appropriate
international language, and multibyte characters in the source file
name also appear in the name of the corresponding list file. For example,
a C source file called:
multibyte_char.c
gives
a list file called multibyte_char.lst
Predefined macros
None.
Examples
To compile myprogram.c if
it contains multibyte characters, enter:
xlc myprogram.c -qmbcs