インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド
NLS Function: Sets the current language, country, or codepage.
result = NLSSetLocale (language[,country] [,codepage])
The result type is INTEGER(4). The result is zero if successful. Otherwise, one of the following error codes (defined in IFNLS.F90) may be returned:
NLS$ErrorInvalidLanguage - language is invalid or not supported
NLS$ErrorInvalidCountry - country is invalid or is not valid with the language specified
NLS$ErrorInvalidCodepage - codepage is invalid or not installed on the system
NLSSetLocale works on installed locales only. Many locales are supported, but they must be installed through the system Control Panel/International menu.
When doing mixed-language programming with Fortran and C, calling NLSSetLocale with a codepage other than the default environment Windows OS codepage causes the codepage in the C run-time library to change by calling C's setmbcp( ) routine with the new codepage. Conversely, changing the C run-time library codepage does not change the codepage in the Fortran NLS library.
Calling NLSSetLocale has no effect on the locale used by C programs. The locale set with C's setlocale( ) routine is independent of NLSSetLocale.
Calling NLSSetLocale with the default environment console codepage, NLS$ConsoleEnvironmentCodepage, causes an implicit call to the Windows OS API SetFileApisToOEM( ). Calling NLSSetLocale with any other codepage causes a call to SetFileApisToANSI( ).