Hamilton LaboratoriesHamilton C shell 2012User guideSamples

internat.h

Oregon Coast

internat.h
Previous | Next

/* Internationalize on NT, translating the argv array into the
   current OEM code page used by the console. */

#ifdef   _WIN32
#  include  <windows.h>
#  define   ASCII_CodePage          437
#  define   Internationalize()      if (GetOEMCP() != ASCII_CodePage)   \
                                       {                                \
                                       register int i;                  \
                                       for (i = 0;  i < argc;  i++)     \
                                          CharToOem(argv[i], argv[i]);  \
                                       }
#else
#  define   Internationalize()
#endif

Previous | Next