windows-nt/Source/XPSP1/NT/base/crts/crtw32/misc/nlsdata2.c

49 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/***
*nlsdata2.c - globals for international library - locale handles and code page
*
* Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This module defines the locale handles and code page. The handles are
* required by almost all locale dependent functions. This module is
* separated from nlsdatax.c for granularity.
*
*Revision History:
* 12-01-91 ETC Created.
* 09-15-93 CFW Use ANSI conformant "__" names.
* 04-12-94 GJF Made definitions of __lc_handle and __lc_codepage
* conditional on ndef DLL_FOR_WIN32S
* 01-12-98 GJF Added __lc_collate_cp.
* 26-01-00 GB Added __lc_clike.
*
*******************************************************************************/
#include <locale.h>
#include <setlocal.h>
/*
* Locale handles.
*/
LCID __lc_handle[LC_MAX-LC_MIN+1] = {
_CLOCALEHANDLE,
_CLOCALEHANDLE,
_CLOCALEHANDLE,
_CLOCALEHANDLE,
_CLOCALEHANDLE,
_CLOCALEHANDLE
};
/*
* Code page.
*/
UINT __lc_codepage = _CLOCALECP; /* CP_ACP */
/*
* Code page for LC_COLLATE
*/
UINT __lc_collate_cp = _CLOCALECP;
/* if this locale has first 127 character set same as CLOCALE.
*/
int __lc_clike = 1;