8.122 --locale=lang_country

Specifies the locale for source files.

Syntax

--locale=lang_country

Where:

lang_country

is the new default locale.

Use this option in combination with --multibyte_chars.

Default

If you do not specify this option, the system locale is used.

Restrictions

The locale name might be case-sensitive, depending on the host platform.

The permitted settings of locale are determined by the host platform.

Ensure that you have installed the appropriate locale support for the host platform.

Note:

If the source file encoding is UTF-8 or UTF-16, and the file starts with a byte order mark then the compiler ignores the --locale and --[no_]multibyte_chars options and interprets the file as UTF-8 or UTF-16.

Example

To compile Japanese source files on an English-based Windows workstation, use:

--multibyte_chars --locale=japanese

On a UNIX workstation use:

--multibyte_chars --locale=ja_JP
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.