Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

  1. /***
  2. *nlsdata2.c - globals for international library - locale handles and code page
  3. *
  4. * Copyright (c) 1991-2001, 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. *Revision History:
  12. * 12-01-91 ETC Created.
  13. * 09-15-93 CFW Use ANSI conformant "__" names.
  14. * 04-12-94 GJF Made definitions of __lc_handle and __lc_codepage
  15. * conditional on ndef DLL_FOR_WIN32S
  16. * 01-12-98 GJF Added __lc_collate_cp.
  17. * 26-01-00 GB Added __lc_clike.
  18. *
  19. *******************************************************************************/
  20. #include <locale.h>
  21. #include <setlocal.h>
  22. /*
  23. * Locale handles.
  24. */
  25. LCID __lc_handle[LC_MAX-LC_MIN+1] = {
  26. _CLOCALEHANDLE,
  27. _CLOCALEHANDLE,
  28. _CLOCALEHANDLE,
  29. _CLOCALEHANDLE,
  30. _CLOCALEHANDLE,
  31. _CLOCALEHANDLE
  32. };
  33. /*
  34. * Code page.
  35. */
  36. UINT __lc_codepage = _CLOCALECP; /* CP_ACP */
  37. /*
  38. * Code page for LC_COLLATE
  39. */
  40. UINT __lc_collate_cp = _CLOCALECP;
  41. /* if this locale has first 127 character set same as CLOCALE.
  42. */
  43. int __lc_clike = 1;