Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ native_locale.conf(4) — OSF/1 1.0 (TIN) MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setlocale(3)

native_locale.conf(4)  —  File Formats

Digital

NAME

native_locale.conf − system-wide locale configuration file

DESCRIPTION

The native_locale.conf file sets the default system-wide locale for internationalization. The default system-wide locale is the one that the setlocale routine uses when a user does not set the internationalization environment variables, such as LC_ALL, LANG, LC_COLLATE, and so on. 

By default, the system-wide locale is the Cextend locale. This locale is the same as the C locale, except that it supports 8-bit characters. 

You can change the system-wide locale by editing the native_locale.conf file and replacing Cextend with the name of the locale you want to be the system-wide default. If you want the C locale to be the default system-wide locale, remove the locale name from this file. The setlocale routine uses the C locale when none of the internationalization environment variables are set and this file names no locale. 

If the native_locale.conf file is not in the /etc/nls directory, the setlocale routine uses the C locale as the default system-wide locale. 

The native_locale.conf file can contain comments and the name of a single locale. Comments begin with the number sign (#) character; the system ignores any text that follows the number sign character. The system also ignores blank lines in the file and any blank spaces that surround the locale name. 

EXAMPLES

The following shows an example of a valid native_locale.conf file:

#
#  @(#)native_locale.conf  3.1   (ULTRIX/OSF)  6/24/91
#@DIGITAL_COPYRIGHT@
#
#This file contains the implementation-defined native
#locale. This locale is used when a setlocale(LC_ALL, "") is
#executed and none of the I18N environment variables are set.
 fr_FR.88591    #French locale with the Latin/1
         #character set.

This example sets the default system-wide locale to the French locale.  The locale contains information for French as it is spoken in France (as opposed to Canada) and the Latin/1 character set. 

The following example sets the default system-wide locale to the C locale:

#
#  @(#)native_locale.conf  3.1   (ULTRIX/OSF)  6/24/91
#@DIGITAL_COPYRIGHT@
#
#This file contains the implementation-defined native
#locale. This locale is used when a setlocale(LC_ALL, "") is
#executed and none of the I18N environment variables are set.
          #C locale

When this file names no locale, the setlocale routine uses the C locale. 

FILES

/etc/nls/native_locale.conf

RELATED INFORMATION

Functions: setlocale(3). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026