home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv104.zip / SAMPLE / VERSION / READ.ME < prev    next >
Text File  |  1996-02-13  |  3KB  |  99 lines

  1.  
  2. ===============================================================================
  3.                   Internationalization (I18N) For OS/2                 
  4. ===============================================================================
  5.  
  6.                 Copyright IBM Corporation -- 1993, 1994, 1995
  7.  
  8. DISCLAIMER: This package is not a full implementation of the X/Open XPG4 
  9. specification and does not make any claims of XPG4 branding. It implements 
  10. only the portions of the XPG4 specification which deal with 
  11. internationalization.
  12.  
  13. X/Open is a trademark of the X/Open Company Limited.
  14.  
  15. ===============================================================================
  16.  
  17.  
  18. /************************/
  19. /***     Contents     ***/
  20. /************************/
  21.  
  22. 1.  Overview
  23. 2.  Files in this directory
  24. 3.  How to run the sample program
  25. 4.  How to compile the sample program
  26.  
  27.  
  28. 1.  Overview
  29. ============
  30.  
  31. The sample program in this directory shows how to extract the version inform-
  32. mation from the setlocx.dll.
  33.  
  34.  
  35. 2.  Files in this directory
  36. ===========================
  37.  
  38. File            Purpose
  39. ------------------------------------------------------------------------------
  40. version.c         Source code for the version sample program.
  41. version.def       Definition file needed for compiling the program.
  42. version.mak       Make file used to compile the sample.
  43. version.exe       Compiled version of the version sample.
  44.  
  45. build.cmd       A command file which will compile and link the sample program.
  46. read.me         This file.
  47.  
  48.  
  49. 3.  How to run the sample program
  50. =================================
  51.  
  52. The following steps show how the program can be run.
  53.  
  54.      1) Run the \i18n\bin\new_vars command file (or have the environment
  55.         variables already set).
  56.  
  57.      2) Set the value of either LC_ALL or LANG to: En_US (US English).
  58.  
  59.           Ex:   set LANG=En_US
  60.  
  61.      3) Execute the version.exe program.
  62.  
  63.           Ex:   version
  64.  
  65.      4) The output from the program should be:
  66.  
  67.           Locale for monetary: ENUS437
  68.  
  69.           Value is 12345.6789    Symbol-less format 12345.68
  70.           Value is -12.6789      International format USD 12.6789-
  71.           Value is 45.6789       National format $0000045.68
  72.  
  73.      5) Experiment with changing the values of the LANG environment
  74.         variable.  Try the Fr_FR locale to see the difference in the
  75.         results.  Note: You should change the codeset of OS/2
  76.         to 850 before running this program with the french locale.
  77.         This can be done with the 'chcp' command:
  78.  
  79.           Ex: chcp 850
  80.  
  81.         When you are finished, change the codepage back to 437.
  82.  
  83.  
  84. 4.  How to compile the sample program
  85. =====================================
  86.  
  87. NOTE: The sample program is already compiled for you.  If you want to see the
  88.  behavior of the program, you can just run it.  The following instructions
  89.  are needed only if you want to modify the program and recompile it.
  90.  
  91. To compile the sample application:
  92.  
  93.      1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
  94.         correctly on your system.
  95.  
  96.      2) cd to the directory which contains the is source files.
  97.  
  98.      3) Type "build" at the command prompt.
  99.