Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-319B7F24-4231-4BAD-A750-B464B565C9B4
Visible to Intel only — GUID: GUID-319B7F24-4231-4BAD-A750-B464B565C9B4
NLSGetLocale
NLS Subroutine: Returns the current language, country, or codepage. This routine is only available for Windows.
USE IFNLS
CALL NLSGetLocale ([language] [,country] [,codepage])
language |
(Output; optional) Character*(*). Is the current language. |
country |
(Output; optional) Character*(*). Is the current country. |
codepage |
(Output; optional) INTEGER(4). Is the current codepage. |
NLSGetLocale returns a valid codepage in codepage.
USE IFNLS CHARACTER(50) cntry, lang INTEGER(4) code CALL NLSGetLocale (lang, cntry, code) ! get all three CALL NLSGetLocale (CODEPAGE = code) ! get the codepage CALL NLSGetLocale (COUNTRY = cntry, CODEPAGE =code) ! get country ! and codepage