Routines (alphabetical) > Routines: L > LOCALE_SET

# LOCALE_SET

The LOCALE_SET procedure sets the current locale of the IDL process.

Note: The default locale for the IDL process is "C", which indicates the C programming language. Setting the locale to a different value may lead to unpredictable output and behavior, and is only recommended for special situations.

## Syntax

LOCALE_SET, Locale, /LC_CTYPE, /LC_NUMERIC, /LC_TIME

## Arguments

### Locale

Set this argument to a string giving the new locale. Examples would be "C", "English_United States.1252", "German_Germany.1252", etc.

## Keywords

### LC_CTYPE

By default, LOCALE_SET sets all three LC_CTYPE, LC_NUMERIC, and LC_TIME locales. Set the LC_CTYPE keyword to only set the LC_CTYPE locale, which affects character and string formatting.

### LC_NUMERIC

By default, LOCALE_SET sets all three LC_CTYPE, LC_NUMERIC, and LC_TIME locales. Set the LC_NUMERIC keyword to only set the LC_NUMERIC locale, which affects number formatting.

### LC_TIME

By default, LOCALE_SET sets all three LC_CTYPE, LC_NUMERIC, and LC_TIME locales. Set the LC_TIME keyword to only set the LC_TIME locale, which affects date and time formatting.

## Version History

8.4.1 | Introduced

## See Also

LOCALE_GET