Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

NLSEnumLocales

NLS Function: Returns an array containing the language and country combinations supported by the system, in which each array element describes one valid combination. This routine is only available for Windows.

Module

USE IFNLS

ptr=> NLSEnumLocales( )

Results

The result is a pointer to an array of locales, in which each array element describes one supported language and country combination. Each element has the following structure:

 TYPE NLS$EnumLocale
   CHARACTER*(NLS$MaxLanguageLen)  Language
   CHARACTER*(NLS$MaxCountryLen)   Country
   INTEGER(4)                      DefaultWindowsCodepage
   INTEGER(4)                      DefaultConsoleCodepage
 END TYPE

If the application is a Windows or QuickWin application, NLS$DefaultWindowsCodepage is the codepage used by default for the given language and country combination. If the application is a console application, NLS$DefaultConsoleCodepage is the codepage used by default for the given language and country combination.

NOTE:

After use, the pointer returned by NLSEnumLocales should be deallocated with the DEALLOCATE statement.