home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / nlsdata2.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  909b  |  37 lines

  1. /***
  2. *nlsdata2.c - globals for international library - locale handles and code page
  3. *
  4. *       Copyright (c) 1991-1998, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This module defines the locale handles and code page.  The handles are
  8. *       required by almost all locale dependent functions.  This module is
  9. *       separated from nlsdatax.c for granularity.
  10. *
  11. *******************************************************************************/
  12.  
  13. #include <locale.h>
  14. #include <setlocal.h>
  15.  
  16. /*
  17.  *  Locale handles.
  18.  */
  19. LCID __lc_handle[LC_MAX-LC_MIN+1] = {
  20.         _CLOCALEHANDLE,
  21.         _CLOCALEHANDLE,
  22.         _CLOCALEHANDLE,
  23.         _CLOCALEHANDLE,
  24.         _CLOCALEHANDLE,
  25.         _CLOCALEHANDLE
  26. };
  27.  
  28. /*
  29.  *  Code page.
  30.  */
  31. UINT __lc_codepage = _CLOCALECP;                /* CP_ACP */
  32.  
  33. /*
  34.  * Code page for LC_COLLATE
  35.  */
  36. UINT __lc_collate_cp = _CLOCALECP;
  37.